On 11/09/2021 13.43, Nick Howitt wrote:
As part of a backup script for cyrus-imapd, I'd like to temporarily stop
postfix delivering mails to cyrus-imapd and to just queue them. If it is
I believe you can do this with check_recipient_access, e.g.:
/etc/postfix/main.cf:
smtpd_recipient_restrictions =
[..]
check_recipient_access pcre:/etc/postfix/recipient_checks.pcre
[..]
/etc/postfix/recipient_checks.pcre:
/.*\@.*/ HOLD
This should accept all incoming mail, and hold it in the queue that you
can later release with postsuper.
You'll need to reload postfix to have it re-read the .pcre file. Other
lookup tables probably work too.
--
Kristian