[exim] Re: Fwd: Can I tell exim to accept messages and queue…

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Chris Siebenmann
日付:  
To: Johnnie W Adams
CC: exim-users, Chris Siebenmann
題目: [exim] Re: Fwd: Can I tell exim to accept messages and queue them rather than send them on?
> The man page wasn't helpful for this.
>
>      I'm going to be replacing our mail nodes over the next few weeks and
> I've been sequencing events in the move. It would be very handy if it were
> possible to tell one of my nodes to keep accepting mail but to stop trying
> to deliver it. Can this be done? If so, how? I suspect the answer is no,
> but I'll gladly be told otherwise.


This is entirely possible. You want a router that acts very early on and
looks something like this:

    defer_user:
        driver = redirect
        allow_defer
        data = :defer:delivery temporarily stalled
        no_verify
        no_expn
        condition = ${if match_address{$local_part@$domain}{/etc/exim4/exim-addr-defer}}


Then at the appropriate time, add '*@*' to /etc/exim4/exim-addr-defer
and enjoy absolutely everything being stalled. Because this router is
set to no_verify, it will not stop a RCPT TO address being verified and
thus accepted. (Or even a MAIL FROM address.)

    - cks


--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-users-unsubscribe@???
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/