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


-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to