(转)postfix(邮件服务器)安装及配置

https://blog.csdn.net/qq_29681283/article/details/80306477

sudo yum install postfixsudo systemctl enable postfixsudo systemctl start postfix

启动postfix
/usr/sbin/postfix start
停止postfix
/usr/sbin/postfix stop
检查postfix配置文件
/usr/sbin/postfix check
显示Postfix当前生效的配置信息
postconf -n
重新读取postfix配置文件
/usr/sbin/postfix reload


vi /etc/postfix/main.cf #vi编辑postfix配置文件
#找到如下配置项酌情修改
######
myhostname =  mail.jjonline.com.cn  
#postfix主机名,修改成你的域名 此项需要添加A记录并指向postfix所在主机公网IP
mydomain   =  jjonline.com.cn  
#域名
myorigin   =  $mydomain 
#本机postfix的邮箱域名后最 此项默认值使用myhostname
#此处使用了前项mydomain 也就是说本机postfix邮箱后缀为:@jjonline.com.cn
inet_interfaces = localhost 
--------------------- 
作者:Queeys 
来源:CSDN 
原文:https://blog.csdn.net/qq_29681283/article/details/80306477 
版权声明:本文为博主原创文章,转载请附上博文链接!

猜你喜欢

转载自blog.csdn.net/A9925/article/details/85171375
今日推荐