Postfix + Django:SMTPException:服务器不支持SMTP AUTH扩展 [英] Postfix + Django: SMTPException: SMTP AUTH extension not supported by server

查看:142
本文介绍了Postfix + Django:SMTPException:服务器不支持SMTP AUTH扩展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Postfix的新手,只需为Ubuntu设置默认的Postfix,即可通过telnet对其进行测试,它可以正常发送邮件,但是当我尝试通过django(host ='localhost',port = '25',发送邮件时, user ='',password =''),我刚得到

SMTPException: SMTP AUTH extension not supported by server.

这是我的main.cf: https://gist.github.com/3348411

您能否提出建议,我需要添加什么以设置仅用于发送电子邮件的最低工作smtp?

解决方案

似乎您真的不想使用AUTH.在这种情况下,用户名和密码应为None,而不是空字符串.如果您查看代码库,则Django 明确检查无.由于默认设置为无",因此您可以省略用户名和密码参数.

HTH!

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!

这篇关于Postfix + Django:SMTPException:服务器不支持SMTP AUTH扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆