Re: check client ip only if mail has a particular header

2011-03-15 Thread Noel Jones
On 3/15/2011 7:46 PM, Stan Hoeppner wrote: Giovanni Mancuso put forth on 3/15/2011 10:59 AM: Therefore, the only solution is to use a miltet, right? It's looking that way. Do you know a simple milter (write in perl or python) that i can use as example for develop my milter? I do not. You

Re: check client ip only if mail has a particular header

2011-03-15 Thread Stan Hoeppner
Giovanni Mancuso put forth on 3/15/2011 10:59 AM: > Therefore, the only solution is to use a miltet, right? It's looking that way. > Do you know a simple milter (write in perl or python) that i can use as > example for develop my milter? I do not. You're apparently in uncharted territory. It

Re: check client ip only if mail has a particular header

2011-03-15 Thread Giovanni Mancuso
On 12/03/2011 17:15, Stan Hoeppner wrote: > Wietse Venema put forth on 3/12/2011 8:43 AM: >> Stan Hoeppner: >>> It appears I did understand Giovanni's need correctly. He should be >>> able to use Sahil's checkdbl.pl daemon with some modifications. He'd >>> simply check that X-custom-header exist

Re: check client ip only if mail has a particular header

2011-03-12 Thread Stan Hoeppner
Wietse Venema put forth on 3/12/2011 8:43 AM: > Stan Hoeppner: >> It appears I did understand Giovanni's need correctly. He should be >> able to use Sahil's checkdbl.pl daemon with some modifications. He'd >> simply check that X-custom-header exists. If it doesn't, > > Wietse: >> header_check

Re: check client ip only if mail has a particular header

2011-03-12 Thread Wietse Venema
Stan Hoeppner: > It appears I did understand Giovanni's need correctly. He should be > able to use Sahil's checkdbl.pl daemon with some modifications. He'd > simply check that X-custom-header exists. If it doesn't, Wietse: > header_checks can't detect missing headers. Stan Hoeppner: > The hea

Re: check client ip only if mail has a particular header

2011-03-12 Thread Noel Jones
On 3/12/2011 7:14 AM, Stan Hoeppner wrote: Wietse Venema put forth on 3/11/2011 8:57 PM: Stan Hoeppner: It appears I did understand Giovanni's need correctly. He should be able to use Sahil's checkdbl.pl daemon with some modifications. He'd simply check that X-custom-header exists. If it doe

Re: check client ip only if mail has a particular header

2011-03-12 Thread Stan Hoeppner
Wietse Venema put forth on 3/11/2011 8:57 PM: > Stan Hoeppner: >> It appears I did understand Giovanni's need correctly. He should be >> able to use Sahil's checkdbl.pl daemon with some modifications. He'd >> simply check that X-custom-header exists. If it doesn't, > > header_checks can't dete

Re: check client ip only if mail has a particular header

2011-03-11 Thread Wietse Venema
Stan Hoeppner: > It appears I did understand Giovanni's need correctly. He should be > able to use Sahil's checkdbl.pl daemon with some modifications. He'd > simply check that X-custom-header exists. If it doesn't, header_checks can't detect missing headers. Wietse

Re: check client ip only if mail has a particular header

2011-03-11 Thread Stan Hoeppner
Victor Duchovni put forth on 3/11/2011 10:09 AM: > On Fri, Mar 11, 2011 at 04:58:15PM +0100, Giovanni Mancuso wrote: > >> I have my postfix configured as MX record of my domain with particular >> smtpd_recipents_restriction, ecc... >> If my postfix receives a mail that has X-MyCustomHeader, Postfi

Re: check client ip only if mail has a particular header

2011-03-11 Thread Giovanni Mancuso
On 11/03/2011 17:09, Victor Duchovni wrote: > On Fri, Mar 11, 2011 at 04:58:15PM +0100, Giovanni Mancuso wrote: > >> I have my postfix configured as MX record of my domain with particular >> smtpd_recipents_restriction, ecc... >> If my postfix receives a mail that has X-MyCustomHeader, Postfix acc

Re: check client ip only if mail has a particular header

2011-03-11 Thread Victor Duchovni
On Fri, Mar 11, 2011 at 04:58:15PM +0100, Giovanni Mancuso wrote: > I have my postfix configured as MX record of my domain with particular > smtpd_recipents_restriction, ecc... > If my postfix receives a mail that has X-MyCustomHeader, Postfix accept > the mail and delivers it to backend. > If my

Re: check client ip only if mail has a particular header

2011-03-11 Thread Giovanni Mancuso
On 10/03/2011 21:39, Stan Hoeppner wrote: > Giovanni Mancuso put forth on 3/10/2011 11:19 AM: >> On 10/03/2011 15:04, Stan Hoeppner wrote: >>> Giovanni Mancuso put forth on 3/10/2011 7:22 AM: Hi, I would configure my postfix to control if client ip is in blacklist only if the mail

Re: check client ip only if mail has a particular header

2011-03-10 Thread Stan Hoeppner
Giovanni Mancuso put forth on 3/10/2011 11:19 AM: > On 10/03/2011 15:04, Stan Hoeppner wrote: >> Giovanni Mancuso put forth on 3/10/2011 7:22 AM: >>> Hi, >>> I would configure my postfix to control if client ip is in blacklist >>> only if the mail have a particolar header. >>> I tried to create a

Re: check client ip only if mail has a particular header

2011-03-10 Thread Giovanni Mancuso
On 10/03/2011 15:04, Stan Hoeppner wrote: > Giovanni Mancuso put forth on 3/10/2011 7:22 AM: >> Hi, >> I would configure my postfix to control if client ip is in blacklist >> only if the mail have a particolar header. >> I tried to create a header_checks table and with a FILTER i redirect all >>

Re: check client ip only if mail has a particular header

2011-03-10 Thread Stan Hoeppner
Giovanni Mancuso put forth on 3/10/2011 7:22 AM: > Hi, > I would configure my postfix to control if client ip is in blacklist > only if the mail have a particolar header. > I tried to create a header_checks table and with a FILTER i redirect all > mails that have a particular header to localhost o

Re: check client ip only if mail has a particular header

2011-03-10 Thread Noel Jones
On 3/10/2011 7:22 AM, Giovanni Mancuso wrote: Hi, I would configure my postfix to control if client ip is in blacklist only if the mail have a particolar header. I tried to create a header_checks table and with a FILTER i redirect all mails that have a particular header to localhost on port 250

check client ip only if mail has a particular header

2011-03-10 Thread Giovanni Mancuso
Hi, I would configure my postfix to control if client ip is in blacklist only if the mail have a particolar header. I tried to create a header_checks table and with a FILTER i redirect all mails that have a particular header to localhost on port 2500 but in this way the client ip is localhost Any