[Mailman-Developers] Problems with mailman3 installation via bundler

Take take at nerd.fi
Fri Oct 2 00:05:40 CEST 2015

On 10/01/2015 10:20 PM, Take wrote:
> On validate.py I added logging to see what seems to be the problem with
> address, to validate-function:
> from distutils import log
> log.error("Validating address -> " + email)
> if not self.is_valid(email):
> ...
> It appears that variable email is empty at that point, for some reason.

This is somewhat strange. I tried to dig deeper and learn from the 
system, so I just assigned valid address to email variable just to see 
what would happen.

Shunted messages were bounced messages from postfix, caused by 
misconfiguration and loop in mail transport, but that's not the strange 
part. What's strange that I still have one shunted message and log 
suggests encoding issues:

Oct 02 00:42:38 2015 (16593) Traceback (most recent call last):
line 165, in _one_iteration
     self._process_one_file(msg, msgdata)
line 258, in _process_one_file
     keepqueued = self._dispose(mlist, msg, msgdata)
line 97, in _dispose
     self._func(mlist, msg, msgdata)
line 90, in deliver
     refused = agent.deliver(mlist, msg, msgdata)
line 105, in deliver
     mlist, msg, msgdata, recipients)
line 73, in _deliver_to_recipients
     sender, recipients, msg.as_string())
line 87, in sendmail
     results = self._connection.sendmail(envsender, recipients, msgtext)
   File "/usr/lib/python3.4/smtplib.py", line 765, in sendmail
     msg = _fix_eols(msg).encode('ascii')
UnicodeEncodeError: 'ascii' codec can't encode character '\xe4' in 
position 1460: ordinal not in range(128)
Oct 02 00:42:38 2015 (16593) SHUNTING: 

Somehow I'd expect that those were thing of the past, but apparently 
they aren't. There's some mentions about similar problems on 
smtp-libraries with python on the internet, but, as mentioned, I'm not 
that good with python that I could say anything certain.


More information about the Mailman-Developers mailing list