Re: using ppymilter in Postfix(SOLVED)

2015-01-22 Thread Andy Kannberg
Hi again, After some tinkering, I fixed the ERROR:root:No parser implemented for "Data" It appears that ppymilter uses milter protocol 2, and main.cf had milter protocol 6 defined. After adjusting main.cf, this error dissapeared. The other error has also a fix: https://code.google.com/p/ppymilt

Re: using ppymilter in Postfix

2015-01-21 Thread Andy Kannberg
Ok, fixed that: postconf -n alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/libexec/postfix data_directory = /var/lib/postfix debug_peer_level = 2 html_directory = no inet_interfaces = all inet_

Re: using ppymilter in Postfix

2015-01-21 Thread Wietse Venema
Andy Kannberg: > Hi again, > > postconf -n looks like this: > > alias_database = hash:/etc/aliases > alias_maps = hash:/etc/aliases > command_directory = /usr/sbin > config_directory = /etc/postfix > daemon_directory = /usr/libexec/postfix > data_directory = /var/lib/postfix > debug_peer_level =

Re: using ppymilter in Postfix

2015-01-21 Thread Andy Kannberg
Hi again, postconf -n looks like this: alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/libexec/postfix data_directory = /var/lib/postfix debug_peer_level = 2 html_directory = no inet_interfaces

Re: using ppymilter in Postfix

2015-01-16 Thread Christian Rößner
> Change permissions to 700 and ran the script. It gave no errors, which is > good. However, using ss to check which ports are in use doesn't show port > 12000(Which I would expect) lsof -Pni :12000 Christian -- Bachelor of Science Informatik Erlenwiese 14, 36304 Alsfeld T: +49 6631 78823400, F

Re: using ppymilter in Postfix

2015-01-16 Thread Wietse Venema
Andy Kannberg: > Change permissions to 700 and ran the script. It gave no errors, which is > good. However, using ss to check which ports are in use doesn't show port > 12000(Which I would expect) Maybe you should be looking for "entextxid". $ grep 12000 /etc/services entextxid 12000/tcp

Re: using ppymilter in Postfix

2015-01-16 Thread Andy Kannberg
Ok, so far I've figured out this: I added this to the main.cf : smtpd_milters = inet:localhost:12000 milter_protocol = 6 I used the example script of ppymilter from the Wiki ( https://code.google.com/p/ppymilter/wiki/PPyMilter) I only modified it to to use tcp port 12000: #!/usr/bin/python

Re: using ppymilter in Postfix

2015-01-08 Thread Christian Rößner
Hi, > I am looking how to use ppymilter in Postfix. Using pymilter is explained in > the Postfix docs ( http://www.postfix.org/MILTER_README.html#config ) , but I > can't find how to do the same for ppymilter. Anyone can send me in the right > direction ? Is pymilter the C-binding version for

using ppymilter in Postfix

2015-01-08 Thread Andy Kannberg
Hi, I am looking how to use ppymilter in Postfix. Using pymilter is explained in the Postfix docs ( http://www.postfix.org/MILTER_README.html#config ) , but I can't find how to do the same for ppymilter. Anyone can send me in the right direction ? cheers, Andy