I upgraded a mac used as a webserver from 10.1 to 10.2 a week or so ago.

I've just found out that no emails have been sent by perl scripts since then.

When I ran the offending scripts, they complained about missing folders: /var/spool/clientmqueue/ and /var/spool/mqueue/ -- I created those folders and set permissions, and now scripts run without any errors, but the emails are not sent.

Any ideas? Here's a test script which runs without any problems, but no email is sent (or, to be logical, no email is received):

#!/usr/bin/perl -w
use CGI;
use CGI::Carp qw(fatalsToBrowser);
$mailprog = '/usr/sbin/sendmail -i -t';
open(MAIL,"|$mailprog") || die "$!";
print MAIL "To: [EMAIL PROTECTED]" || die "$!";
print MAIL "From:  [EMAIL PROTECTED]" || die "$!";
print MAIL "Subject: Test of Email Script\n\n"|| die "$!";
print MAIL "Test of Email Script\n"|| die "$!";
close (MAIL) || die "$!";
print "Content-type:text/html\n\n";
print "ran with no problems?";

------------------------------------------------------------
               "Have You Validated Your Code?"
John Horner                            (+612 / 02) 9333 2110
Senior Developer, ABC Online          http://www.abc.net.au/
------------------------------------------------------------



Reply via email to