VPS侦探论坛

 找回密码
 注册
查看: 9321|回复: 3

SMTP发送邮件提示553错误

[复制链接]
发表于 2016-9-24 21:51:40 | 显示全部楼层 |阅读模式

错误代码:
  1. 2016-09-24 13:48:34        SERVER -> CLIENT: 553 2f1257e6842f760-a5768 SMTP only, outside user is not allowed on this machine
  2. 2016-09-24 13:48:34        SMTP ERROR: MAIL FROM command failed: 553 2f1257e6842f760-a5768 SMTP only, outside user is not allowed on this machine
  3. 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
  4.                                              ,553,SMTP server error: MAIL FROM command failed Detail: 2f1257e6842f760-a5768 SMTP only, outside user is not allowed on this machine
  5.                                               SMTP code: 553
复制代码
意思好像是不允许外域账户发送邮件:
在探针中,又这样一项:
  1. SMTP地址:        localhost
复制代码
会不会是和这个有关系,如何更改呢?
p.s.
刚才谷歌一下,说时修改php.ini中mail地址的变量,修改为使用的smtp。
这样应该是可行的。
那么,能不能修改成一个变量,让所有的smtp服务器都可以发送呢?

[ 本帖最后由 e8732 于 2016-9-24 22:01 编辑 ]
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2016-9-25 11:48:37 | 显示全部楼层


smtp一般都是设置在网站程序里,php.ini这个能否起作用不了解
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2016-9-25 15:17:53 | 显示全部楼层

原帖由 licess 于 2016-9-25 11:48 发表
smtp一般都是设置在网站程序里,php.ini这个能否起作用不了解

使用WP Mail SMTP做了测试,返回错误代码如下:
  1. 2016-09-25 07:14:28        CLIENT -> SERVER: STARTTLS
  2. 2016-09-25 07:14:29        SMTP -> get_lines(): $data is ""
  3. 2016-09-25 07:14:29        SMTP -> get_lines(): $str is  "220 2.0.0 Ready to start TLS
  4.                                              "
  5. 2016-09-25 07:14:29        SERVER -> CLIENT: 220 2.0.0 Ready to start TLS
  6. 2016-09-25 07:14:29        CLIENT -> SERVER: EHLO www.guga.ga
  7. 2016-09-25 07:14:29        SMTP -> get_lines(): $data is ""
  8. 2016-09-25 07:14:29        SMTP -> get_lines(): $str is  "250-mr213139.mail.yeah.net
  9.                                              "
  10. 2016-09-25 07:14:29        SMTP -> get_lines(): $data is "250-mr213139.mail.yeah.net
  11.                                              "
  12. 2016-09-25 07:14:29        SMTP -> get_lines(): $str is  "250-PIPELINING
  13.                                              "
  14. 2016-09-25 07:14:29        SMTP -> get_lines(): $data is "250-mr213139.mail.yeah.net
  15.                                              250-PIPELINING
  16.                                              "
  17. 2016-09-25 07:14:29        SMTP -> get_lines(): $str is  "250-SIZE 71680000
  18.                                              "
  19. 2016-09-25 07:14:29        SMTP -> get_lines(): $data is "250-mr213139.mail.yeah.net
  20.                                              250-PIPELINING
  21.                                              250-SIZE 71680000
  22.                                              "
  23. 2016-09-25 07:14:29        SMTP -> get_lines(): $str is  "250-ETRN
  24.                                              "
  25. 2016-09-25 07:14:29        SMTP -> get_lines(): $data is "250-mr213139.mail.yeah.net
  26.                                              250-PIPELINING
  27.                                              250-SIZE 71680000
  28.                                              250-ETRN
  29.                                              "
  30. 2016-09-25 07:14:29        SMTP -> get_lines(): $str is  "250-AUTH LOGIN PLAIN
  31.                                              "
  32. 2016-09-25 07:14:29        SMTP -> get_lines(): $data is "250-mr213139.mail.yeah.net
  33.                                              250-PIPELINING
  34.                                              250-SIZE 71680000
  35.                                              250-ETRN
  36.                                              250-AUTH LOGIN PLAIN
  37.                                              "
  38. 2016-09-25 07:14:29        SMTP -> get_lines(): $str is  "250-AUTH=LOGIN PLAIN
  39.                                              "
  40. 2016-09-25 07:14:29        SMTP -> get_lines(): $data is "250-mr213139.mail.yeah.net
  41.                                              250-PIPELINING
  42.                                              250-SIZE 71680000
  43.                                              250-ETRN
  44.                                              250-AUTH LOGIN PLAIN
  45.                                              250-AUTH=LOGIN PLAIN
  46.                                              "
  47. 2016-09-25 07:14:29        SMTP -> get_lines(): $str is  "250-ENHANCEDSTATUSCODES
  48.                                              "
  49. 2016-09-25 07:14:29        SMTP -> get_lines(): $data is "250-mr213139.mail.yeah.net
  50.                                              250-PIPELINING
  51.                                              250-SIZE 71680000
  52.                                              250-ETRN
  53.                                              250-AUTH LOGIN PLAIN
  54.                                              250-AUTH=LOGIN PLAIN
  55.                                              250-ENHANCEDSTATUSCODES
  56.                                              "
  57. 2016-09-25 07:14:29        SMTP -> get_lines(): $str is  "250 8BITMIME
  58.                                              "
  59. 2016-09-25 07:14:29        SERVER -> CLIENT: 250-mr213139.mail.yeah.net
  60.                                              250-PIPELINING
  61.                                              250-SIZE 71680000
  62.                                              250-ETRN
  63.                                              250-AUTH LOGIN PLAIN
  64.                                              250-AUTH=LOGIN PLAIN
  65.                                              250-ENHANCEDSTATUSCODES
  66.                                              250 8BITMIME
  67. 2016-09-25 07:14:29        Auth method requested: UNKNOWN
  68. 2016-09-25 07:14:29        Auth methods available on the server: LOGIN,PLAIN
  69. 2016-09-25 07:14:29        Auth method selected: LOGIN
  70. 2016-09-25 07:14:29        CLIENT -> SERVER: AUTH LOGIN
  71. 2016-09-25 07:14:29        SMTP -> get_lines(): $data is ""
  72. 2016-09-25 07:14:29        SMTP -> get_lines(): $str is  "334 VXNlcm5hbWU6
  73.                                              "
  74. 2016-09-25 07:14:29        SERVER -> CLIENT: 334 VXNlcm5hbWU6
  75. 2016-09-25 07:14:29        CLIENT -> SERVER: YWRtaW5AZ3VnYS5nYQ==
  76. 2016-09-25 07:14:29        SMTP -> get_lines(): $data is ""
  77. 2016-09-25 07:14:29        SMTP -> get_lines(): $str is  "334 UGFzc3dvcmQ6
  78.                                              "
  79. 2016-09-25 07:14:29        SERVER -> CLIENT: 334 UGFzc3dvcmQ6
  80. 2016-09-25 07:14:29        CLIENT -> SERVER: ZTg3MzI4NzMy
  81. 2016-09-25 07:14:29        SMTP -> get_lines(): $data is ""
  82. 2016-09-25 07:14:29        SMTP -> get_lines(): $str is  "235 2.7.0 Authentication successful
  83.                                              "
  84. 2016-09-25 07:14:29        SERVER -> CLIENT: 235 2.7.0 Authentication successful
  85. 2016-09-25 07:14:29        CLIENT -> SERVER: MAIL FROM:
  86. 2016-09-25 07:14:29        SMTP -> get_lines(): $data is ""
  87. 2016-09-25 07:14:29        SMTP -> get_lines(): $str is  "550 5.8.1 Local user only.
  88.                                              "
  89. 2016-09-25 07:14:29        SERVER -> CLIENT: 550 5.8.1 Local user only.
  90. 2016-09-25 07:14:29        SMTP ERROR: MAIL FROM command failed: 550 5.8.1 Local user only.
  91. 2016-09-25 07:14:29        The following From address failed: e8732master@gmail.com : MAIL FROM command failed,Local user only.
  92.                                              ,550,5.8.1SMTP server error: MAIL FROM command failed Detail: Local user only.
  93.                                               SMTP code: 550 Additional SMTP info: 5.8.1
复制代码

美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2016-9-25 20:51:01 | 显示全部楼层

回复 3# 的帖子




可能设置的from mail和下面设置的登陆账号不一样
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-4-27 07:56 , Processed in 0.026328 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表