RE: [Exim] Exim Help

Top Page
Delete this message
Reply to this message
Author: Bhavesh Shah
Date:  
To: William Thompson
CC: exim-users
Subject: RE: [Exim] Exim Help
Hi William,
Sorry to trouble you again and again but I am not that familiar with Exim. When I added
bad_recipients:
    driver = smartuser
    new_address = ${lookup{$local_part@$domain}lsearch{etc/exim/bad_recipients}{nouser}fail}
    verify_only
    fail_verify_recipient


I got the following error:

2003-04-11 11:20:00 Exim configuration error
router bad_recipients: cannot find router driver "smartuser" in line 365
2003-04-11 11:20:00 Exim configuration error
option "new_address" unknown in line 366 ("driver" must be specified before any private options)
2003-04-11 11:20:00 Exim configuration error
router bad_recipients: cannot find router driver "smartuser" in line 367
2003-04-11 11:20:00 Exim configuration error
router bad_recipients: cannot find router driver "smartuser" in line 368
Segmentation Fault


DO we have to create router smartuser how?
Sorry for the trouble.
Thanks
Bhavesh


-----Original Message-----
From: William Thompson [mailto:wt@electro-mechanical.com]
Sent: Friday, April 11, 2003 10:44 AM
To: Bhavesh Shah
Cc: exim-users@???
Subject: 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.