On 17 November 2011 17:14, Tim Dunphy <bluethu...@jokefire.com> wrote: > Hello list, > > I am attempting to build a basic postfix setup that is able to send mail to > the internet. Receiving email is not a priority. > > I've verified that this basic setup DOES work on an Amazon EC2 instance and > can be used to send email to anyplace it would like. However when I transfer > the config (main.cf and master.cf) to our work network the messages are > deferred and rejected by any mail server it encounters. I'd like very much to > understand why this is happening and to get this config to work on our local > network. > > If I perform a telnet mail test on my local network the message is rejected > and deferred no matter what mail server it tries to communicate with: > > [monitor03:root:/etc/postfix]#telnet localhost 25 > Trying 127.0.0.1... > Connected to localhost. > Escape character is '^]'. > 220 monitor03.localdomain ESMTP Postfix > HELO monitor03 > 250 monitor03.localdomain > MAIL FROM: <mail-sen...@sending-domain.com> > 250 2.1.0 Ok > RCPT TO: <mail-recei...@receiving-domain.com> > 250 2.1.5 Ok > DATA > 354 End data with <CR><LF>.<CR><LF> > Subject: test message > test test test > . > 250 2.0.0 Ok: queued as E45C2136357 > quit > 221 2.0.0 Bye > Connection closed by foreign host. > > This is what happens in the mail log when this test is performed: > > Nov 17 16:25:39 monitor03 postfix/smtp[26004]: E45C2136357: > to=<mail-recei...@receiving-domain.com>, relay=none, delay=4755, > delays=4755/0.02/0.05/0, dsn=4.4.1, status=deferred (connect to > alt4.gmail-smtp-in.l.google.com[74.125.43.27]:25: Connection refused)
4.4.1 is a transient network failure. http://www.ietf.org/rfc/rfc1893.txt What happens if you do your telnet test from the host to google directly? Also, for a direct comparison send the email from the working server to google (even though I believe you that it's a generic problem). Simon