questions about CF writing

2011-04-13 Thread Giovanni Mancuso
Hi, I'm trying to write an after queue content filter, and i have a questions. If my filter have exit code 75 (for example), in postfix log after status= i have in () the output of my filter, but if my filter have exit code 0, the output is always status=sent (delivered via filter service). Can

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 exists. If it

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 have

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 accept

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

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 mails

qmgr and file descriptor error

2010-09-01 Thread Giovanni Mancuso
Hi, I use postfix in solaris 9 operating system. This morning in maillog i read: Sep 1 03:11:32 first postfix/qmgr[28676]: [ID 947731 local4.crit] fatal: stream_connect: send file descriptor: Resource temporarily unavailable Sep 1 03:11:33 first postfix/master[25691]: [ID 947731

Re: disable bounce notification

2010-05-27 Thread Giovanni Mancuso
Noel Jones wrote: On 5/26/2010 11:55 AM, Giovanni Mancuso wrote: Hi, I would disable in my postfix installation the sending of bounce mail. Solve the right problem; don't accept mail you can't deliver. I can't do it, because my antispam server return 550 to my postfix that is a MX record

disable bounce notification

2010-05-26 Thread Giovanni Mancuso
Hi, I would disable in my postfix installation the sending of bounce mail. I try to change my master.cf in this way: bounceunix - n n - 0 pipe -vv user=mail flags=Rq argv=/etc/postfix/bounce.sh and the script bounce.sh is: # cat /etc/postfix/bounce.sh

Dynamic message_size_limit

2010-03-17 Thread Giovanni Mancuso
Hi, i have a question about message_size_limit parameter. Can i set this parameter to get the value from ldap? Else, can i write a Policy Delegator that do it? Bye

Queue-Id in content filter

2009-12-15 Thread Giovanni Mancuso
Hi, I'm trying to write a pipe content filter for postfix. I have a question, Is There a way to put the queue id of email, to this content filter? It would be really useful to write a log file and trace the email flow. Thanks

Return Path header

2009-12-11 Thread Giovanni Mancuso
Hi, i have a question, about return-path header in emails. Can i configure postfix to don't override this tag if it is alredy present? Thanks

Re: sender_dependent_relayhost_maps and ldap with multivalue attribute

2009-12-05 Thread Giovanni Mancuso
Yes, i solved problem using how result_attribute a single-valued attribute. Thanks Victor Duchovni wrote: On Thu, Dec 03, 2009 at 01:57:07AM +0100, Giovanni Mancuso wrote: result_attribute = domains result_format = [127.0.0.1]:2501 expansion_limit = 1 But i have: postfix/trivial

sender_dependent_relayhost_maps and ldap with multivalue attribute

2009-12-02 Thread Giovanni Mancuso
Hi guys, I'm trying to configure my postfix to use a different relayhost if the sender of the email is in ldap. My ldap entry is: dn: SenderHost=exampleSender,o=AllHost objectClass=provider domains: example1.org domains: example2.org domains: example3.org The domain attribute is multivalue. If

Re: sender_dependent_relayhost_maps and ldap with multivalue attribute

2009-12-02 Thread Giovanni Mancuso
Wietse Venema wrote: Giovanni Mancuso: Hi guys, I'm trying to configure my postfix to use a different relayhost if the sender of the email is in ldap. You must return a result that satisfies the documented syntax. http://www.postfix.org/postconf.html#relayhost Wietse

Question about postfix log system

2009-05-18 Thread Giovanni Mancuso
Hi to all, i have a question about postfix logging system. The normal logging system, print in a log file the message-id of email: May 18 04:02:14 fe postfix/cleanup[28007]: 4507B1E8621: message-id=20090518020214.4507b1e8...@fe.example.org Can I configure my postfix to log the message-id

Question about particular Relay configuration

2009-01-12 Thread Giovanni Mancuso
Hi to all, i have a question about a particular postfix configuration. In my test machine, i try to create a particular enviroment. I have one postfix istance that bind in 0.0.0.0:25 and in this postfix istance i use a relay_domains and relay_transport to redirect all mail from one domain to