Postfix relay timout after data
I am using the postfix relay package, and it's really good.
I just have one issue, some emails are shown as incoming in the QUEUE and never get delivered or take 2 or three days to get delivered. When I looked though the maillog and did a egrep on the message id I see TIMEOUT after data errors.
I googled this and saw people had mtu issues and Do not fragment issues, so I changed the system->advanced Clear invalid DF bits instead of dropping the packets to enabled, and changed the firewall optimization to conservative.
My MTU is 1500 and the server is in a data center and not behind any kind of adsl line.
I have an exchange 2010 server that received the emails fine before i put in the the postfix forwarder.
Any help on this issue would be greatly appreciated as I am a bit stumped and people are starting to ask me where there emails are.
Anvil is enabled and all the postscreen after greet tests are enabled.
my greet time wait is 2,6s
I think I figured it out, localhost was not enabled on the postfix interface, I only enabled wan and then when I selected wan and localhost these emails started to come though
I was wrong it was not the localhost thing. My pfsense is behind a cisco asa device and the no fixup smtp protocol 25 command was applied. This actually made things a lot worse. When the command fixup protocol smtp 25 was applied all mail servers could deliver to the postfix service fine and the postfix service could deliver mails to other smtp servers fine.
I know there is a bug in cisco with this command but postfix seems to be very intelligent about getting around it.
Olvikolvi last edited by
Same problem here. We have web server in local network (10.x.x.x) and it uses NAT to get access to internet. Problem is that sending data takes over 180sec and its timed out when it goes thrue pfsense. If I change postfix relayhost to 10.x.x.x network (it does not go thrue pfsense) it works just fine.
Client mail log:
Aug 19 21:22:55 nginx postfix/smtp: ABCDEFHTEOT: email@example.com, relay=mail.server.com[xx.xx.xx.xx]:25, delay=37971, delays=37791/0.01/0.07/180, dsn=4.4.2, status=deferred (conversation with mail.server.com[xx.xx.xx.xx] timed out while sending message body)
Mail Server log:
Aug 19 21:22:55 mail postfix/smtpd: timeout after DATA (66017 bytes) from unknown[10.x.x.x]
Aug 19 21:22:55 mail postfix/smtpd: disconnect from unknown[10.x.x.x]/firstname.lastname@example.org