On Wed, Nov 26, 2008 at 07:18:32AM +0100, Magnus B?ck wrote:

> On Wednesday, November 26, 2008 at 07:06 CET,
>      Rajkumar S <[EMAIL PROTECTED]> wrote:
> 
> > How can I suspend postfix delivering mails to external domains
> > temporary? Postfix must accept mails to other destinations but
> > not deliver them till it's told to.
> 
> http://www.postfix.org/postconf.5.html#defer_transports
> 
> Setting this to "smtp" should do, but it depends a little bit on the
> rest of your configuration. If you use the "smtp" transport for your
> content filter or for relaying to internal servers you will defer
> more messages than desired.

With Postfix 2.4 or later, a more fine-grained solution is:

    default_transport = retry:4.3.2 External mail temporarily unavailable

This assumes you have no transport table entries for domains that are not
yours (or are relay_domains).

Otherwise, make sure that "smtp" is only used for external email, use
"relay" for SMTP delivery to internal and relay domains, and "scan"
(or similar) for advanced content filters. Then follow the recipe Magnus
outlined.

-- 
        Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:[EMAIL PROTECTED]>

If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.

Reply via email to