Hi Heiko, Thanks for the response. But is there any way I can do it via router? And if via acl, I tried to add the acl as you have suggested under acl_check_rcpt, but still mails are going out.
Infact my requirement is to block a domain which is hosted in the server itself to send out mail. Thanks in advance. On Mon, Mar 11, 2013 at 10:42 PM, Heiko Schlittermann <[email protected]>wrote: > Hello, > > soumya tr <[email protected]> (Mo 11 Mär 2013 16:06:08 CET): > > Hi, > > > > I am trying to blacklist a domain from sending mails. I used the > procedure > > as mentioned in > > > http://forum.ahosting.net/f15/how-manually-block-reject-emails-domain-exim-662.html > > > > ---------------------------- > > domainlist exim_blacklist = lsearch;/etc/eximblacklist > > ---------------------------- > > > > Added the router in ROUTER CONFIGURATION > > > > ---------------------------- > > reject_domains: > > > > driver = redirect > > # RBL Blacklist incoming hosts > > domains = +exim_blacklist > > allow_fail > > data = :fail: Connection rejected: SPAM source $domain is manually > > blacklisted. > > Yes, "domains" is related to the recipient. And anyway, you should use > the ACL features of exim to reject mails already at SMTP time. It's much > more efficient and more straight forward. > > Assuming a configuration similiar to the example.conf > > > acl_check_rcpt: > > … > > accept local_parts = postmaster > domains = +local_domains > > > deny message = rejected > sender_domains = lsearch;/etc/exim/blacklisted-domains > > … > > (It's from my memory, please cross check it with the spec.txt and other > postings here.) > > > Best regards from Dresden/Germany > Viele Grüße aus Dresden > Heiko Schlittermann > -- > SCHLITTERMANN.de ---------------------------- internet & unix support - > Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} - > gnupg encrypted messages are welcome --------------- key ID: 7CBF764A - > gnupg fingerprint: 9288 F17D BBF9 9625 5ABC 285C 26A9 687E 7CBF 764A - > (gnupg fingerprint: 3061 CFBF 2D88 F034 E8D2 7E92 EE4E AC98 48D0 359B)- > > -- > ## List details at https://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/ > -- Regards, Soumya Linux Sytem Administrator DirectI <http://poornam.com> "I like the dreams of the future better than the history of the past." -- ## List details at https://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/
