On Sun, Oct 22, 2017, at 11:23 AM, Simon Hanna wrote:
Thanks. Applying this patch makes it work. Now I've got a different problem, though. I can't get it to connect to Postfix for sending emails it appears. After I created a superuser account using
$ python manage.py createsuperuser
as described on <http://postorius.readthedocs.io/en/latest/setup.html>, I tried to login using this credentials into Postorius. It then reported it sent a confirmation email to me (for an account I created on commandline?!), but Postfix' logs reveal that it didn't; there's not even a sign of an attempted delivery in /var/log/mail.log. I've configured the Postfix configuration in mailman.cfg like this:
mailman-suite's settings.py contains:
# Change this when you have a real email backend EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' EMAIL_HOST = 'localhost' EMAIL_PORT = 25
There is a second occurrence of EMAIL_BACKEND in the settings file. Try commenting it, or setting DEBUG to True IIRC I have created an issue for that on gitlab.
Setting DEBUG=True will use the 2nd EMAIL_BACKEND
defined in settings
file 1, which I think is the problem.
Try setting DEBUG=False to use 'django.core.mail.backends.emtp.EmailBackend' backend, also, please feel free to remove the 2nd definition of EMAIL_BACKEND 1 if you have Postfix already setup to send emails. That extra option is left there so that people can debug their Django installation even without having to setup Postfix.
-- Abhilash Raj maxking@asynchronous.in