# # Config file for sSMTP sendmail # # The person who gets all mail for userids < 1000 # Make this empty to disable rewriting. root=xxxxxxx@qq.com
# 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=smtp.exmail.qq.com:587 AuthUser=xxxxxxx@qq.com AuthPass=xxxxxxxx UseTLS=YES UseSTARTTLS=YES # Where will the mail seem to come from? #rewriteDomain=
rewriteDomain=ghubserver # The full hostname hostname=xxxxxxx
# 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
hostname=xxxxxxx@qq.com
or vim /etc/mail.rc
1 2 3 4 5 6
set append dot save ask crt ignore Received Message-Id Resent-Message-Id Status Mail-From Return-Path Via
set from=xxxxxxx@qq.com smtp="smtp.exmail.qq.com:587" set smtp-auth-user="xxxxxxx@qq.com" smtp-auth-password="xxxxxx" set smtp-auth=login
vim /etc/ssmtp/revaliases
1 2 3 4 5 6 7 8
# sSMTP aliases # # Format: local_account:outgoing_address:mailhub # # Example: root:your_login@your.domain:mailhub.your.domain[:port] # where [:port] is an optional port number that defaults to 25. www:xxxxxxx@qq.com:smtp.exmail.qq.com:587 mainuser:xxxxxxx@qq.com:smtp.exmail.qq.com:587