Re: [Exim] Exim Help

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: William Thompson
Dátum:  
Címzett: Bhavesh Shah
CC: exim-users
Tárgy: Re: [Exim] Exim Help
> I am using Exim 3.22 does it support ACL? As configuration file doesn't have section related to ACL or can I add it as a separate section?
> Also if I use ACL as you rightly suggested then should I have to use below router along with ACL you specified?
> verify_check_specials:
>             driver = domainlist
>             condition = "${if eq local_part@$domain}{X@???}{yes}{no}}"
>             verify_only
>             fail_verify
>             route_list = *


No, ACLs first appeared in exim v4.

You'd have to do this if you want it to work in exim 3.x:
Under your directors configuration put:
bad_recipients:
    driver = smartuser
    new_address = ${lookup{$local_part@$domain}lsearch{etc/exim/bad_recipients}{nouser}fail}
    verify_only
    fail_verify_recipient


If you want it to fail both sender and recipient, change
fail_verify_recipient to fail_verify

I can't guarentee that it will work. Another solution would be to use an
alias file (or one that has both localparts and domains) and use the :fail:
syntax.

> -----Original Message-----
> From: William Thompson [mailto:wt@electro-mechanical.com]
> Sent: Friday, April 11, 2003 10:24 AM
> To: Bhavesh Shah
> Cc: exim-users@???
> Subject: Re: [Exim] Exim Help
>
> > Hi John,
> > Yes single email works fine.
> > Here is the router configuration
> >
> > verify_check_specials:
> >            driver = domainlist
> >            condition = "${if eq local_part@$domain}{X@???}{yes}{no}}"
> >            verify_only
> >            fail_verify
> >            route_list = *

> >
> > but for multiple recipient to block can you suggest what should my ACL or router should look like?
> > Thanks and appreciate it.
>
> I used to use a router (er director on 3.35) to do this and upon upgrading,
> I went to the acl.  Here's my ACL (It's almost to the top of the acl)
> deny    message = ${if !eq{$address_data}{}\
>             {$address_data}\
>             {$local_part@$domain is not a valid mailbox}\
>            }
>     log_message = Listed in bad_recipients
>     domains = +local_domains
>     recipients = lsearch*;/etc/exim4/bad_recipients

>
> the domains is only there to keep me from goofing some things up and so the
> acl doesn't check every rcpt to.