Linode Forum
https://forum.linode.com/

Set Postfix to disconnect before queuing all recipients
https://forum.linode.com/viewtopic.php?f=11&t=10279
Page 1 of 1

Author:  Pokey [ Fri Jul 26, 2013 1:46 am ]
Post subject:  Set Postfix to disconnect before queuing all recipients

Hello,

Warning: Newby here!

I have just set up a mail server using the iRedmail package. One of my clients was complaining that it took about 15 minutes to send an email to about 100 recipients. The email had a few megabytes of attachments, but the mail client (Apple Mail) was locked up the whole time. Isn't there a way to have postfix disconnect from the client and then process the recipients?

TIA

Sample log entry:
Code:
Jul 25 12:56:07 xxx postfix/smtp[21636]: 19827D28C597: to=<xxx@xxx.xxx>, relay=mx.xxx.xxx[xx.xx.xx.xx]:25, delay=186, delays=180/0.78/0.39/4.9, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 5D7357AA40D)

Author:  Vance [ Fri Jul 26, 2013 11:24 pm ]
Post subject:  Re: Set Postfix to disconnect before queuing all recipients

I don't know anything about iRedMail, but my guess would be that it has configured Postfix to do content scanning during the incoming SMTP transaction. If so, Postfix can't close the connection early because the client will have no idea whether the message was successfully delivered.

For a standard Postfix install, I would look at the configuration and move any intensive content-scanning activities to occur after a message is accepted.

However, web control panels like to do things their own way, and tend not to behave well when manual configuration changes are made. I would suggest asking in the iRedMail forums rather than here.

Author:  Pokey [ Sat Jul 27, 2013 1:58 am ]
Post subject:  Re: Set Postfix to disconnect before queuing all recipients

Thanks for the suggestion Vance.

I should have mentioned that I have already disabled content/virus scanning. Policyd is still configured though. I think I will try using port 587 specifically, the client is set for automatic port selection right now and could be using 25. And yes I will post in the iredmail forums. Thanks for the link.

Pokey

Author:  Vance [ Sat Jul 27, 2013 3:59 pm ]
Post subject:  Re: Set Postfix to disconnect before queuing all recipients

Pokey wrote:
I should have mentioned that I have already disabled content/virus scanning.

Hmm, not sure where else to point you. It's possible you're using DNS block lists that are slow to respond or not responding at all. But usually there's a timeout set up so that if it can't contact a particular DNSBL after a few seconds, it just proceeds as if no negative response was received.

Author:  Pokey [ Thu Aug 01, 2013 1:54 am ]
Post subject:  Re: Set Postfix to disconnect before queuing all recipients

Yes, you were on the right track. I got the suggestion from the iRedmail forums to remove "reject_unknown_recipient_domain" from the postfix conf.

Thanks.

Author:  Vance [ Thu Aug 01, 2013 9:13 am ]
Post subject:  Re: Set Postfix to disconnect before queuing all recipients

Thanks for letting us know the solution. It'll help anyone with the same problem who comes across this thread.

Page 1 of 1 All times are UTC-04:00
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/