Hi,
i have tried something like this (in main.cf <http://main.cf>): smtp_data_restrictions = check_lcient_acces cidr:/etc/postfix/add_headerand add_header file is like :0.0.0.0/0 <http://0.0.0.0/0> PREPEND X-Send-IP: ${client_addr}
Perhaps you can do it with header_checks: header_checks = pcre:/etc/postfix/header_checks And the regexp something like... /^Received: from .* \(.* \[([0-9\.]+)\]\).*$/ PREPEND X-Sender-IP: ${1} Regards, -- Alvaro Marín Illera Hostalia Internet www.hostalia.com