Iker Perez de Albeniz wrote:
the problem is that with Victor's PCRE:
Please do not top post. put your reply after the text you reply to.
smtpd_data_restrictions = check_client_access pcre:/etc/postfix/add_header.pcre add_header.pcre: # Client name, not an IPv4/IPv6 address: /[^\d.:]/ DUNNO
Viktor probably meant /[^\d\.:]/ DUNNO
# Otherwise: /^(.*)$/ PREPEND X-Send-IP: ${1} i get this headers: X-Sender-IP: localhost Received: from mta01.montecarlo (localhost [127.0.0.1]) by mta01.montecarlo (Postfix) with ESMTP id 505E01680CB X-Sender-IP: unknown Received: from mta-relay (unknown [192.168.79.22]) by mta01.montecarlo (Postfix) with ESMTP what i need to get is not localhots is the ip 127.0.0.1 and in the secon case what i need to get in 192.168.79.22