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:

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)</xxx@xxx.xxx> 

5 Replies

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.

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

@Pokey:

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.

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

Thanks.

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

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct