系統環境:
編輯 /etc/mail/sendmail.mc
cd /etc/mail cp -a sendmail.mc sendmail.mc.orig vi sendmail.mc
搜尋 authinfo,若沒有,就新增在最下方,如下:
dnl # dnl # This is for SMTP mail server relay FEATURE(`authinfo',`hash /etc/mail/auth/client-info')dnl
新增 SMTP 認證帳號及密碼的設定
cd /etc/mail mkdir auth chmod 700 auth/ cd auth/ vi client-info
AuthInfo:your.smtp.server "U:smmsp" "I:userid" "P:password"
NOTES:
your.smtp.server SMTP 主機位址
userid SMTP 帳號
password SMTP密碼
//