# 为以下所有账户设置默认值。
defaults
auth on
# 启用TLS加密
tls on
tls_trust_file /etc/ssl/certs/ca-certificates.crt
logfile /app/msmtp.log
# Naruto
account naruto
host mail.narutos.top
port 587
# 使用STARTTLS加密连接
tls_starttls on
auth on
#from notification@narutos.top
# 发件人名称和地址
from "Rclone" <notification@narutos.top>
# 指定用于身份验证的用户名
user notification@narutos.top
password xxxxxxxxxxxxxxxxx
# 设置默认账户
account default : naruto
发信测试
echo "hello there username." | msmtp -a default xxxx@outlook.com
评论区