Re: How can I temporarily defer internal delivery of e-mails?

2021-09-11 Thread Nick Howitt
On 11/09/2021 20:28, Viktor Dukhovni wrote: On Sat, Sep 11, 2021 at 08:22:46PM +0100, Nick Howitt wrote: I interpreted this, perhaps mistakenly, as if this were now the running config of postfix. There is no such thing as "the running config of Postfix". There's just main.cf, master.cf a

Re: How can I temporarily defer internal delivery of e-mails?

2021-09-11 Thread Viktor Dukhovni
On Sat, Sep 11, 2021 at 08:22:46PM +0100, Nick Howitt wrote: > I interpreted this, perhaps mistakenly, as if this were now the running > config of postfix. There is no such thing as "the running config of Postfix". There's just main.cf, master.cf and various processes that have at some point in

Re: How can I temporarily defer internal delivery of e-mails?

2021-09-11 Thread Nick Howitt
On 11/09/2021 20:05, Wietse Venema wrote: Nick Howitt: Partly answering my own question, "postconf -o body_checks=regexp:/etc/postfix/body_checks" seems to do the right thing in that the output of the command shows it is set No it doesn't. Where did you get the idea from that "postconf -o

Re: How can I temporarily defer internal delivery of e-mails?

2021-09-11 Thread Wietse Venema
Nick Howitt: > Partly answering my own question, "postconf -o > body_checks=regexp:/etc/postfix/body_checks" seems to do the right thing > in that the output of the command shows it is set No it doesn't. Where did you get the idea from that "postconf -o body_checks=whatever" shows the actual val

Re: How can I temporarily defer internal delivery of e-mails?

2021-09-11 Thread Nick Howitt
On 11/09/2021 16:40, Nick Howitt wrote: On 11/09/2021 14:03, Nick Howitt wrote: On 11/09/2021 13:57, Nick Howitt wrote: On 11/09/2021 13:24, Kristian wrote: 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 de

Re: How can I temporarily defer internal delivery of e-mails?

2021-09-11 Thread Kristian
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_restr

Re: How can I temporarily defer internal delivery of e-mails?

2021-09-11 Thread Nick Howitt
On 11/09/2021 14:03, Nick Howitt wrote: On 11/09/2021 13:57, Nick Howitt wrote: On 11/09/2021 13:24, Kristian wrote: 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 qu

Re: How can I temporarily defer internal delivery of e-mails?

2021-09-11 Thread Matus UHLAR - fantomas
On 11/09/2021 13:24, Kristian wrote: 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

Re: How can I temporarily defer internal delivery of e-mails?

2021-09-11 Thread Nick Howitt
On 11/09/2021 13:57, Nick Howitt wrote: On 11/09/2021 13:24, Kristian wrote: 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

Re: How can I temporarily defer internal delivery of e-mails?

2021-09-11 Thread Nick Howitt
On 11/09/2021 13:24, Kristian wrote: 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.: /et

Re: How can I temporarily defer internal delivery of e-mails?

2021-09-11 Thread Nick Howitt
On 11/09/2021 13:42, Wietse Venema wrote: Nick Howitt: Hi, 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 at all possible I'd like to do it without restarting any services (I know I can just st

Re: How can I temporarily defer internal delivery of e-mails?

2021-09-11 Thread Wietse Venema
Nick Howitt: > Hi, > 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 > at all possible I'd like to do it without restarting any services (I > know I can just stop cyrus-imapd). > > Reading what I

How can I temporarily defer internal delivery of e-mails?

2021-09-11 Thread Nick Howitt
Hi, 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 at all possible I'd like to do it without restarting any services (I know I can just stop cyrus-imapd). Reading what I can, there is a paramete