SMTP发送邮件提示553错误
错误代码:2016-09-24 13:48:34 SERVER -> CLIENT: 553 2f1257e6842f760-a5768 SMTP only, outside user is not allowed on this machine2016-09-24 13:48:34 SMTP ERROR: MAIL FROM command failed: 553 2f1257e6842f760-a5768 SMTP only, outside user is not allowed on this machine
2016-09-24 13:48:34 The following From address failed: e8732master@gmail.com : MAIL FROM command failed,2f1257e6842f760-a5768 SMTP only, outside user is not allowed on this machine
,553,SMTP server error: MAIL FROM command failed Detail: 2f1257e6842f760-a5768 SMTP only, outside user is not allowed on this machine
SMTP code: 553意思好像是不允许外域账户发送邮件:
在探针中,又这样一项:SMTP地址: localhost会不会是和这个有关系,如何更改呢?
p.s.
刚才谷歌一下,说时修改php.ini中mail地址的变量,修改为使用的smtp。
这样应该是可行的。
那么,能不能修改成一个变量,让所有的smtp服务器都可以发送呢?
[ 本帖最后由 e8732 于 2016-9-24 22:01 编辑 ] smtp一般都是设置在网站程序里,php.ini这个能否起作用不了解 原帖由 licess 于 2016-9-25 11:48 发表 https://bbs.vpser.net/images/common/back.gif
smtp一般都是设置在网站程序里,php.ini这个能否起作用不了解
使用WP Mail SMTP做了测试,返回错误代码如下:
2016-09-25 07:14:28 CLIENT -> SERVER: STARTTLS
2016-09-25 07:14:29 SMTP -> get_lines(): $data is ""
2016-09-25 07:14:29 SMTP -> get_lines(): $str is"220 2.0.0 Ready to start TLS
"
2016-09-25 07:14:29 SERVER -> CLIENT: 220 2.0.0 Ready to start TLS
2016-09-25 07:14:29 CLIENT -> SERVER: EHLO www.guga.ga
2016-09-25 07:14:29 SMTP -> get_lines(): $data is ""
2016-09-25 07:14:29 SMTP -> get_lines(): $str is"250-mr213139.mail.yeah.net
"
2016-09-25 07:14:29 SMTP -> get_lines(): $data is "250-mr213139.mail.yeah.net
"
2016-09-25 07:14:29 SMTP -> get_lines(): $str is"250-PIPELINING
"
2016-09-25 07:14:29 SMTP -> get_lines(): $data is "250-mr213139.mail.yeah.net
250-PIPELINING
"
2016-09-25 07:14:29 SMTP -> get_lines(): $str is"250-SIZE 71680000
"
2016-09-25 07:14:29 SMTP -> get_lines(): $data is "250-mr213139.mail.yeah.net
250-PIPELINING
250-SIZE 71680000
"
2016-09-25 07:14:29 SMTP -> get_lines(): $str is"250-ETRN
"
2016-09-25 07:14:29 SMTP -> get_lines(): $data is "250-mr213139.mail.yeah.net
250-PIPELINING
250-SIZE 71680000
250-ETRN
"
2016-09-25 07:14:29 SMTP -> get_lines(): $str is"250-AUTH LOGIN PLAIN
"
2016-09-25 07:14:29 SMTP -> get_lines(): $data is "250-mr213139.mail.yeah.net
250-PIPELINING
250-SIZE 71680000
250-ETRN
250-AUTH LOGIN PLAIN
"
2016-09-25 07:14:29 SMTP -> get_lines(): $str is"250-AUTH=LOGIN PLAIN
"
2016-09-25 07:14:29 SMTP -> get_lines(): $data is "250-mr213139.mail.yeah.net
250-PIPELINING
250-SIZE 71680000
250-ETRN
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
"
2016-09-25 07:14:29 SMTP -> get_lines(): $str is"250-ENHANCEDSTATUSCODES
"
2016-09-25 07:14:29 SMTP -> get_lines(): $data is "250-mr213139.mail.yeah.net
250-PIPELINING
250-SIZE 71680000
250-ETRN
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250-ENHANCEDSTATUSCODES
"
2016-09-25 07:14:29 SMTP -> get_lines(): $str is"250 8BITMIME
"
2016-09-25 07:14:29 SERVER -> CLIENT: 250-mr213139.mail.yeah.net
250-PIPELINING
250-SIZE 71680000
250-ETRN
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250-ENHANCEDSTATUSCODES
250 8BITMIME
2016-09-25 07:14:29 Auth method requested: UNKNOWN
2016-09-25 07:14:29 Auth methods available on the server: LOGIN,PLAIN
2016-09-25 07:14:29 Auth method selected: LOGIN
2016-09-25 07:14:29 CLIENT -> SERVER: AUTH LOGIN
2016-09-25 07:14:29 SMTP -> get_lines(): $data is ""
2016-09-25 07:14:29 SMTP -> get_lines(): $str is"334 VXNlcm5hbWU6
"
2016-09-25 07:14:29 SERVER -> CLIENT: 334 VXNlcm5hbWU6
2016-09-25 07:14:29 CLIENT -> SERVER: YWRtaW5AZ3VnYS5nYQ==
2016-09-25 07:14:29 SMTP -> get_lines(): $data is ""
2016-09-25 07:14:29 SMTP -> get_lines(): $str is"334 UGFzc3dvcmQ6
"
2016-09-25 07:14:29 SERVER -> CLIENT: 334 UGFzc3dvcmQ6
2016-09-25 07:14:29 CLIENT -> SERVER: ZTg3MzI4NzMy
2016-09-25 07:14:29 SMTP -> get_lines(): $data is ""
2016-09-25 07:14:29 SMTP -> get_lines(): $str is"235 2.7.0 Authentication successful
"
2016-09-25 07:14:29 SERVER -> CLIENT: 235 2.7.0 Authentication successful
2016-09-25 07:14:29 CLIENT -> SERVER: MAIL FROM:
2016-09-25 07:14:29 SMTP -> get_lines(): $data is ""
2016-09-25 07:14:29 SMTP -> get_lines(): $str is"550 5.8.1 Local user only.
"
2016-09-25 07:14:29 SERVER -> CLIENT: 550 5.8.1 Local user only.
2016-09-25 07:14:29 SMTP ERROR: MAIL FROM command failed: 550 5.8.1 Local user only.
2016-09-25 07:14:29 The following From address failed: e8732master@gmail.com : MAIL FROM command failed,Local user only.
,550,5.8.1SMTP server error: MAIL FROM command failed Detail: Local user only.
SMTP code: 550 Additional SMTP info: 5.8.1
回复 3# 的帖子
可能设置的from mail和下面设置的登陆账号不一样
页:
[1]