I am trying to connect to postfix on localhost to send user activation emails. Here is the email settings in settings.py:
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'localhost'
EMAIL_PORT = 1025
EMAIL_HOST_USER = ''
EMAIL_HOST_PASSWORD = ''
EMAIL_USE_TLS = False
DEFAULT_FROM_EMAIL = 'Domain <noreplay@example.com>'
However each time, when user tries to register, gets this error:
[Errno 111] Connection refused
Why could be wrong here and how to set up django to send out emails from localhost using a MTA like postfix?
change port to 25 if postfix/sendmail is running on localhost