在FreeBSD上建立一个功能完整的邮件服务器(1) 第一部分:安装邮件服务器:postfix+vm-pop3d+openwebmail 欢迎大家转贴这个文章,但要保留下面的版权信息: 作者:llzQQ 出处:www.chinaUnix.net 联系: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