Skip to content

Instantly share code, notes, and snippets.

@tjumyk
Last active January 22, 2024 02:29
Show Gist options
  • Save tjumyk/342611a2b2e7c5f12a9ea9d1162c8b26 to your computer and use it in GitHub Desktop.
Save tjumyk/342611a2b2e7c5f12a9ea9d1162c8b26 to your computer and use it in GitHub Desktop.
Register Aliyun DirectMail as SMTP provider for msmtp
# 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