论坛首页 综合技术论坛

从源代码安装 Postfix

浏览 1942 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2011-04-01   最后修改:2011-04-03
前提:
# apt-get install libdb-dev
# adduser postfix
# addgroup postdrop

编译:
% make

安装:
# make install

备份原始配置文件:
# cp /etc/postfix/main.cf /etc/postfix/main.cf.org
# cp /etc/postfix/master.cf /etc/postfix/master.cf.org

配置:
# touch /etc/aliases
# /usr/bin/newaliases
# postconf -e myhostname=uec-nd2
# postconf -e mail_spool_directory=/var/mail/    /* 用 maildir 来存邮件,可能需要改权限 */

启动:
# postfix start

停止:
# postfix stop

测试:
% telnet uec-nd2 25
helo uec-nd2
mail from:<bob@example.org>
rcpt to:<postfix@uec-nd2>
data
hello, mail!
.
quit
论坛首页 综合技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics