Re: [exim] How to temporarily suspend remote smtp deliveries…

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Jeremy Harris
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: Re: [exim] How to temporarily suspend remote smtp deliveries (preferably by dbase query)
On 18/04/15 10:45, Boli wrote:
> I want to be able to suspend and queue all remote smtp deliveries at
> will - and preferably store the config for this in a mysql dbase.
>
> It would be nice if all remote deliveries could effectively run this
> pseudocode:
>
> foreach mail {
>     deliver_it unless ((SELECT remote_delivery_disabled FROM eximconfig)
> = true)
>     otherwise leave it on the queue
> }

>
> Can anyone give me some pointers?


A redirect router early in the router chain,
triggering on nonlocal domains only,
doing a mysql lookup expansion which returns either
":defer:" (minus the quotes) or an
empty string, for the "data" option
of the router.

http://exim.org/exim-html-current/doc/html/spec_html/ch-the_redirect_router.html

--
Cheers,
Jeremy