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):
File
"/home/mailman/mailman-bundler/venv-3.4/lib/python3.4/site-packages/mailman/core/runner.py",
line 165, in _one_iteration
self._process_one_file(msg, msgdata)
File
"/home/mailman/mailman-bundler/venv-3.4/lib/python3.4/site-packages/mailman/core/runner.py",
line 258, in _process_one_file
keepqueued = self._dispose(mlist, msg, msgdata)
File
"/home/mailman/mailman-bundler/venv-3.4/lib/python3.4/site-packages/mailman/runners/outgoing.py",
line 97, in _dispose
self._func(mlist, msg, msgdata)
File
"/home/mailman/mailman-bundler/venv-3.4/lib/python3.4/site-packages/mailman/mta/deliver.py",
line 90, in deliver
refused = agent.deliver(mlist, msg, msgdata)
File
"/home/mailman/mailman-bundler/venv-3.4/lib/python3.4/site-packages/mailman/mta/bulk.py",
line 105, in deliver
mlist, msg, msgdata, recipients)
File
"/home/mailman/mailman-bundler/venv-3.4/lib/python3.4/site-packages/mailman/mta/base.py",
line 73, in _deliver_to_recipients
sender, recipients, msg.as_string())
File
"/home/mailman/mailman-bundler/venv-3.4/lib/python3.4/site-packages/mailman/mta/connection.py",
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:
1443735758.2455976+005fdccae22be4461400beae5aa37465af396554
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.
--
Take
_______________________________________________
Mailman-Developers mailing list
Mailman-Developers@python.org
https://mail.python.org/mailman/listinfo/mailman-developers
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives:
http://www.mail-archive.com/mailman-developers%40python.org/
Unsubscribe:
https://mail.python.org/mailman/options/mailman-developers/archive%40jab.org
Security Policy: http://wiki.list.org/x/QIA9