Re: [exim] Reject Specific users...

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Dan_Mitton
Data:  
Para: Magnus Holmgren
CC: exim-users
Asunto: Re: [exim] Reject Specific users...
OK, almost there !! Two routers, the first, a verify_only to pass the
message through and the second to 'fail' it...

verify_router:
driver = accept
verify_only
domains = +route_to_domains
local_parts = ${lookup{$local_part}
nwildlsearch{/usr/local/exim/valid.users}{found}{$local_part}}

bad_recipients:
driver = redirect
domains = +route_to_domains
local_parts = ${lookup{$local_part}
nwildlsearch{/usr/local/exim/valid.users}{found}{$local_part}}
data = :fail: unknown user

but I'm getting an error in the log...

2007-06-01 07:51:00 [13735] 1Hu8Sx-0003ZW-GT == dann.mitton@???
R=bad_recipients defer (-17): error in redirect data: ":fail: unknown
user" is not permitted

The docs seem to agree with you that this should work. What am I
missing?? I'm running 4.67

Thanks again for all of your help. This has been very enlightening!!



Sent by:        exim-users-bounces@???
To:     exim-users@???
cc:      (bcc: Dan Mitton/YD/RWDOE)
Subject:        Re: [exim] Reject Specific users...
LSN: Not Relevant
User Filed as: Not a Record


On Friday 01 June 2007 01:12, Dan_Mitton@??? wrote:
> Ok, it seemed like that the 550 was the correct response. How do I have
> Exim "accept" the message and generate a bounce??


To do that, you have to accept it through the ACLs (I assume that you're
only
*ever* going to do that if the sender is authenticated!), then make sure
that
routing fails. To do *that*, either add an extra condition to the routers
that would otherwise accept the addresses you want to reject, or add an
extra
router that catches the bad addresses, like this:

bad_recipients:
local_parts = foo : bar : /etc/exim/bad_recipients
driver = redirect
data = :fail:Bad recipient

or simply add :fail: records to an existing alias file. The best solution
depends on exactly what you want to achieve, what class of addresses you
want
to block; when, how many, and why. Why does Exim accept mail for those
addresses in the first place?

-- 
Magnus Holmgren        holmgren@???
                       (No Cc of list mail needed, thanks)
-- 
## List details at http://www.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/