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/ppymilter/issues/detail?id=4

My milter example now runs fine!

Cheers,
Andy


Sent from my iPad

> On 21 jan. 2015, at 22:51, Andy Kannberg <andy.kannb...@gmail.com> wrote:
> 
> 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_protocols = all
> mail_owner = postfix
> mailq_path = /usr/bin/mailq.postfix
> manpage_directory = /usr/share/man
> milter_protocol = 6
> mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, 
> mail.$mydomain, www.$mydomain, ftp.$mydomain
> mydomain = supercluster.nl
> myhostname = mail.supercluster.nl
> mynetworks = 149.210.132.93/32, 127.0.0.0/8
> myorigin = $mydomain
> newaliases_path = /usr/bin/newaliases.postfix
> queue_directory = /var/spool/postfix
> readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
> sample_directory = /usr/share/doc/postfix-2.6.6/samples
> sendmail_path = /usr/sbin/sendmail.postfix
> setgid_group = postdrop
> smtpd_milters = inet:localhost:4009
> unknown_local_recipient_reject_code = 550
> 
> The milter also runs:
> 
> lsof -Pni :4009
> COMMAND     PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
> TestMilte 18831 root    3u  IPv4  81337      0t0  TCP *:4009 (LISTEN)
> 
> Now I see that the milter itself (ppymilter - Pure Python Milter) throws some 
> errors:
> 
> ERROR:root:No parser implemented for "Data"
> ERROR:root:uncaptured python exception, closing channel 
> <ppymilter.ppymilterserver.ConnectionHandler connected 127.0.0.1:55175 at 
> 0x7f033511acf8> (<class 'socket.error'>:[Errno 32] Broken pipe 
> [/usr/lib64/python2.6/asynchat.py|initiate_send|235] 
> [/usr/lib64/python2.6/asyncore.py|send|360])
> 
> Guess this is no Postfix issue. I sent a mail to the author of ppymilter. 
> However, if anyone has seen this before, hints and tips are appreciated.
> 
> cheers,
> Andy
> 
> 
> 
> 
> 
> 
> 
> 2015-01-21 21:37 GMT+01:00 Wietse Venema <wie...@porcupine.org>:
>> 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 = all
>> > inet_protocols = all
>> > mail_owner = postfix
>> > mailq_path = /usr/bin/mailq.postfix
>> > manpage_directory = /usr/share/man
>> > mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,
>> > mail.$mydomain, www.$mydomain, ftp.$mydomain
>> > mydomain = supercluster.nl
>> > myhostname = mail.supercluster.nl
>> > mynetworks = xxx.xxx.xxx.xxx/32, 127.0.0.0/8
>> > myorigin = $mydomain
>> > newaliases_path = /usr/bin/newaliases.postfix
>> > queue_directory = /var/spool/postfix
>> > readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
>> > sample_directory = /usr/share/doc/postfix-2.6.6/samples
>> > sendmail_path = /usr/sbin/sendmail.postfix
>> > setgid_group = postdrop
>> > unknown_local_recipient_reject_code = 550
>> 
>> You have no smtpd_milters or non_smtpd_milters setting. Therefore,
>> Postfix uses no Milter. For Postfix Milter client features and
>> configuration, see http://www.postfix.org/MILTER_README.html
>> 
>>         Wietse
> 

Reply via email to