yuminstall-ysendmailsendmail-cfm4
vi/etc/mail/sendmail.mc
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1,Name=MTA)dnl
m4/etc/mail/sendmail.mc>/etc/mail/sendmail.cf
servicesendmailrestart
echo"">>/etc/hosts
echo"127.0.0.1$HOSTNAME">>/etc/hosts
iptables-AINPUT-ptcp--dport25-jACCEPT
iptables-AINPUT-mstate--stateESTABLISHED,RELATED-jACCEPT
serviceiptablessave
serviceiptablesrestart
mail-s"hosts"***x@qq.com</etc/hosts
欢迎光临 仓酷云 (http://ckuyun.com/) | Powered by Discuz! X3.2 |