Linux sendmail

CentOS

yum install sendmail mailx

vi /etc/mail.rc

set
set smtp=smtp.mxhichina.com
set
set smtp-auth-password=123456
set smtp-auth=login

Ubantu

apt-get install sendmail
apt-get install sendmail-cf
apt-get install mialutils
apt-get install mailutils
apt-get uninstall mailutils -y
apt-get uninstall mailutils
apt-get install heirloom-mailx

vi /etc/s-nail.rc

set
set smtp=smtp.mxhichina.com
set
set smtp-auth-password=123456
set smtp-auth=login

相关推荐