On a server, i had got a django project that send automatic emails via smtp, here is the configuration that works for my old server
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' EMAIL_HOST = 'smtp.lauto-resultat.com' EMAIL_PORT = 25 EMAIL_HOST_USER = '' EMAIL_HOST_PASSWORD = '' EMAIL_USE_TLS = False DEFAULT_FROM_EMAIL = 'Auto-resultat mail automatique no_reply@lauto-resultat.com'
I migrated the project on a new server with virtualmin and now the mails doesn't work
I don't understand what's the difference between my old postfix configuration and the virtualmin postfix configuration.
The server is a deebian Jessie The django project version is 1.9 And the virtualmin version is the last one
Here is the error:
SMTPServerDisconnected at /contact
Connection unexpectedly closed
Request Method: POST Request URL: https://lauto-resultat.com/contact Django Version: 1.9.6 Exception Type: SMTPServerDisconnected Exception Value:
Connection unexpectedly closed
Exception Location: /usr/lib/python3.4/smtplib.py in getreply, line 376 Python Executable: /usr/bin/python3 Python Version: 3.4.2 Python Path:
['/home/lauto-resultat/public_html', '/home/lauto-resultat/public_html/myprojectenv/lib/python3.4/site-packages', '/usr/lib/python3.4', '/usr/lib/python3.4/plat-x86_64-linux-gnu', '/usr/lib/python3.4/lib-dynload', '/usr/local/lib/python3.4/dist-packages', '/usr/lib/python3/dist-packages']
Server time: lun, 17 Avr 2017 18:01:22 +0000
Thank you for any response / help.
Here is the mx record:
mx priority 10 project.com. mail.project.com.
Thank you for any help
does somebody know the smtp config for postfix?