我使用一个脚本来管理 Mailgun 的邮件配置。配置似乎没问题,但注册邮件没有从 Mailgun 日志发送。
我可以使用 SMTP 或 sendmail 或电子邮件协议。我想使用带有 Mailgun 凭据和 TLS 激活的 SMTP 协议。
如果我必须配置 Debian 9 Apache2 服务器以从 SMTP 发送电子邮件,您知道吗?
当我发送电子邮件时,我收到了这样的回复:
220 ak47 ESMTP ready
hello: 250-ak47
250-AUTH PLAIN LOGIN
250-SIZE 52428800
250-8BITMIME
250-ENHANCEDSTATUSCODES
250-SMTPUTF8
250 STARTTLS
starttls: 220 2.0.0 Start TLS
hello: 250-ak47
250-AUTH PLAIN LOGIN
250-SIZE 52428800
250-8BITMIME
250-ENHANCEDSTATUSCODES
250 SMTPUTF8
from: 250 2.0.0 OK
to: 550 5.7.1 Relaying denied
The following SMTP error was encountered: 550 5.7.1 Relaying denied
quit: 221 See you later. Yours truly, Mailgun
Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method.
Date: Thu, 16 Aug 2018 18:01:00 +0200
From: "Site Name" <[email protected]>
Return-Path: <[email protected]>
To: [email protected]
Subject: =?UTF-8?Q?Message=20from=20SiteName?==?UTF-8?Q?cud?=
Reply-To: <[email protected]>
User-Agent: CodeIgniter
X-Sender: [email protected]
X-Mailer: CodeIgniter
X-Priority: 1 (Highest)
Message-ID: <[email protected]>
Mime-Version: 1.0