On 19/10/18 00:26, das mouse wrote:
> As weird as it sounds none of the queue managing commands seem to do
> anything: postfix flush, postqueue -f, postsuper -h ALL, postsuper -H
> ALL. Increasing verbosity levels (-v) does not really help.

None of these will do anything on an empty queue.

> Back in the days of Postfix 2.2 I remember I could use postsuper -h ALL
> to put the Postfix queue on hold. Arriving emails would be held back.

Not entirely correct.  Existing messages already in the queue will be
moved to the hold queue with this command.

> On this machine, however, I must put emails on hold using configuration
> in main.cf <http://main.cf>:
> 
> smtpd_recipient_restrictions =
>    check_recipient_access hash:/etc/postfix/hold
> 
> with /etc/postfix/hold:
> mydomain.com <http://mydomain.com> HOLD

This will put all messages with a recipient of mydomain.com on hold as
soon as postfix accepts them.  BTW, it can be shortened to:

smtpd_recipient_restrictions = check_recipient_access
inline:{example.com=HOLD}

...or if you really want to put ALL inbound mail on hold:

smtpd_recipient_restrictions = check_recipient_access static:HOLD


Peter

Reply via email to