Re: [exim] force different host for delivery

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Marc Sherman
Dátum:  
Címzett: exim-users
Tárgy: Re: [exim] force different host for delivery
John Jetmore wrote:
>
> I didn't catch the original email that had this question, so there may be
> more to it than what's quoted above, but what about adding a macro and a
> router that do something like this:
>
> FORCEPATH=no_force
>
> forcepath:
> driver = manualroute
> condition = ${if eq{FORCEPATH}{no_force}{no}{yes}}
> domains = ! +local_domains
> route_list = * FORCEPATH
> transport = remote_smtp
>
> This would get ignored by default, but running
> exim -q -DFORCEPATH=special.mail.server
> would route all of the mail to special.mail.server. I think =)


.ifdef FORCEPATH is cleaner than comparing against no_force, I think.

- Marc