diff --git a/lib/Qpsmtpd.pm b/lib/Qpsmtpd.pm index e6a7442..e4c4a77 100644 --- a/lib/Qpsmtpd.pm +++ b/lib/Qpsmtpd.pm @@ -320,6 +320,9 @@ sub _load_plugin { last PLUGIN_DIR; } } + die "Plugin $plugin_name not found in our plugin dirs (", + join(", ", @plugin_dirs),")" + unless defined &{"${package}::plugin_name"}; } }