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?

cleanup -v shows the delay occurs just after cleanup_header_callback with
the delay proportional to attachment size. Delay will occur for any SMTP
session, including those from both localhost and remote servers. No header
or body checks are used at all for this postfix installation and I have
tried setting receive_override_options=no_header_body_checks on the off
chance but this did not affect the situation.

Mar 21 20:33:44 imp postfix/cleanup[23289]: cleanup_header_callback:
'Content-Disposition: attachment; filename="test.bin"'
Mar 21 20:35:19 imp postfix/cleanup[23289]: POP boundary
----=_20100321203343_12460

Included below are examples from /var/log/maillog of the delay via STMP
and it's absence via pickup. postconf -n, master.cf, a log of cleanup -v
for mail received by SMTP and the test attachment used are available from
http://sigmasys.co.uk/postfix/

Kind regards,
Dave Green

/var/log/maillog
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