Re: [Exim] Confusing myself with expansions

Página Inicial
Delete this message
Reply to this message
Autor: Edgar Lovecraft
Data:  
Para: exim-users
Assunto: Re: [Exim] Confusing myself with expansions
Andreas Metzler wrote:

>
> On Sun, Feb 01, 2004 at 10:18:31PM +0000, Alan Chandler wrote:
> I am wanting to add a facility to write all outgoing mail for some local
>
> users in their ~/Maildir/.Sent folder
>
> Imho this is the MUAs job, not exim's.
>
> [...]
>
> I know the condition statements are not right, but I can't seem to
> find > anything in the documentation that tells me how to create a
> condition that > checks $sender_address_domain against my +local_domains
> domain list. [...]
>
> There is none yet.
>

This is not entirley true...
It depends on how you build you local_domains host list.
Example:
 (untested but should work)
domainlist local_domains = domain1 : domain2 : \
    ${if eq{$sender_address_domain}{domain1}{$sender_address_domain}{}}


or what I use in production (all ldap lookups) I keep two lists,
   one for local_domains_R (recipient) the other local_domains_S (sender)
   as I like to have them seperated so that I can use each list only where
   needed, although they could all be one BIG list :)
domainlist local_domains_R       = \
    ldapm;ldap::///o=CONTAINER?dc?one?(&(objectClass=*) \
    (dc=${quote_ldap:$domain}))
domainlist local_domains_S       = \
    ldapm;ldap::///o=CONTAINER?dc?one?(&(objectClass=*) \
    (dc=${quote_ldap:$sender_address_domain}))


Doing this I CAN use a statment such as

router = accept
domains = +local_domains_R : +local_domains_S
>
> Quoting ftp://ftp.exim.org/pub/exim/exim4/WishList
> | (73)  17-Jul-02 M  Match a list from within a condition
> |
> | e.g.  ${if matchdomain {$domain}{+domainlist} ...
> |       ${if matchhost {$sender_host_address}{1.2.3.4/10:2.3.4.5/16}...
> |
> | Thought needed about how to handle host names. This may be too | messy
> to specify cleanly.

>

--

--EAL--