Dave Green:
> Postfix 2.6 running on OpenBSD works well as a mail server but there is
> one specific problem for which any advice is gratefully received.
> 
> cleanup takes a long time to complete when email with attachments is
> received via SMTP but not when mail arrives via pickup. This presently
> causes problems for our webmail users as their HTTP session will often
> timeout as postfix may take several minutes for email with relatively
> large (2-3mb) attachments. can anyone shed any light on why this might be?

There is no fundamental reason why pickup->cleanup is slower than
smtpd->cleanup (other than different receive_override_options 
settings in master.cf).

However, it is possible that you're sending mail INTO Postfix at
a slower rate than expected.

Specifically, you are sending mail into Postfix via the loopback
interface address.  It would be instructive to see if the delay
goes away when you use the NON-localhost interface address instead.

The reason I mention this is that OpenBSD uses a large MTU on the
loopback interface (approx. 32 kbytes).  If the mail sending app
uses a smaller write buffer, then it will experience NAGLE delays
of a tenth of a second or so, and that adds up with large messages.

If this is the problem, fix the app, or use the NON-localhost
interface address for mail submission.

        Wietse

> Mar 21 20:06:52 imp postfix/smtpd[29129]: connect from
> localhost.sigmasys.co.uk[127.0.0.1]
> Mar 21 20:06:53 imp postfix/smtpd[29129]: 1BC4F4021E:
> client=localhost.sigmasys.co.uk[127.0.0.1]
> Mar 21 20:06:53 imp postfix/cleanup[8311]: 1BC4F4021E:
> message-id=<8cc287496c55fd09f946828073c2e728.squir...@mail.sigmasys.co.uk>
> Mar 21 20:08:30 imp postfix/smtpd[29129]: disconnect from
> localhost.sigmasys.co.uk[127.0.0.1]
> Mar 21 20:08:30 imp postfix/qmgr[2958]: 1BC4F4021E: from=<u...@domain>,
> size=2870865, nrcpt=1 (queue active)
> 
> Mar 21 20:12:23 imp postfix/pickup[3623]: B939C4021F: uid=1234 from=<user>
> Mar 21 20:12:23 imp postfix/cleanup[291]: B939C4021F:
> message-id=<20100321201223.ga23...@imp.sigmasys.co.uk>
> Mar 21 20:12:23 imp postfix/qmgr[2958]: B939C4021F: from=<u...@domain>,
> size=2874566, nrcpt=1 (queue active)
> 
> 
> 
> 

Reply via email to