I've been requested to set up a program on one of our server boxes (CC_Server) to take files generated by another program on that box and send them to their intended recipients via email. We're already running several similar perl programs on another box (CDB_Server), so I figured that I could just copy over one of original programs, modify it to look for the new file names instead of the old ones, and change the to_address and cc_address values in the code. For a while this seemed to be working, but now every time the email program runs, either manually or as a cron job, I'm getting the following error:
Code:
Uncaught exception from user code:
SMTP MAIL command failed:
5.7.0 Authentication required
at ./email-Survey_test line 133
at /usr/lib/perl5/site_perl/5.8.6/MIME/Lite.pm line 2624
MIME::Lite::send_by_smtp('MIME::Lite=HASH(0x84b1ba0)', 'mail.hiwaay.net', 'Timeout', 60) called at /usr/lib/perl5/site_perl/5.8.6/MIME/Lite.pm line 2451
MIME::Lite::send('MIME::Lite=HASH(0x84b1ba0)') called at ./email-Survey_test line 133
main::email(0, 'Survey_Results_91.txt', '/srv/www/htdocs/Survey_forms/old_Surveys/', '########@#########.com, #########.#########.#@#########.com,...') called at ./email-Survey_test line 80
Email addresses blotted out for spam prevention purposes, all other code is identical to the error I'm receiving. The actual code which is supposed to trigger the send for both boxes is:
Code:
my $mail_host = 'mail.hiwaay.net';
MIME::Lite->send('smtp', $mail_host, Timeout=>60);
$msg->send;
Trying to track down information regarding this error lead me to the smtpd.conf file, but the copy of the file on CDB_Server is identical to that on CC_Server. Also, as I said before, the program originally worked on CC_Server, but now does not. Both servers are running SuSE 9.3; I'm not certain what version of smtp they are running. I do know that the two .conf files were in slightly different directories; /usr/lib/sasl2/ on CC_Server, /usr/lib64/sasl2/ on CDB_Server. I'm not sure how much of a difference that makes.
I'm uncertain as to where to go next in my search. Does anyone have any suggestions for some files I might be able to look at for comparison purposes?