Re: [Exim] Regex matching

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Philip Hazel
Date:  
À: Tony Byers
CC: exim-users
Sujet: Re: [Exim] Regex matching
On Mon, 19 Mar 2001, Tony Byers wrote:

> >>>>>>>>>>>>>>>>>>>>>>>>
> directing x-y@???
> calling special_director director
> special_director director declined for x-y (not a user)    <==========
> calling localuser director                           
> localuser director declined for x-y: no such user    
> x-y@??? is undeliverable:                        
>   unknown local-part "x-y" in domain "msu.edu"   
> search_tidyup called                             


Well, that's pretty obvious, I would have thought. It's not running the
director because x-y is not a local user.

> > > special_director:
> > > condition = ${if match{$local_part}{.*-.*}{true}{false}}
> > > driver = forwardfile
> > > file = ${perl{getadds}}
> > > filter


RTFM about the check_local_user option for forwardfile if you want to
run it for local parts that are not local users.


-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.