[exim] Want to fail a manualroute

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Alain Williams
Dátum:  
Címzett: Exim Users
Tárgy: [exim] Want to fail a manualroute
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
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.

--
Alain Williams
Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
+44 (0) 787 668 0256 http://www.phcomp.co.uk/
Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php
Past chairman of UKUUG: http://www.ukuug.org/
#include <std_disclaimer.h>