diff --git a/lib/Apache/Qpsmtpd.pm b/lib/Apache/Qpsmtpd.pm index 5161301..edb28c5 100644 --- a/lib/Apache/Qpsmtpd.pm +++ b/lib/Apache/Qpsmtpd.pm @@ -90,8 +90,10 @@ sub run { } sub config_dir { - my $self = shift; - return "$self->{qpdir}/config"; + my ($self, $config) = @_; + -e "$_/$config" and return $_ + for "$self->{qpdir}/config"; + return "/var/qmail/control"; } sub plugin_dir {