Re: Add sender IP on the header

2008-11-07 Thread Iker Perez de Albeniz
the problem is that with Victor's PCRE: smtpd_data_restrictions = check_client_access pcre:/etc/postfix/add_header.pcre add_header.pcre: # Client name, not an IPv4/IPv6 address: /[^\d.:]/ DUNNO # Otherwise: /^(.*)$/PREPEND X-Send-IP:

Re: Add sender IP on the header

2008-11-07 Thread mouss
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

Re: Add sender IP on the header

2008-11-07 Thread Henrik K
On Fri, Nov 07, 2008 at 09:49:43AM +0100, mouss wrote: # Client name, not an IPv4/IPv6 address: /[^\d.:]/ DUNNO Viktor probably meant /[^\d\.:]/ DUNNO No need to escape things in character classes.

Re: Add sender IP on the header

2008-11-07 Thread Alvaro MarĂ­n
Hi, i have tried something like this (in main.cf http://main.cf): smtp_data_restrictions = check_lcient_acces cidr:/etc/postfix/add_header and 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:

Re: Add sender IP on the header

2008-11-07 Thread Noel Jones
mouss wrote: Henrik K wrote: On Fri, Nov 07, 2008 at 09:49:43AM +0100, mouss wrote: # Client name, not an IPv4/IPv6 address: /[^\d.:]/ DUNNO Viktor probably meant /[^\d\.:]/ DUNNO No need to escape things in character classes. Indeed. I am so

Add sender IP on the header

2008-11-06 Thread Iker Perez de Albeniz
Hi, I'am trying to add a new header to all input messages with a label like this: X-Send-IP: senderip i have tried something like this (in main.cf): smtp_data_restrictions = check_lcient_acces cidr:/etc/postfix/add_header and add_header file is like : 0.0.0.0/0 PREPEND X-Send-IP:

Re: Add sender IP on the header

2008-11-06 Thread Victor Duchovni
On Thu, Nov 06, 2008 at 04:20:25PM +0100, Iker Perez de Albeniz wrote: Hi, I'am trying to add a new header to all input messages with a label like this: X-Send-IP: senderip i have tried something like this (in main.cf): smtp_data_restrictions = check_lcient_acces

Re: Add sender IP on the header

2008-11-06 Thread Iker Perez de Albeniz
an other quiestion.. abaut this postfix.. why sometimes i get an IP an other a client name??? is ther any way to force postfix to resolve allways the names to get te ips? for example in uceprotect DNSBls system they give you that script: --

Re: Add sender IP on the header

2008-11-06 Thread mouss
Iker Perez de Albeniz wrote: an other quiestion.. abaut this postfix.. if it's another question, better start another thread. or at least, trim the old conversation. why sometimes i get an IP an other a client name??? if you mean in access checks, postfix will generally lookup both.