Re: [Exim] sender_reject equivalent in Exim4

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Kirill Miazine
Datum:  
To: Philip Hazel
CC: exim-users
Betreff: Re: [Exim] sender_reject equivalent in Exim4
* Philip Hazel <ph10@???> [20011203 10:52]:
> > > In the ACL for RCPT, put
> > >
> > > deny senders = @@partial-cdb;/etc/exim/cdb/sender_reject.cdb
> > >
> > > And construct the data for the cdb file like this:
> > >
> > > *.domain.tld: *
> > > *.otherdomain.tld: badlocalpart1 : badlocalpart2 : ...
> >
> > I've found another way:
> >
> > deny condition = ${if or {{LOOKUP_BAD_SENDER_PARTIAL_DOMAIN} \
> >                           {LOOKUP_BAD_SENDER_BY_ADDRESS}} {yes} {no}}

> >
> > And file contains:
> >
> > *.domain.tld
> > otherdomain.tld
> > badsender@???
>
> There is another way as well. I forgot about this...
>
> deny senders = cdb;/etc/cdb/sender_reject.cdb
> deny senders = *@partial-cdb;/etc/exim/cdb/sender_reject.cdb
>
> This basically does the same as yours.


Right, There Is More Than One Way To Do It :)

But which of them is more efficient? (I don't really care much about
that as I find your solution more readable and will use that).

(btw, could I use
    deny senders = cdb;/etc/exim/cdb/sender_reject.cdb:\
                   *@partial-cdb;/etc/exim/cdb/sender_reject.cdb
as well?)


ACLs are very flexible and powerful. Thank you very much Philip.

--
Kirill