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