On 11/9/06, Marc Perkel <[EMAIL PROTECTED]> wrote:
>> I was just wondering how in Postfix that someone could add a header
>> indicating the IP address of the connecting host. I'm asking for
>> someone I'm working with and I'm an Exim guy and this is trivial in
>> Exim.
>>

# main.cf
smtpd_data_restrictions =
 check_client_access regexp:/etc/postfix/client_ip_header

# client_ip_header
/([.0-9]+)/  PREPEND X-Client-IP: $1


Note: this requires postfix 2.1 or newer.

--
Noel Jones

Reply via email to