Postfix安装与配置


版权声明:可以任意转载,转载时请务必以超链接形式标明文章原始出处和作者信息及本版权声明
http://www.liaojl.com/archives/2008/10/postfix-setup.html

Gentoo下安装Postfix与邮件客户端工具:

emerge -av mail-mta/postfix mail-client/mailx

安装好以后,配置文件放在/etc/postfix/目录中,先编辑main.cf文件,配置邮件服务器主机名和域名等信息。

myhostname = host1.liaojl.com
mydomain = liaojl.com
myorigin = $myhostname
inet_interfaces = all
mydestination = $myhostname, localhost
mynetworks = 192.168.1.0/8, 127.0.0.0/8

通过Mail Relay方式发送邮件,需要对方服务器赋予Relay权限。

relay_domains = $mydestination
relayhost = [smtp-shanghai.cn.phoenix.wuerth.com]

安装好以后/etc/mail/目录下已经有一个默认的aliases文件,这时需要执行newaliases命令来建立aliases.db文件,如果没有这个文件会导致Postfix一直提示报警日志。

发表评论

归档

友情链接

Creative Commons License
此Blog中的日记遵循Creative Commons(知识共享)授权

联系方式