前提:
# 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
# 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