Re: [Exim] Regex matching

Etusivu
Poista viesti
Vastaa
Lähettäjä: Tony Byers
Päiväys:  
Vastaanottaja: exim-users
Uudet otsikot: [Exim] why relaying?
Aihe: Re: [Exim] Regex matching
Here's the output:

# exim -bt -d9 x-y@???
Exim version 3.16 debug level 9 uid=0 gid=0
probably Berkeley DB version 1.8x (native mode)
Caller is an admin user
Caller is a trusted user
sender address = tony@???
Address testing: uid=0 gid=0 euid=0 egid=0
>>>>>>>>>>>>>>>>>>>>>>>>

Testing x-y@???
msu.edu in local_domains? yes (matched msu.edu)
msu.edu in percent_hack_domains? no (end of list)
address x-y@???
local_part=x-y domain=msu.edu
domain is local
>>>>>>>>>>>>>>>>>>>>>>>>

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                                                



Thank you,

Tony Byers


---- Philip Hazel <ph10@???> wrote:
> On Fri, 16 Mar 2001, Tony Byers wrote:
>
> > I have a special director set up with a condition to only handle
> mail
> > with a hyphen in it. Here it is:
> >
> > special_director:
> > condition = ${if match{$local_part}{.*-.*}{true}{false}}
> > driver = forwardfile
> > file = ${perl{getadds}}
> > filter
> >
> > It doesn't match when I send something to x-y@???, but when I
> run
> > it through exim -be, this is the result:
> >
> > # exim -be
> > > ${if match{x-y}{.*-.*}{true}{false}}
> > true
> > >
> >
> > Any ideas?
>
> Try exim -bt -d9 x-y@??? to check that it is getting to the correct
>
> director.
>
> -- 
> Philip Hazel            University of Cambridge Computing Service,
> ph10@???      Cambridge, England. Phone: +44 1223 334714.

>
>
> --
> ## List details at http://www.exim.org/mailman/listinfo/exim-users
> Exim details at http://www.exim.org/ ##
>


___________________________________________________________________
To get your own FREE ZDNet Onebox - FREE voicemail, email, and fax,
all in one place - sign up today at http://www.zdnetonebox.com