On 2017-12-25 13:58:53 (-0500), Wietse Venema wrote:
Wietse Venema:
Black Sheep:
> Is there a simple way to temporarily stop postfix delivering mail
> into the /var/vmail mail boxes, instead queueing them up? The
> purpose being to get a clean backup of /var/vmail without stopping
> receipt of mail from the internet. Then restart mail delivery so
> the queue is emptied into the appropriate local mail boxes?

/etc/postfix/main.cf
    transport_maps = static:{4.3.0 Mail service unavailable}

Sorry that should be:

        transport_maps = static:{retry:4.3.0 Mail service unavailable}

That will stop Postfix from acccepting mail from the network.

Oh wow.  Thanks for that tip!

I really need to get used to start using more of these static: maps. I have a couple single-entry /^.*$/ pcre: tables which should probably all be static:.

Philip

--
Philip Paeps
Senior Reality Engineer
Ministry of Information

Reply via email to