Re: [exim] Port ACL Condition

Page principale
Supprimer ce message
Répondre à ce message
Auteur: John Burnham
Date:  
À: exim-users
Sujet: Re: [exim] Port ACL Condition

>
> Is there and ACL condition that lets you do a condition based on the
> port the message was received on?
>


I'll quote straight from the docs:

$received_ip_address

    As soon as an Exim server starts processing an incoming TCP/IP connection,
this variable is set to the address of the local IP interface, and
$received_port is set to the local port number. (The remote IP address and port
are in $sender_host_address and $sender_host_port.) When testing with -bh, the
port value is -1 unless it has been set using the -oMi command line option.


    As well as being useful in ACLs (including the "connect" ACL), these
variable could be used, for example, to make the file name for a TLS certificate
depend on which interface and/or port is being used for the incoming connection.
The values of $received_ip_address and $received_port are saved with any
messages that are received, thus making these variables available at delivery
time.


    Note: There are no equivalent variables for outgoing connections, because
the values are unknown (unless they are explicitly set by options of the smtp
transport).


Does that do what you want ?
J