Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: exim: users

Block outgoing emails

 

 

exim users RSS feed   Index | Next | Previous | View Threaded


exim at codingpirates

Sep 29, 2009, 12:31 AM

Post #1 of 2 (626 views)
Permalink
Block outgoing emails

Hi,

is it possible to block outgoing emails with a specified sender with
exim4? For example block emails to test [at] domain


Greets,

Torsten

--
## 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/


hs at schlittermann

Sep 29, 2009, 3:34 AM

Post #2 of 2 (586 views)
Permalink
Re: Block outgoing emails [In reply to]

Torsten <exim [at] codingpirates> (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 [at] domain

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 [at] sender
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 [at] sender
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 -
Attachments: signature.asc (0.19 KB)

exim users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.