Thanks, looks good. I’d think the reload probably is necessary.

Martin

On 25 Dec 2017, 10:30 +0000, Ralph Seichter <m16+post...@monksofcool.net>, 
wrote:
> On 25.12.2017 11:14, Black Sheep wrote:
>
> > Is there a simple way to temporarily stop postfix delivering mail into
> > the /var/vmail mail boxes [...]
>
> The following method works (I'm not certain if reloading is even
> required):
>
> #!/bin/bash
> # Temporarily disable local delivery
> postconf -e defer_transports=local && postfix reload
> [... Your backup operations here ...]
> # Re-enable local delivery
> postconf -e defer_transports='' && postfix reload
>
> -Ralph

Reply via email to