[Kolab-devel] Python Error with Postfix queue filling up

Paul Klos paul at klos2day.nl
Wed Mar 6 09:38:45 CET 2013


Mat Cantin schreef op 06-03-2013 3:33:
> I noticed that some emails were not comming through on my Kolab 3
> server. The mail logs filled up with entries such as this:
> 
> postfix/smtp[12133]: AA3861280D28: to=<user at localdomain.com>,
> relay=127.0.0.1[127.0.0.1]:10026, delay=377952, delays=377952/0/0/0,
> dsn=4.4.2, status=deferred (lost connection with 127.0.0.1[127.0.0.1]
> while sending end of data -- message may be sent more than once)
> 
> It seems that most emails are coming through, but there are about 11 
> of
> them in the queue that aren't moving. After some troubleshooting, I
> restarted the Wallace service and then started getting this error for
> every stuck message on the console when I try to flush the queue:
> 
> # error: uncaptured python exception, closing channel
> <smtpd.SMTPChannel connected 127.0.0.1:44624 at 0xa320b0c> (<type
> 'exceptions.UnicodeDecodeError'>:'utf8' codec can't decode byte 0xbb 
> in
> position 10277: invalid start byte
> [/usr/lib/python2.6/asyncore.py|read|78]
> [/usr/lib/python2.6/asyncore.py|handle_read_event|428]
> [/usr/lib/python2.6/asynchat.py|handle_read|158]
> [/usr/lib/python2.6/smtpd.py|found_terminator|184]
> [/usr/lib/python2.6/site-packages/wallace/__init__.py|process_message|249]
> [/usr/lib/python2.6/json/__init__.py|dumps|230]
> [/usr/lib/python2.6/json/encoder.py|encode|367]
> [/usr/lib/python2.6/json/encoder.py|_iterencode|309]
> [/usr/lib/python2.6/json/encoder.py|_iterencode_dict|275]
> [/usr/lib/python2.6/json/encoder.py|_iterencode|294])
> 
> Can anyone enlighten me on what going on? This python error is beyond
> me.

The message contains a 0xbb character that wallace is choking on.

I've had some similar errors, and just for laughs changed these 
characters into something else using hexedit, after which the mails went 
through without problems. For now, I have disabled wallace on my Kolab 
instance.

This is bug https://issues.kolab.org/show_bug.cgi?id=1627.

Cheers,

Paul




More information about the devel mailing list