LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-15-2008, 09:17 AM   #1
EnderX
Member
 
Registered: Nov 2006
Posts: 66

Rep: Reputation: 15
Query concerning smtp setup and error 5.7.0 Authentication required.


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?
 
Old 09-15-2008, 06:17 PM   #2
skidoo_23
LQ Newbie
 
Registered: Sep 2008
Posts: 5

Rep: Reputation: 0
Hi,

This may not be a problem with the new server. It looks like the mail host mail.hiwaay.net may have been configured to allow relaying by some hosts, but expects others to authenticate using SMTP Authentication.

If this is the case, and your CC_Server isn't on the list of permitted mail senders, then the mail server will refuse to relay mail from that host, and you'll see the 'Authentication required' message.

Whoever looks after the mail server should be able to answer this for you, and may also be persuaded to allow relaying for the new machine without requiring authentication.

S.
 
Old 09-16-2008, 04:00 PM   #3
EnderX
Member
 
Registered: Nov 2006
Posts: 66

Original Poster
Rep: Reputation: 15
@skidoo_23
You appear to have been correct. When I spoke with my boss, I was informed that the customer/client we're supposed to be sending this to has a mail server of their own set up; sending to that allowed the files to go through. Thank you very much for your timely assistance.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] SMTP server responds: Relaying denied, proper authentication required sarsaeol Linux - Newbie 2 04-28-2008 04:52 PM
SMTP authentication error in Evolution blastradius Ubuntu 0 04-17-2008 03:18 AM
ldap error: strong authentication required ziox Linux - Networking 2 02-06-2007 11:50 AM
authentication required on smtp on local lan ashfaq Linux - Software 1 02-27-2004 04:56 AM
authentication required on smtp on LAN only. ashfaq Linux - Software 0 02-25-2004 10:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration