Postfix + Django: SMTPException: SMTP AUTH extension not supported by server [closed]

…衆ロ難τιáo~ 提交于 2019-12-07 16:44:29

问题


I am complete novice to Postfix, just set up default Postfix for Ubuntu, tested it through telnet and it sent mail ok, but when I try to send mail through django (host='localhost', port='25', user='', password=''), I just get

SMTPException: SMTP AUTH extension not supported by server.

Here is my main.cf: https://gist.github.com/3348411

Could you please suggest, what I need to add to set up minimal working smtp just for sending email?


回答1:


It looks like you don't really want to use AUTH. In that case, user and password should be None, not the empty string. If you look at the code base, Django checks explicitly for None. Since the default is None already, you can just leave off the username and password parameters.

HTH!



来源:https://stackoverflow.com/questions/11951292/postfix-django-smtpexception-smtp-auth-extension-not-supported-by-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!