Get IP on check_client_acces

2008-11-07 Thread Iker Perez de Albeniz
In my main.cf for example i have added: smtps_data_restrictions = check_client_acces pcre:/etc/postfix/access.pcre and in that example access file i have putted: /^(.*)$/ PREPEND X-Sender-IP: ${1} the problem is that check_client_access matches against client hostname no against I

Re: Add sender IP on the header

2008-11-07 Thread Iker Perez de Albeniz
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 2008/11/6 mouss <[EMAIL PROTECTED]> > Iker Perez de Albeniz wrote: > >> an other quiestion.. abaut this postfix.. >> > > if it's another ques

Re: Add sender IP on the header

2008-11-06 Thread Iker Perez de Albeniz
ECT-NETWORK. 4.59.24.34 571 IP 4.59.24.34 is LEVEL 1 listed at UCEPROTECT-NETWORK. this wont work if the value we get is a hostname... isn't it? 2008/11/6 Victor Duchovni <> > On Thu, Nov 06, 2008 at 04:20:25PM +0100, Iker Perez de Albeniz wrote: >

Re: Add sender IP on the header

2008-11-06 Thread Iker Perez de Albeniz
thanks!! i didn't know about pcre module and works perfect! 2008/11/6 Victor Duchovni <[EMAIL PROTECTED]> > 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 wi

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: $