diff --git a/lib/Qpsmtpd.pm b/lib/Qpsmtpd.pm index 7f24e27..f932c97 100644 --- a/lib/Qpsmtpd.pm +++ b/lib/Qpsmtpd.pm @@ -77,6 +77,7 @@ sub get_qmail_config { return \%h; } + return unless -e $configfile; open CF, "<$configfile" or warn "$$ could not open configfile $configfile: $!" and return; my @config = ; chomp @config;