Re: [Exim] conditional verification

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Kevin P. Fleming
Fecha:  
A: exim-users
Asunto: Re: [Exim] conditional verification
John Jetmore wrote:
> I'm trying to reproduce the following from and exim3 install into an exim4
> install:
>
> receiver_verify
> receiver_verify_hosts = ! 1.1.1.1 : ! 1.1.1.2 : ! 1.1.1.3
>
> My starting point was the generic install for sender verification:
>
> require verify = sender


Well, your first example was verifying the recipient, not the sender. But anyway..

>
> Is the only way to do this by converting the require into a deny? I got
> it to work like this:
>
>   deny    message = invalid sender <$sender_address> (0x10)
>           hosts   = ! 1.1.1.1 : ! 1.1.1.2 : ! 1.1.1.3
>           !verify = sender


Yes, this is the right idea, but there's a simpler version:

deny  message = invalid sender ...
       ! hosts = 1.1.1.1 : 1.1.1.2 : 1.1.1.3
       ! verify = sender


This way the host list processing is more logical (and it's more obvious what's
going on).