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:

--------------------------------------------------
#!/bin/sh
cd /tmp
# For Level 1 use this line
/usr/bin/wget -N "http://wget-mirrors.uceprotect.net/uce-pfsm-1/access.gz";
# For Level 2 use this line
#/usr/bin/wget -N "http://wget-mirrors.uceprotect.net/uce-pfsm-2/access.gz";
# For Level 3 use this line
#/usr/bin/wget -N "http://wget-mirrors.uceprotect.net/uce-pfsm-3/access.gz";
cp /tmp/access.gz /etc/postfix/access.gz
cd /etc/postfix
gzip -d -f access.gz
/usr/sbin/postmap /etc/postfix/access
/usr/sbin/postfix reload
--------------------------------------------------------

the files are like this:

----------------------------------
03.78.40.189 571 IP 03.78.40.189 is LEVEL 1 listed at UCEPROTECT-NETWORK.
4.36.109.30 571 IP 4.36.109.30 is LEVEL 1 listed at UCEPROTECT-NETWORK.
4.58.120.34 571 IP 4.58.120.34 is LEVEL 1 listed at UCEPROTECT-NETWORK.
4.59.17.100 571 IP 4.59.17.100 is LEVEL 1 listed at UCEPROTECT-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:
>
> > 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: ${client_addr}
>
> There is mention of ${client_addr} in access(5) documentation, you
> are making this up, and Postfix only implements what's documented.
>
> PCRE and regexp tables can interpolate data from the input key into
> the result:
>
>    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: ${1}
>
> --
>        Viktor.
>
> Disclaimer: off-list followups get on-list replies or get ignored.
> Please do not ignore the "Reply-To" header.
>
> To unsubscribe from the postfix-users list, visit
> http://www.postfix.org/lists.html or click the link below:
> <mailto:[EMAIL PROTECTED]>
>
> If my response solves your problem, the best way to thank me is to not
> send an "it worked, thanks" follow-up. If you must respond, please put
> "It worked, thanks" in the "Subject" so I can delete these quickly.
>

Reply via email to