动态网站制作指南 [  QQ表情  ]
[ 投票调查 ]
[ 企业邮箱 ]
[ 网站空间 ]
网络编程 | 站长之家 | 网页制作 | 图形图象 | 操作系统 | 冲浪宝典 | 软件教学 | 网络办公 | 邮件系统 | 网络安全 | 认证考试 | 系统进程
ASP源码 | .Net源码 | PHP源码 | JSP源码 | JAVA源码 | CGI源码 | VB源码 | C++源码 | Delphi源码 | PB源码 | VF源码 | 汇编 | 服务器
电脑书籍下载:程序设计书籍 | 数据库教程书籍 | 平面与多媒体书籍 | 网络通讯书籍 | 系统管理书籍 | 网络安全书籍 | 认证考试书籍
Firefox | IE | Maxthon | 迅雷 | 电驴 | BitComet | FlashGet | QQ | QQ空间 | Vista | 输入法 | Ghost | Word | Excel | wps | Powerpoint
asp | .net | php | jsp | Sql | c# | Ajax | xml | Dreamweaver | FrontPages | Javascript | css | photoshop | fireworks | Flash | Cad | Discuz!
当前位置 > 网站建设学院 > 邮件系统软件 > Qmail
文章搜索服务
邮件订阅
输入你的邮件地址,
你将不会错过任何关于:
[ Qmail ]的信息



本月文章推荐
.sendmail下限制邮件大小.
.qmail+webmail on Linux9 安装全.
.ExtMail Solution HOWTO for Lin.
.通过qmailadmin来实现qmail下的域.
.postfix 2.0.16的虚拟投递代理文.
.Postfix邮件系统安装手册.
.sendmail文件相关说明.
.redhat9.0下igenus的安装过程.
.Linux 架设 sendmail MAIL.
.postfix邮件系统完整版.
.FreeBSD Virtual Mail How-To.
.在FreeBSD上建立一个功能完整的邮.
.Qmail域名相关问题三.
.Freebsd下安装Drweb for qmail.
.Postfix Mail Server Manage ( 郵.
.小型企业的Sendmail邮件服务器应.
.基于Linux和Postfix的邮件系统的.
.如何在拨号环境下使用postfix.
.UW IMAP 服务器的性能优化.
.qmailadmin+vpopmail+mysql的fil.

qmail邮件系统安装(freebsd 3.4)

发表日期:2006-12-3 |


本系统包括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 %26amp;'

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
cyclog will log to.
# mkdir /var/log/qmail
# chown qmaill /var/log/qmail
# mkdir /var/log/qmail/qmail-smtpd
# mkdir /var/log/qmail/qmail-pop3d // if you are also using
qmail-pop3d
# chown qmaill /var/log/qmail/*

1.11 修改/etc/tcp.smtp
Before we can start up our qmail smtpd, we need to do some
access control. The simplest way to do this is by using files
in /etc. I use /etc/tcp.smtp as my access control file. If you
don't need to do any access control, /etc/tcp.smtp can have
just one line:
:allow
Note that a default configuration does not allow for ANY
relaying, even from localhost. To allow relaying from
localhost and your local network, you would have to use
something like this:
127.0.0.1:allow,RELAYCLIENT=""
192.168.1.:allow,RELAYCLIENT=""
:allow
For more examples, man tcprules.
After you've created your rules, you need to activate them.
tcpserver works by reading a cdb (database) file. You use the
tcprules program to build the database file from your
/etc/tcp.smtp file. This is accomplished by the following
command:
# tcprules /etc/tcp.smtp.cdb /etc/tcp.smtp.tmp < /etc/tcp.smtp


1.12 rblsmtpd

# PATH=/var/qmail/bin:/usr/local/bin:$PATH
# mkdir /var/lock/qmail-smtpd
# mkdir /var/log/qmail/
# mkdir /var/log/qmail/qmail-smtpd
# supervise /var/lock/qmail-smtpd tcpserver -v
-x/etc/tcp.smtp.cdb -u71 -g1001 0 25
> rblsmtpd qmail-smtpd 2>%26amp;1 | setuser qmaill accustamp |
> setuser qmaill cyclog -s5000000 -n5
/var/log/qmail/qmail-smtpd %26amp;

or, to block using ORBS and
RBL,注意:setuser在freebsd中用setuidgid代替

# supervise /var/lock/qmail-smtpd tcpserver -v
-x/etc/tcp.smtp.cdb -u71 -g1001 0 25
> rblsmtpd rblsmtpd -rrelays.orbs.org qmail-smtpd 2>%26amp;1 |
setuser qmaill accustamp |
> setuser qmaill cyclog -s5000000 -n5
/var/log/qmail/qmail-smtpd %26amp;

1.13 自动运行qmail

1.13.1 inetd方式

smtp stream tcp nowait qmaild /var/qmail/bin/tcp-env tcp-env
/usr/local/bin/rblsmtpd /var/qmail/bin/qmail-smtpd

1.13.2 xinetd方式

service smtp
{
socket_type = stream
protocol = tcp
wait = no
user = qmaild
server = /var/qmail/bin/tcp-env
server_args = /usr/local/bin/rblsmtpd
/var/qmail/bin/qmail-smtpd
only_from = 0.0.0.0
}

1.13.3 tcpserver 方式

Install the ucspi-tcp package, (
http://pobox.com/~djb/ucspi-tcp.html.)
Remove the smtp line from /etc/inetd.conf,
and put the line :

tcpserver -v -u 7770 -g 2108 0 smtp /var/qmail/bin/qmail-smtpd

2>%26amp;1 | /var/qmail/bin/splogger smtpd 3 %26amp;

into your system boot scripts. Replace 7770 with your qmaild
uid, and replace 2108 with your nofiles gid. Don't forget the
%26amp;.

The change will take effect at your next reboot. By default,
tcpserver allows at most 40 simultaneous qmail-smtpd
processes. To raise this limit to 400, use tcpserver -c 400.
To keep track of who's connecting and for how long, run (on
two lines)

1.14 qmail-pop3d

tcpserver [-u uid -g gid] 0 110 /var/qmail/bin/qmail-popup
YOURHOST
/bin/checkpassword /var/qmail/bin/qmail-pop3d Maildir %26amp;

一些重要概念可以参考qmail-howto and 《life with qmail》and qmail-faq

1.15 /usr/local/etc/rc.d/qmail.sh example

#!/bin/sh

csh -cf '/var/qmail/rc %26amp; '
/usr/local/bin/tcpserver -x /etc/tcp.smtp.cdb -u 1004 -g 1003
0 smtp /var/qmail/bin/qmail-smtpd 2>%26amp;1
|/var/qmail/bin/splogger smtpd 3 %26amp;

/usr/local/bin/tcpserver 0 110 /var/qmail/bin/qmail-popup
byone /usr/local/vpopmail/bin/vchkpw
/var/qmail/bin/qmail-pop3d Maildir %26amp;

1.16 checkpassword //如果用vpopmail可以不装

$ make
# make setup check

2. vpopmail

2.1 检查硬盘空间,决定使用哪个slice建立vpopmail用户

# df
or # df -k

2.2 add group and user

# pw groupadd vchkpw
# pw useradd -g vchkpw vpopmail [-d /path/to/home/vpopmail]

2.3 建立 tcp.smtp

2.4 配置 安装

$ ./configure --enable-roaming-users=y
$ make
$ su
# make install-strip

3. qmailadmin

3.1 ezmlm

$ make
$ make man
# make setup

3.2 autorespond

gcc -Wall -o autorespond autorespond.c

3.3 qmailAdmin

3.3.1. Before we can make and install there are a few things
to consider..
a. do you have a vpopmail user and installed vchkpw
b. where is your cgi bin directory
c. where is your ezmlm directory
d. where is your autorespond directory
If you are missing any one of those you can stop reading this
now and go install it!!

3.3.2 install

$ ./configure --enable-cgibindir={dir} //HTTP server's cgi-bin
directory.
> --with-htmllibdir={dir} // qmailadmin HTML library
directory.

# make
# make install or make install-strip

4 sqwebmail

3.4.1 lynx2-8

$ ./configure
# make
# make install

3.4.2 sqwebmail

$ ./configure --prefix=/usr/local/sqwebmail
> --with-htmllib={dir}
> --enable-cgibindir={dir}
> --enable-mimetypes=filelist //apache mime.types file

$ make
# make check
# make install-strip 或者 make install (不去除debug信息)

5 webmin

# ./setup.sh //按提示做
上一篇:Qmail邮件系统下防止滥用mail relay完全解决方案 人气:6825
下一篇:Redhat 7.2下qmail安装(二) 人气:6503
浏览全部Qmail/Sendmail/Postf的内容 Dreamweaver插件下载 常用网页广告代码全集
  最新网站源码 最新软件下载
2008-7-24 Sablog-X v2.0 预览版
2008-7-24 帝国备份王EmpireBak 2008 正式版
2008-7-24 网趣网上购物系统时尚版 v8.2
2008-7-24 纵横B2B电子商务系统XYECS!B2B v
2008-7-24 e路小说小偷 v1.2.0723
2008-7-24 凌风美女图片站程序 v2.2
2008-7-24 TOM15电影收索程序
2008-7-24 清风信息自动采集生成系统 v1.0
2008-7-24 QQ邮箱编辑器 v1.0 (小小菜刀ASP
2008-7-19 UltraEdit 简体中文增强版 14.10
2008-7-19 CentOS 5.2 i386 LiveCD
2008-7-19 Snapture多功能相机 v1.4
2008-7-19 iAcces中文输入法 v1.0Build016
2008-7-19 Cookbook烹饪秘籍 v2.5
2008-7-19 苹果专用DVD转换工具 v1.1.59汉化
2008-7-19 Modem修复软件ZiPhone修改版04.0
2008-7-19 AgileMessenger即时通讯工具美化
2008-7-19 Sketches画图软件 v0.7b6破解版


  发表评论
姓 名: 验证码:
内 容:
[ 汉字翻译拼音 ] [ 广告代码 ] [ 符号对照表 ] [ 进制转换 ] [ 经典小工具 ] [ 个税计算 ] [ 汉字简繁转换 ] [ 普通单位换算 ] [ 公制单位换算 ]
[ 生辰老黄历 ] [ 国内电话区号 ] [ 国家代码与域名缩写 ] [ 文字加密解密 ] [ 健康查询 ] [ 万年历 ] [ 手机号码查询 ] [ ip搜索 ] [ Google PR查询 ]
业务联系 | 广告刊登 | 频道合作 | 投稿荐稿 | 联系方式 | 加入收藏 | RSS订阅
Copyright © 2000-2008 www.knowsky.com All rights reserved | 网络实名:动态网站制作指南 | 沪ICP备05001343号
ホームページ制作 不動産検索システム 求人情報
防水工事·改修工事 フットサル大会 探偵