Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I'm trying to fix a problem with a slow line: whenever a user sends a message to be relayed through the company's postfix, as soon as the SMTP conversation finishes, postfix immediately queues the message toward the smtp transport.

When the user is inside the LAN, all is well; when the user is coming through the WAN, not so much.

Our users use IMAP accounts which are served by the same ADSL line that serves the postfix server, so when the MUA copies the message to the Sent folder, it finds the line clogged by the outgoing message.

In sendmail, there's a "HoldExpensive" option that causes the server to skip the first delivery attempt, waiting for the next queue run instead.

In postfix, I found the defer_transport option, but it seems to put the messages in an indefinite hold.

How can I emulate the "HoldExpensive" behaviour with postfix?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

As far as I can tell, there is no such feature in Postfix.

You could use an access policy with the HOLD target that puts the message on hold when it is coming from a WAN user. Afterwards, you could use postsuper from a cron job to release the held messages when it's convenient. The drawback of this would be that it also delays mail to local recipients that wouldn't need to be transported away via SMTP.

The more efficient solution might probably be to just give the end users some guaranteed IMAP bandwidth by enabling traffic shaping on the firewall, or even on the mail server itself.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.