Re: [exim] route mail to remote host

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Always Learning
Datum:  
To: Exim
CC: Graeme Fowler
Betreff: Re: [exim] route mail to remote host


On Mon, 2014-06-30 at 14:16 +0100, Graeme Fowler wrote:

> Example:
>
> acl_smtp_rcpt:
>   <some stuff>
>   warn set acl_m_specialroute = "specialroute"
>        condition = ${if eq{$local_part}{fred}}

>
> and in the router:
>
> specialroute:
> driver = manualroute
> domains = +local_domains
> transport = specialroute
> route_list = * my.special.mailhost
> condition = ${if eq{$acl_m_specialroute}{specialroute}}
>
> NOTE: all hypothetical, untested, might eat your first born etc.


Why can't the other person (OP) actually avoid the creation of a special
acl variable and simply put his code in a router like this:-


monday:
        local_parts  = fred
        domains      = abc.example.com
        driver       = manualroute
        transport    = it_is_special
        route_list   = * special.example.org


?


--
Regards,

Paul.
England, EU.

Centos, Exim, Apache, Libre Office.
Linux is the future. Micro$oft is the past.