我已经在这工作了几个小时,但我找不到解决方案。出于某种原因,我无法向某些域发送电子邮件,我正在使用sendmail的默认phpmail功能。我想这是因为它们被转发到gmail帐户。我只配置了smtp,但我没有在网页服务器上收到电子邮件,我只是从网页服务器发送它们。
我在php.ini中的sendmail路径是: sendmail_path = sendmail -t -i -f'support@email.myweb.com'
support@email.myweb.com是另一台服务器机器上的工作电子邮件。
这是数据日志错误:
--t7J8AAkG002350.1439971810/myweb.com--
From MAILER-DAEMON Wed Aug 19 08:10:44 2015
Return-Path: <MAILER-DAEMON>
Received: from localhost (localhost)
by myweb.com (8.14.4/8.14.4/Debian-4) id t7J8AiZE002360;
Wed, 19 Aug 2015 08:10:44 GMT
Date: Wed, 19 Aug 2015 08:10:44 GMT
From: Mail Delivery Subsystem <MAILER-DAEMON>
Message-Id: <201508190810.t7J8AiZE002360@myweb.com>
To: <www-data@myweb.com>
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
boundary="t7J8AiZE002360.1439971844/myweb.com"
Content-Transfer-Encoding: 8bit
Subject: Returned mail: see transcript for details
Auto-Submitted: auto-generated (failure)
This is a MIME-encapsulated message
--t7J8AiZE002360.1439971844/myweb.com
The original message was received at Wed, 19 Aug 2015 08:10:42 GMT
from localhost.localdomain [127.0.0.1]
----- The following addresses had permanent fatal errors -----
<emailwitherrors@forwardeddomain.com>
(reason: 550-Verification failed for <www-data@myweb.com>)
----- Transcript of session follows -----
... while talking to forwardeddomain.com.:
>>> DATA
<<< 550-Verification failed for <www-data@myweb.com>
<<< 550-No Such User Here"
<<< 550 Sender verify failed
550 5.1.1 <emailwitherrors@forwardeddomain.com>... User unknown
<<< 503-All RCPT commands were rejected with this error:
<<< 503-Sender verify failed
<<< 503 Valid RCPT command must precede DATA
--t7J8AiZE002360.1439971844/myweb.com
Content-Type: message/delivery-status
Reporting-MTA: dns; myweb.com
Received-From-MTA: DNS; localhost.localdomain
Arrival-Date: Wed, 19 Aug 2015 08:10:42 GMT
Final-Recipient: RFC822; emailwitherrors@forwardeddomain.com
Action: failed
Status: 5.1.1
Remote-MTA: DNS; forwardeddomain.com
Diagnostic-Code: SMTP; 550-Verification failed for <www-data@myweb.com>
Last-Attempt-Date: Wed, 19 Aug 2015 08:10:44 GMT
--t7J8AiZE002360.1439971844/myweb.com
Content-Type: text/rfc822-headers
Content-Transfer-Encoding: 8bit
Return-Path: <www-data@myweb.com>
Received: from myweb.com (localhost.localdomain [127.0.0.1])
by myweb.com (8.14.4/8.14.4/Debian-4) with ESMTP id t7J8AgZE002358
for <emailwitherrors@forwardeddomain.com>; Wed, 19 Aug 2015 08:10:42 GMT
Received: (from www-data@localhost)
by myweb.com (8.14.4/8.14.4/Submit) id t7J8AgsO002357;
Wed, 19 Aug 2015 08:10:42 GMT
Date: Wed, 19 Aug 2015 08:10:42 GMT
Message-Id: <201508190810.t7J8AgsO002357@myweb.com>
To: emailwitherrors@forwardeddomain.com
Subject: ¡Welcome to my webpage!
X-PHP-Originating-Script: 0:whatever.php
From: myweb no-reply <no-reply@myweb.com>
MIME-Version: 1.0
Content-type: text/plain; charset=UTF-8
--t7J8AiZE002360.1439971844/myweb.com--
答案 0 :(得分:0)
由于发件人验证,您收到此问题。您通过php邮件发送邮件,并且由于该服务器从www-data@myweb.com帐户发送该邮件,并且您的服务器上未创建此邮件帐户,并且由于该收件人邮件服务器拒绝该邮件。