Postfix 安装与配置

(0 comments)

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一直提示报警日志。

Currently unrated

Comments

There are currently no comments

New Comment

required

required (not published)

optional

required