SSMTP 禁用根邮件发送

SSMTP 禁用根邮件发送

我安装了 SSMTP,以便使用 GMail 轻松地从 CLI 发送电子邮件。有一个问题,即来自 root 的所有系统消息([电子邮件保护])通过电子邮件发送至[电子邮件保护]. 我怎样才能禁用它?

ssmtp.conf:

# Config file for sSMTP sendmail
#
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
[email protected]

# The place where the mail goes. The actual machine name is required no
# MX records are consulted. Commonly mailhosts are named mail.domain.com
mailhub=mail

# Where will the mail seem to come from?
rewriteDomain=gmail.com

# The full hostname
hostname=ubuntu

# Are users allowed to set their own From: address?
# YES - Allow the user to specify their own From: address
# NO - Use the system generated From: address
#FromLineOverride=YES

mailhub=smtp.gmail.com:587
UseTLS=Yes
UseSTARTTLS=YES
[email protected]
AuthPass=12345

FromLineOverride=yes

相关内容