Torsten <exim@???> (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 test@???
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 = bad@???
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 = bad@???
data = ${lookup{$local_part@$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 -