Torsten <[email protected]> (Di 29 Sep 2009 09:31:21 CEST): > Hi, > > is it possible to block outgoing emails with a specified sender with > exim4? For example block emails to [email protected]
As outgoing was normally somewhen incoming, I'd focus on blocking the
incoming mails.
In your RCPT acl you could do something like this:
deny senders = [email protected]
local_parts = test
domain = domain.com
More flexibility you'll get using some lookup for sender and/or
recipient. But it depends on the amount of blocked senders/recipients.
If you really need to block on *outgoing* side, you may conditional
(based on the sender) route (redirect) to :blackhole: or :fail:.
black_router:
driver = redirect
senders = [email protected]
data =
${lookup{$local_p...@$domain}lsearch{/etc/exim/black}{:fail:}}
allow_fail
Both is not tested, but may be it shows you the direction.
Best regards from Dresden/Germany
Viele Grüße aus Dresden
Heiko Schlittermann
--
SCHLITTERMANN.de ---------------------------- internet & unix support -
Heiko Schlittermann HS12-RIPE -----------------------------------------
gnupg encrypted messages are welcome - key ID: 48D0359B ---------------
gnupg fingerprint: 3061 CFBF 2D88 F034 E8D2 7E92 EE4E AC98 48D0 359B -
signature.asc
Description: Digital signature
-- ## List details at http://lists.exim.org/mailman/listinfo/exim-users ## Exim details at http://www.exim.org/ ## Please use the Wiki with this list - http://wiki.exim.org/
