1 2 3 4 5 下一页
#1 在FreeBSD上建立一个功能完整的邮件服务器
第一部分:安装邮件服务器:postfix+vm-pop3d+openwebmail
欢迎大家转贴这个文章,但要保留下面的版权信息:
作者:llzQQ
联系:llzqq@126.com
以下的安装在FreeBSD 5.2.1系统上完成
1.更新 ports
# cvsup -gL 2 -h cvsup.freebsdchina.org /usr/share/examples/cvsup/ports-supfile
2. 安装 openssl+apache 服务器
# cd /usr/ports/security/openssl
# make install
# make clean
# cd /usr/ports/www/apache2
# make install
# make clean
# vi /etc/rc.conf
apache2_enable="YES"
3. 安装 openwebmail
# cd /usr/ports/mail/openwebmail/
# make WITH_QUOTA=yes install
# make clean
4. 安装 postfix ,在安装过程中用yes回答提出的问题
# cd /usr/ports/mail/postfix/
# make install
# make clean
# vi /etc/rc.conf
为了能启动postfix加入:
sendmail_enable="YES"
sendmail_flags="-bd"
sendmail_pidfile="/var/spool/postfix/pid/master.pid"
sendmail_outbound_enable="NO"
sendmail_submit_enable="NO"
5. 安装 vm-pop3d
# cd /usr/ports/mail/vm-pop3d
# make install
# make clean
6. 配置 postfix
# vi /usr/local/etc/postfix/main.cf
添加:
myhostname = nero.3322.org
mydomain = nero.3322.org
virtual_alias_maps=hash:/usr/local/etc/postfix/virtual
alias_maps=hash:/usr/local/etc/postfix/aliases
default_privs=nobody
allow_mail_to_commands = alias,forward,include
allow_mail_to_files = alias,forward,include
下面我加入一个 nero.3322.org 的虚拟域,并添加一个用户llzqq
# vi /usr/local/etc/postfix/virtual
添加:
nero.3322.org anything //之间用[tab]
llzqq@nero.3322.org llzqq.nero.3322.org //之间用[tab]
执行下面的命令,生成 virtual.db:
# cd /usr/local/etc/postfix/
# postmap virtual
# vi /usr/local/etc/postfix/aliases
添加:
标签: