Postfix

1、安装

①、下载

$ wget ftp://ring.aist.go.jp/pub/net/mail/postfix/official/postfix-2.5.6.tar.gz

②、解压缩、编译

$ tar xzvf postfix-2.5.6.tar.gz
$ cd postfix-2.5.6
$ make

③、添加组和用户

$ sudo groupadd postdrop
$ sudo useradd postfix -s /bin/false

④、安装

$ sudo make install

2、基本设定

$ sudo postconf -e myhostname=myhost.mydomain
$ sudo postconf -e mydomain=mydomain
$ sudo postconf -e myorigin='$mydomain'
$ sudo postconf -e mydestination='$mydomain'

3、启动

$ sudo postfix start

4、测试

$ telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 myhost.mydomain ESMTP Postfix

留下评论

您的邮箱地址不会被公开。 必填项已用 * 标注