Last active
January 22, 2024 02:29
-
-
Save tjumyk/342611a2b2e7c5f12a9ea9d1162c8b26 to your computer and use it in GitHub Desktop.
Register Aliyun DirectMail as SMTP provider for msmtp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install system package: msmtp-mta | |
# put this config file at /etc/msmtprc | |
# find Aliyun DirectMail service at https://aliyun.com/product/directmail | |
defaults | |
auth on | |
tls on | |
tls_trust_file /etc/ssl/certs/ca-certificates.crt | |
aliases /etc/msmtp_aliases | |
logfile ~/.msmtp.log | |
# aliyun | |
account aliyun | |
host smtpdm.aliyun.com | |
port 465 | |
from root@<MAILDOMAIN> | |
tls_starttls off | |
auth login | |
user root@<MAILDOMAIN> | |
password <PASSWORD> | |
maildomain <MAILDOMAIN> | |
domain <MAILDOMAIN> | |
account default : aliyun |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment