Re: [Exim] different smarthosts depending on SENDER domain

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Peter Mathiasson
Fecha:  
A: exim-users
Asunto: Re: [Exim] different smarthosts depending on SENDER domain
--
On Mon, Jan 14, 2002 at 01:10:44PM +0100, kza wrote:
> How can I write exim rules, that specify mail.gmx.net as the smarthost
> ONLY when the From address is gmx.de, and specify smtp.t-online.com,
> only when the senders address is t-online.de, and for the local exim to
> deliver directly for all other cases?


Use the condition option in your routers.

Something like (untested):
condition = "${if match {$h_from}{.*@???} {1}{0}}"

--
Peter Mathiasson                   | GPG Fingerprint:
E-Mail: peter(at)mathiasson(dot)nu |  A9A7 F8F6 9821 F415 B066
Web   : http://www.mathiasson.nu   |  77F1 7FF5 C2E6 7BF2 F228
--
[ Content of type application/pgp-signature deleted ]
--