Re: Milter: Is it possible to completely replace headers?

2015-03-01 Thread Sebastian Nielsen
Yes, but my script does not know what is added/changed/replaced. It just need do to like $ctx-replacebody but the similiar for the headers. What my script does, is taking the whole mail, (headers+body) and run through a loose MIME parser. Then it rebuilds the mail from the ground up in a

Re: Milter: Is it possible to completely replace headers?

2015-03-01 Thread Wietse Venema
Sebastian Nielsen: Yes, but my script does not know what is added/changed/replaced. You are copying the header and body to another program, therefore you know how many headers there were, therefore you can send the corresponding delete header commands before inserting the new ones. To delete

Re: Policy attributes to PERL script

2015-03-01 Thread Mick
Hello Markus, Thanks very much for your reply. I didn't come across Cookbook in my searches but I don't think I will need it now as I'm very pleased to report I got my first test policy implemented yesterday evening. Don't laugh, all it does so far is block senders where 'sender' doesn't

Re: Policy attributes to PERL script

2015-03-01 Thread Benning, Markus
Am 2015-02-27 14:45, schrieb MickTW8: This issue I have is knowing how to read any of the attributes listed here www.postfix.org/SMTPD_POLICY_README.html#protocol Hello Mick, it may be an option for your to implement your code as a plugin for mtpolicyd. There's documentation for wrinting a

Need advice

2015-03-01 Thread Tommy Berglund
Hey! Is there anything I need to change into my configuration of postfix? I have in my mail.log file (family server) seen this now. Parts of my mail.log file Feb 28 23:54:57 server postfix/postscreen[5976]: CONNECT from [81.30.158.145]:32970 to [192.168.2.8]:25 Feb 28 23:54:57 server

Fwd: DNS Resolver

2015-03-01 Thread jason hirsh
Begin forwarded message: From: jason hirsh hir...@att.net Subject: Fwd: DNS Resolver Date: March 1, 2015 at 10:04:24 AM AST To: Mike Hodson myst...@gmail.com Cc: posfix-us...@postfis.org Watching the log, although I have this error the system is using the RBL for checking mail

Re: Policy attributes to PERL script

2015-03-01 Thread Benning, Markus
Am 2015-03-01 12:38, schrieb Mick: Hello Markus, Thanks very much for your reply. I didn't come across Cookbook in my searches but I don't think I will need it now as I'm very pleased to report I got my first test policy implemented yesterday evening. Don't laugh, all it does so far is block

Re: Milter: Is it possible to completely replace headers?

2015-03-01 Thread Wietse Venema
Sebastian Nielsen: How can I completely replace the headers in a milter? The replaced header data contains both added and changed headers. As of the last Milter bugfixes late 2014, you can delete or replace all headers except the Received: header that the MTA adds. The Milter protocol supports

Re: postqueue -p silent?

2015-03-01 Thread Wietse Venema
@lbutlr: I don't see a flag to make post queue -p or mailq to return silently if the queue is empty. Is there a way, or should I just alias/use # postqueue -p | egrep -v ^Mail queue is empty This is part of the Sendmail-compatibility interface. Until now, Postfix does not have a queue

Re: Need advice

2015-03-01 Thread Wietse Venema
Tommy Berglund: Hey! Is there anything I need to change into my configuration of postfix? I have in my mail.log file (family server) seen this now. Parts of my mail.log file Feb 28 23:54:57 server postfix/postscreen[5976]: CONNECT from [81.30.158.145]:32970 to [192.168.2.8]:25 Feb 28

postqueue -p silent?

2015-03-01 Thread @lbutlr
I don’t see a flag to make post queue -p or mailq to return silently if the queue is empty. Is there a way, or should I just alias/use # postqueue -p | egrep -v ^Mail queue is empty” -- 'Now what?' it said. IT'S UP TO YOU. IT'S ALWAYS UP TO YOU. --Maskerade

Re: Need advice

2015-03-01 Thread Tommy Berglund
Den 2015-03-01 16:40, Wietse Venema skrev: Tommy Berglund: Hey! Is there anything I need to change into my configuration of postfix? I have in my mail.log file (family server) seen this now. Parts of my mail.log file Feb 28 23:54:57 server postfix/postscreen[5976]: CONNECT from

Milter: Is it possible to completely replace headers?

2015-03-01 Thread Sebastian Nielsen
How can I completely replace the headers in a milter? The replaced header data contains both added and changed headers. Here is the code im working with: sub eom_callback { $ctx = shift; $senderunsafe = $ctx-getsymval('{mail_addr}'); ($suser, $sdomain) = split(\@,