Neil wrote:
On Aug 25, 2008, at 7:11 AM, mouss wrote:
Neil wrote:
Is there a way I can instruct Postfix to accept incoming mail
(external and
internal), but not to deliver it/pass the mails on to their respective
destinations?
it is not clear which mail you are about. I guess it is about mail
received via smtp. if so, use HOLD in a restriction:
smtpd_client_restrictions =
check_client_access pcre:/etc/postfix/hold
== hold:
/./ HOLD
what problem are you trying to solve?
First, thank you all for your help, especially so promptly.
My goal was to not miss/reject any mail while keeping it from reaching
Dovecot for a while (maybe 20-30 min at most) while I fiddled with
Dovecot's folders a little.
note that HOLD doesn't "fix" errors! if you use dovecot sasl, that may
cause errors during the transaction and nothing will be held. it may be
safer to stop postfix.
Now, I suspect that even if I just killed Postfix, I wouldn't miss much,
since other mail servers would retry.
the only problem is with MUAs if you have users who connect to your postfix.
(And even if I did miss something
right now, it wouldn't be the end of the world; I have nothing critical
coming in yet.) I was just interested in the "proper" way to do such a
thing, if I ever had the need, once I became more reliant on my mail
server.
I found that it is safer to stop postfix ("for maintenance").