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?
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