anvilcom wrote:After lab'ing our WS-12-250-AC we finally deployed it. I hadn't tested the email feature since 1.2.4 or so. Now testing shows that ssmtp actually uses the mail host name as the client host name while EHLO 'ing. Our server will drop the connection as it detects this as a forged host name - and rightly so.
I checked both /etc/ssmtp/ssmtp.conf and /jffs/etc/ssmtp/ssmtp.conf. They both have the the same value for the two different variables:
- Code: Select all
mailhub=[mail.ourdomain.com]:25
hostname=mail.ourdomain.com
AFAIK, hostname should be the actual host name assigned to the switch, not the name of the mail server.
We are running version 1.3.3
Maybe this has already been addressed, but I thought I'd report it anyway.
You are right, this isn't technically correct, but it has been like this since 1.0.0 and until now I haven't had any reports that it was a problem.
At some point pre-1.0.0 the host name was set to the Switch Name, but we do not enforce any particular format for the Switch Name, and some mail servers were complaining about the EHLO not containing a valid looking host name. The mail host name was the only configuration option I had that I could be pretty sure would be a valid host name, so I used that and all the mail servers we have tried were happy with it. Even Gmail. I suspect since almost all mail servers use secure login they don't bother validating the EHLO value anymore.
I guess I could add a configuration option to the SMTP section that would let you specify the host name to use if its a problem.