Re: [exim] router and transport entries

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Magnus Holmgren
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: Re: [exim] router and transport entries
On Tuesday 27 June 2006 20:07, sysadmin@??? took the opportunity
to write:
> > Routers are handled in the order they appear in the configuration file.
> > Transports are called by routers and so will be associated with a router
> > hence
> > the order in which they appear in the configuration file is not
> > important.
>
> With base on rule above, the right order for a procmail router is before
> a localuser router?


Yes. Only the first matching router will be used (unless unseen is used, but
that will cause a copy to be made), so with the order below the procmail
router will never be used.

> Follow the routers that I'm using om exim.conf:
>
> localuser:
>         driver = accept
>         check_local_user
>         transport = local_delivery

>
>
> procmail:
>   debug_print = "R: procmail for $local_part@$domain"
>   driver = accept
>   domains = +local_domains
>   check_local_user
>   transport = procmail_pipe
>   # emulate OR with "if exists"-expansion
>   require_files = ${local_part}:\
>                   ${if exists{/etc/procmailrc}\
>                     {/etc/procmailrc}{${home}/.procmailrc}}:\
>                   +/usr/bin/procmail


-- 
Magnus Holmgren        holmgren@???
                       (No Cc of list mail needed, thanks)