Email notification - ssmtp tries to use AUTH

DOWNLOAD THE LATEST FIRMWARE HERE
User avatar
anvilcom
Member
 
Posts: 22
Joined: Wed May 13, 2015 5:28 pm
Location: Texas
Has thanked: 0 time
Been thanked: 2 times

Email notification - ssmtp tries to use AUTH

Mon May 18, 2015 12:48 pm

Not sure where to post this. Feel free to move it to the appropriate section.

Just got a new WS-12-250-AC. Testing the SMTP config shows that ssmtp is trying to authenticate against the server when no username/password is entered in the config. According to the ssmtp man page, if no user is specified, the default method is no smtp auth. Testing the setting shows that AUTH fails:

Code: Select all
[<-] 220 mail.<hidden>.com ESMTP
[->] EHLO mail.<hidden>.com
[<-] 250 DSN
[->] AUTH LOGIN
[<-] 503 5.5.1 Error: authentication not enabled
ssmtp: Server didn't like our AUTH LOGIN (503 5.5.1 Error: authentication not enabled)


The server we are using for our infrastructure does not require AUTH, and one should not to have to set up an account just for switch notifications.

I ssh'd into the unit and put it in cmdline mode. I checked the ssmtp config file (/etc/ssmtp/ssmtp.conf) and indeed the user and password were blank:

Code: Select all
admin@Switch:/www# cat /etc/ssmtp/ssmtp.conf
root=postmaster
mailhub=[mail.<obfuscated>.com]:25
hostname=mail.<obfuscated>.com
UseTLS=NO
UseSTARTTLS=NO
AuthUser=
AuthPass=
#Address=incidents@<obfuscated>.com
#FromAddress=
#CredentialsName=admin


Why is ssmtp trying to use SMTP AUTH when it is not specified?, and how do we fix it or workaround it until it is fixed?

User avatar
sirhc
Employee
Employee
 
Posts: 7415
Joined: Tue Apr 08, 2014 3:48 pm
Location: Lancaster, PA
Has thanked: 1608 times
Been thanked: 1325 times

Re: Email notification - ssmtp tries to use AUTH

Mon May 18, 2015 12:54 pm

Please always tell us what firmware version you are using?
Support is handled on the Forums not in Emails and PMs.
Before you ask a question use the Search function to see it has been answered before.
To do an Advanced Search click the magnifying glass in the Search Box.
To upload pictures click the Upload attachment link below the BLUE SUBMIT BUTTON.

User avatar
anvilcom
Member
 
Posts: 22
Joined: Wed May 13, 2015 5:28 pm
Location: Texas
Has thanked: 0 time
Been thanked: 2 times

Re: Email notification - ssmtp tries to use AUTH

Mon May 18, 2015 1:02 pm

OOPS! Sorry about that. It shipped with 1.2.0. Didn't need to update it.

User avatar
Eric Stern
Employee
Employee
 
Posts: 532
Joined: Wed Apr 09, 2014 9:41 pm
Location: Toronto, Ontario
Has thanked: 0 time
Been thanked: 130 times

Re: Email notification - ssmtp tries to use AUTH

Mon May 18, 2015 1:38 pm

anvilcom wrote:Why is ssmtp trying to use SMTP AUTH when it is not specified?, and how do we fix it or workaround it until it is fixed?


This will be fixed in 1.2.2.

The easiest workaround would be create a login on your SMTP server and let it authenticate.

User avatar
anvilcom
Member
 
Posts: 22
Joined: Wed May 13, 2015 5:28 pm
Location: Texas
Has thanked: 0 time
Been thanked: 2 times

Re: Email notification - ssmtp tries to use AUTH

Tue May 19, 2015 2:31 pm

Upgraded from 1.2.0 to 1.2.2. Problem solved! Thanks for the quick work!

Return to Hardware and software issues

Who is online

Users browsing this forum: Google [Bot] and 48 guests