My server is setup to generate outgoing email only (no receiving), and is timing out when attempting to contact smtp.foo.com
Essentially the email is generated by a process on myserver.foo.com, sent to postfix on the localhost, which acts as a satellite system and relays the email to smtp.foo.com
Error messages from postfix on myserver.foo.com are:
Date/time-stamp myserver postfix/smtp[####]: ##########: to=<email@example.com>, relay=smtp.foo.com:25 delay=1029, delays=729/0.01/300/0, dsn=4.4.2 status=deferred (conversation with smtp.foo.com timed out while receiving the initial server greeting)
And this is the same error regardless of the recipient. Outbound emails are queuing up and never getting sent.
I've confirmed this timing-out by
telnet smtp.foo.com 25 and finding that I don't even get the initial 220 response from the SMTP server.
However, if I
telnet -l myuser smtp.foo.com 25 instead, I receive the 220 response immediately and I can send an email as expected.
I've configured postfix to use SMTP-AUTH by adding the following entries to
relayhost = smtp.foo.com smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/password smtp_sasl_security_options = noanonymous smtp_connect_timeout = 120s
Can anyone suggest how I might change my postfix configuration to get the type of speedy (or any) response I get by using
telnet -l myuser?