shell 下 用mail 发送邮件
停掉sendmail /etc/init.sendmail stop ; chkconfig sendmail off ;
yum -y install postfix*
service postfix start
yum -y install dovecot*
配置postfix
vim /etc/postfix/main.cf
myhostname = mail.g.cn
mydomain = g.cn
myorigin = $myhostname
myorigin = $mydomain
//监听端口
inet_interfaces = all
#inet_interfaces = $myhostname
#inet_interfaces = $myhostname, localhost
#inet_interfaces = localhost
yum -y install postfix*
service postfix start
yum -y install dovecot*
配置postfix
vim /etc/postfix/main.cf
myhostname = mail.g.cn
mydomain = g.cn
myorigin = $myhostname
myorigin = $mydomain
//监听端口
inet_interfaces = all
#inet_interfaces = $myhostname
#inet_interfaces = $myhostname, localhost
#inet_interfaces = localhost
inet_protocols = ipv4
//收件目标
mydestination = $myhostname,$mydomain
mynetworks = IP.0/28, 127.0.0.0/8
//转发
relay_domains = $mydestination
//计算机默认邮件程序
alternatives --config mta
mydestination = $myhostname,$mydomain
mynetworks = IP.0/28, 127.0.0.0/8
//转发
relay_domains = $mydestination
//计算机默认邮件程序
alternatives --config mta
posted on 2012-09-11 14:53 cn三少<script></script> 阅读(276) 评论(0) 编辑 收藏 举报
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步