通过 GMail SMTP 服务器发送语音邮件的 Asterisk 配置不起作用

通过 GMail SMTP 服务器发送语音邮件的 Asterisk 配置不起作用

我正在尝试配置 Asterisk(在 AstLinux 上运行),使其在通过 GMail 的 SMTP 服务器收到语音邮件时发送电子邮件,但不起作用。我没有收到任何电子邮件,并且在 Asterisk 系统日志中收到以下错误:

十二月 14 02:02:56 donald mail.info msmtpqueue: 邮件系统已停止。使用“msmtpqueue”显示邮件队列。

这些是我的配置文件(我的服务器位于 donald.example.com)

rc.conf

## SMTP Mail Relay
## This is the SMTP server that all mail from cron, etc. on this
## system will be sent through.  This includes Asterisk VM notifications.
SMTP_SERVER="smtp.gmail.com"
## SMTP_DOMAIN
SMTP_DOMAIN="donald.example.com"
SMTP_HOSTNAME="pbx"
SMTP_TLS=yes
SMTP_STARTTLS=on
SMTP_CERTCHECK=off
## The username and password for communicating with the SMTP server.
SMTP_USER="[email protected]"
SMTP_PASS="plaintext_password"
SMTP_AUTH=plain
SMTP_PORT=587

语音邮件配置文件

[default]
1111 => 1234,Nick,[email protected],,tz=eastern|attach=yes|[email protected]|format=wav

答案1

在 Asterisk 的 Web 界面上,我必须修改“网络”选项卡中的 SMTP 设置,而不是编辑 rc.conf 配置文件。一旦我在“网络”选项卡上的“出站 SMTP 邮件中继”下进行更改并重新启动计算机,Asterisk 就会清除消息队列并将所有排队的电子邮件推送出去。

相关内容