Re: [exim] Want to fail a manualroute

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Andrew
Dátum:  
Címzett: Exim Users
Tárgy: Re: [exim] Want to fail a manualroute
Alain Williams wrote:
> I am tweaking an exim at a school. The admin people have their own MS Exchange box
> (no comment), I have a list of school admin users that I use to only pass on those
> email addresses to the exchange box.
>
> That works, but when there is an address that is not in the list the router
> allows subsequent routers to look at it -- something that I do not want, I want
> the mail to be bounced.
>
> The router that I have is:
>
> schoolAdmin:
> driver = manualroute
> domains = some.school
> condition = ${lookup{$local_part@$domain}lsearch{/etc/exim/admin_users}{1}fail}
> transport = remote_smtp
> route_list = * admin.exchange.box
> no_more
>
> The 'no_more' seems to do nothing.
>
> I could deal with it in an ACL I suppose, but that means having the test in 2 places,
> in the ACLs I have:
>     require verify = recipient


change that to

require verify = recipient/callout

and you will find that it will do a callout checking with a SMTP session
to the exchange box to see if the user exists.

HTH
cya
Andrew

> and the router should thus do this.
>
> How do I get the bounce for domain some.school if the user is not in the file ?
>
> postmaster is dealed with earlier.
>



-- 
Awdcomp computing services.
Mobile: 0433 263 470
Web:    www.awdcomp.net
Email:  awd@???