sSMTP
sSMTP - Simple SMTP
sSMTP is a simple MTA to deliver mail from a computer to a mail hub (SMTP server). sSMTP is simple and lightweight, there are no daemons or anything hogging up CPU; Just sSMTP. Unlike Exim4, sSMTP does not receive mail, expand aliases, or manage a queue.
Setting up
/etc/ssmtp/ssmtp.conf
# For My SMTP relay server
AuthUser=alang@domain.com
AuthPass=ThisIsPassword
FromLineOverride=YES
mailhub=smtp.domain.com:587
UseSTARTTLS=YES
如何自訂 sender 的位址
修改 /etc/ssmtp/ssmtp.conf
FromLineOverride=NO
root=win.mis03
修改 /etc/ssmtp/revaliases
root:win.mis03@msa.hinet.net