停掉sendmail    /etc/init.sendshell 下 用mail 发送邮件mail 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
inet_protocols = ipv4 
//收件目标
mydestination = $myhostname,$mydomain
mynetworks = IP.0/28, 127.0.0.0/8
//转发
relay_domains = $mydestination
//计算机默认邮件程序
alternatives --config mta 
 
 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
  • 2021-06-21
猜你喜欢
  • 2021-08-28
  • 2022-12-23
  • 2022-03-05
  • 2021-09-27
  • 2021-06-08
  • 2021-10-25
相关资源
相似解决方案