10.3. 测试电子邮件发送
要验证电子邮件的发送,请向用户发送测试电子邮件。如果电子邮件发送,则设置正确。
流程
- 在 Satellite Web UI 中,进入到 Administer > Users。
- 点用户名。
在 Email Preferences 选项卡中,单击 Test email。
测试电子邮件会立即发送到用户的电子邮件地址。
如果发送电子邮件,则代表验证已完成。否则,您必须执行以下诊断步骤:
- 验证用户的电子邮件地址。
- 验证 Satellite 服务器的电子邮件配置。
- 检查防火墙和邮件服务器日志。
如果您的 Satellite 服务器使用 Postfix 服务进行电子邮件发送,测试电子邮件可能会在队列中保存。要进行验证,请输入
mailq
命令列出当前的邮件队列。如果测试电子邮件在队列中保存,mailq
会显示以下信息:postqueue: warning: Mail system is down -- accessing queue directly -Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient------- BE68482A783 1922 Thu Oct 3 05:13:36 satellite-noreply@example.com
postqueue: warning: Mail system is down -- accessing queue directly -Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient------- BE68482A783 1922 Thu Oct 3 05:13:36 satellite-noreply@example.com
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 要解决这个问题,请在您的 Satellite 服务器上启动 Postfix 服务:
systemctl start postfix
# systemctl start postfix
Copy to Clipboard Copied! Toggle word wrap Toggle overflow