[Pkg-exim4-users] Is this at all possible?

Andreas Metzler ametzler at downhill.at.eu.org
Sat Jul 15 16:04:33 UTC 2006


On 2006-07-15 Magnus Holmgren <holmgren at lysator.liu.se> wrote:
> On Saturday 15 July 2006 12:25, Neil Briscoe took the opportunity to write:
> > A helpful response, thankyou.
> >
> > This is the router I've concocted on paper.
> >
> > smart_route:
> >   driver = manualroute
> >   transport = remote_smtp
> >   senders = +ems_domains
> >   route_list = !+local_domains post8a:post8b

> This is prettier:

> smart_route:
>   driver = manualroute
>   transport = remote_smtp
>   domains = !+local_domains
>   senders = +ems_domains
>   route_list = * post8a:post8b

> But there are issues still.

> 1. senders needs an address list, not a domain list. You can use 

>   condition = ${if match_domain {$sender_address_domain}{+ems_domains}}

> instead of the senders condition.

I almost sent a mail claiming that the original senders = +ems_domains
needs to be changed, too. However rereading
http://www.exim.org/exim-html-4.62/doc/html/spec_html/ch10.html#SECTaddresslist
stopped me:
| If a non-empty pattern that is not a regular expression or a lookup
| does not contain an @ character, it is matched against the domain part
| of the subject address. The only two formats that are recognized this
| way are a literal domain, or a domain pattern that starts with *. In
| both these cases, the effect is the same as if *@ preceded the
| pattern. For example:
| 
| deny senders = enemy.domain : *.enemy.domain

I'd use
senders = *@+ems_domains
anyway.

cu andreas
-- 
The 'Galactic Cleaning' policy undertaken by Emperor Zhark is a personal
vision of the emperor's, and its inclusion in this work does not constitute
tacit approval by the author or the publisher for any such projects,
howsoever undertaken.                                (c) Jasper Ffforde



More information about the Pkg-exim4-users mailing list