Re: [exim] certain recipients only accept from certain hosts

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Heiko Schlittermann
Fecha:  
A: exim-users
Asunto: Re: [exim] certain recipients only accept from certain hosts
Hello Gary,

> from the correct IP address.
> http://www.sant-media.co.uk/2010/03/how-to-configure-exim-to-receive-email-for-domain-only-from-specific-ip-addresses/
>
> But these work with a list of IP addresses and a list of domains (or users) so
> doesn't give a 1-to-1 check.
>
> Can anyone suggest a solution where I can provide a list say of:
>
> user1 IP 1
> user2 IP 2


Given userN is the recipient of your message…
In on of your rcpt acl put something like

    require     hosts   = ${lookup{$local_part@$domain}lsearch{allowed_hosts}}


Not tested.

    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: F69376CE -
 ! key id 7CBF764A and 972EAC9F are revoked since 2015-01 ------------ -