Jan Smitka a écrit : > Hello, everyone, > our company has recently bought a new server and we've switched from an > old Fedora to Gentoo. We are now using the latest stable version of > postfix (2.6.5) with fully virtual users (MySQL) and dovecot LDA. > Everything worked fine when we were testing the configuration in an > small LAN. However, after we put the server into the production > environment yesterday, there is a problem with outgoing e-mails. > > When I try to send an e-mail from Thunderbird 3.0 on my machine (Win 7, > x64), it fails with this error message: > The mail server sent an incorrect greeting: . > And in the server's maillog, there are some errors: > > Dec 20 09:14:54 server postfix/smtpd[20034]: lost connection after EHLO > from 58.16.broadband2.iol.cz[83.208.16.58] > Dec 20 09:14:54 server postfix/smtpd[20034]: disconnect from > 58.16.broadband2.iol.cz[83.208.16.58] > > Same problem with Windows Live mail, except it's says only "Unknown > error". I haven't tested any other clients yet and I don't know if I'm > the only one who has problems - we changed the server yesterday and our > clients don't send any e-mails on weekends. > > I've put my IP address into debug_peer_list and here's the full log: > http://jan.smitka.org/server/maillog > > When I establish and SSH tunnel to another machine, forward my > localhost's port 25 to server's port 25, change my outgoing SMTP server > to localhost:25 and try to send an e-mail, everything works fine.
Test using telnet from your client machine and show the results. $ telnet yourserver 25 EHLO smitka MAIL FROM:<somesen...@example.org> RCPT TO:<somerecipi...@example.com> DATA Subject: test new mail server blah blah . QUIT > It > looks like it's a problem with EHLO message, no, it's not an "EHLO" problem. the problem happens later. make sure - the client is not configured to use SSL or STARTTLS, because you did not configure these, and - the client is not configured to use an authentication meachnism that is not enabled/advertized. if you use outlook, better set "broken_sasl_auth_clients = yes". other possibilities include a PIX/router/proxy/firewall that doesn't like ESMTP. A good resource for troubelshooting (and also for asking for help) is http://www.postfix.org/DEBUG_README.html > because when I send the > mail directly, my client uses EHLO smitka (my workstation's name), but > throught the tunnel it uses EHLO localhost. It's strange, because I > didn't specified any smtpd_helo_restrictions. Full output of postconf -d > is here: http://jan.smitka.org/server/postconf > 'postconf -d' is rather useless, unless we want to know how your OS vendors compiles postfix. send out of 'postconf -n' instead, and please send it inline instead of posting it on a web site. it should not be that large to require a url.. > I've tried to google, but I didn't found any relevant information. Has > anyone any idea where's the problem? Many thanks in advance! > > > Best regards >