Perl Check - Need Help
jerry.benton at mailborder.com
Sat Apr 8 16:12:36 UTC 2017
I updated the “could” :)
Do you think it would be faster to get the directory using postconf or to just use the regex?
+1 - 844-436-6245
> On Apr 8, 2017, at 12:06 PM, Mark Sapiro <mark at msapiro.net> wrote:
> On 04/08/2017 04:10 AM, Shawn Iverson wrote:
>> Hi Jerry,
>> Just looked over your code. It looks straightforward and complete to me.
>> My only question I may have is "/var/spool/postfix/public/qmgr" being
>> hard coded. Is it possible for this path to vary depending on the
>> postfix configuration on other systems?
> It's possible. The actual path is $queue_directory/public/qmgr where
> queue_directory is defined in Postfix main.cf. This can be obtained via
> `postconf -h queue_directory`. I.e.,
> my $qdir = `postconf -h queue_directory`;
> $qdir =~ s/\R//;
> my $pf_connection = $qdir . '/public/qmgr';
> Also, in Jerry's code, "could" is misspelled in two "KickMessage coould
> not write to ..." messages.
> Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
> San Francisco Bay Area, California better use your sense - B. Dylan
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the MailScanner