登录模块加载中...
会员投稿 投稿指南 今天是:
打印本页 | 关闭窗口 | 双击滚屏 您的位置首页>>网页制作学习园地>>服务器类>>邮件服务>>qmail邮件系统安装(freebsd 3.4)
qmail邮件系统安装(freebsd 3.4)
来源:不详 ‖ 作者:未知 ‖ 点击: ‖ 时间:08-01-02 09:20:55 ‖ 【 】‖ 我要投稿

本系统包括qmail基本系统、vpopmail、webmail。
1。软件准备
软件名称 说明 相关网站
qmail 1.03 qmail 基本系统,须以下三个包 www.qmail.org
ucspi-tcp 0.84 tcpserver
daemontools 0.61 守护进程
rblsmtpd 0.70
vpopmail 3.4.11 支持虚拟域 www.inter7.com
qmailadmin 0.26e qmail web管理程序,须以下2包
ezmlm 0.53 邮件列表
autorespond 自动回复
sqwebmail 0.31 web mail (next item needed)
lynx-2-8 browser
webmin 0.77 web方式服务器管理(apache,ftp,dns...) www.webmin.com

2。开始安装
1.qmail 1.03

1.1 建立qmail home dir
# mkdir /var/qmail

1.2 添加必要用户,其它系统请参考INSTALL.ids
# pw groupadd nofiles
# pw useradd alias -g nofiles -d /var/qmail/alias -s
/nonexistent
# pw useradd qmaild -g nofiles -d /var/qmail -s /nonexistent
# pw useradd qmaill -g nofiles -d /var/qmail -s /nonexistent
# pw useradd qmailp -g nofiles -d /var/qmail -s /nonexistent
# pw groupadd qmail
# pw useradd qmailq -g qmail -d /var/qmail -s /nonexistent
# pw useradd qmailr -g qmail -d /var/qmail -s /nonexistent
# pw useradd qmails -g qmail -d /var/qmail -s /nonexistent

1.3 compile qmail
# make setup check

1.4 Compiling rblsmtpd is trivial on most systems:

# tar zxvf rblsmtpd-0.70.tar.gz
# cd rblsmtpd-0.70
# make
# make setup check
//This will produce an rblsmtpd binary in /usr/local/bin.

1.5 config qmail
# cd qmail-1.03
# ./config
If this doesn't work, then you've got some dirty work to do.
Read INSTALL.ctl. As long as all of your local IP's are in
your DNS, then you shouldn't have any problems. Otherwise you
can do the following:
# ./config-fast your.full.host.name

This will create the necessary files in order to run qmail.

1.6 Install the qmail aliases.
# cd ~alias
# echo adam > .qmail-root //adam and bob is system
administrator
# echo bob > .qmail-postmaster
# echo bob > .qmail-mailer-daemon

1.7 建立qmail启动文件,将该行放入/usr/local/etc/rc.d/qmail.sh (csh -cf
...)
# cp /var/qmail/boot/home /var/qmail/rc
// 注意,此时如果打算使用Maildir可编辑rc文件,用Maildir替换Mailbox
# csh -cf '/var/qmail/rc &'

If you've decided you want to use Maildirs, all you need to do
execute the following command in your home directory:
$ /var/qmail/bin/maildirmake $HOME/Maildir
$ echo ./Maildir/ > ~/.qmail

1.8 Kill sendmail!!

# killall -TERM sendmail
# mv /usr/lib/sendmail /usr/lib/sendmail.old
# mv /usr/sbin/sendmail /usr/sbin/sendmail.old
# ln -s /var/qmail/bin/sendmail /usr/lib/sendmail
# ln -s /var/qmail/bin/sendmail /usr/sbin/sendmail

1.9 Set up qmail daemons.

1.9.1 Install daemontools and tcpserver.

# tar zxvf ucspi-tcp-0.84.tar.gz
# cd ucspi-tcp-0.84
# make
# make setup check

1.9.2 Installing daemontools is just as easy.
# tar zxvf daemontools-0.53.tar.gz
# cd daemontools-0.53
# make
# make setup check

1.10 Now all that is left to do is create the directories that

|<< << < 1 2 3 > >> >>|
加入收藏:  加入收藏夹  | 发送给好友:  发送给好友
责任编辑:admin
相关文章列表
无相关新闻
请文明参与讨论,禁止漫骂攻击。  
网友评论