Re: [exim] RES: How to Block connection

Etusivu
Poista viesti
Vastaa
Lähettäjä: Heiko Schlittermann
Päiväys:  
Vastaanottaja: exim-users
Aihe: Re: [exim] RES: How to Block connection
Hello,

Ronaldo Luiz de Carvalho <ronaldol@???> (Tue Oct 25 23:35:15 2011):
> All accounts are AUTHed.
>
> There are a way to block the connections using domain? I tried the filter
> below but doesn't work.
>
>
> domainlist exim_blacklist = lsearch;/etc/eximblacklist
>
> reject_domains:
>
> driver = redirect
> # RBL Blacklist incoming hosts
> domains = +exim_blacklist
> allow_fail
> data = :fail: Connection rejected: SPAM source $domain is manually
> blacklisted.


I understand that you want to blacklist based on the *source* domain.
But the "domains = …" condition checks for the *destination* domain.


    driver = redirect
    condition = ${lookup{$sender_domain}lsearch{/etc/eximblacklist}}
    data = fail: …



But I'd use an ACL instead of a router:

    …
    acl_smtp_rcpt = acl_check_rcpt
    …


    begin acl


    acl_check_rcpt:


        …
        accept  domains = +local_domains
                local_parts = postmaster : abuse


        …
        deny    sender_domains = +exim_blacklist
                message = sorry




    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: 48D0359B -
 gnupg fingerprint: 3061 CFBF 2D88 F034 E8D2  7E92 EE4E AC98 48D0 359B -