首页 | 邮件资讯 | 技术教程 | 解决方案 | 产品评测 | 邮件人才 | 邮件博客 | 邮件系统论坛 | 软件下载 | 邮件周刊 | 热点专题 | 工具
网络技术 | 操作系统 | 邮件系统 | 客户端 | 电子邮箱 | 反垃圾邮件 | 邮件安全 | 邮件营销 | 移动电邮 | 邮件软件下载 | 电子书下载

邮件服务器

技术前沿 | Exchange | Domino | Sendmail | Postfix | Qmail | IMail | MDaemon | Foxmail | James | Kerio | JavaMail | WinMail | Winwebmail | Merak | CMailServer | 金笛 | 其它 | 邮件与开发 |
首页 > 邮件服务器 > Qmail > qmail邮件系统安装(freebsd 3.4) > 正文
金笛邮件系统

qmail邮件系统安装(freebsd 3.4)

出处:www.5dmail.net 作者:钉子 时间:2003-10-4 13:23:00
简单三步解决企业垃圾邮件难题
本系统包括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    
                  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>&1 | setuser qmaill accustamp |    
                  > setuser qmaill cyclog -s5000000 -n5    
                  /var/log/qmail/qmail-smtpd &    

                  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>&1 |    
                  setuser qmaill accustamp |    
                  > setuser qmaill cyclog -s5000000 -n5    
                  /var/log/qmail/qmail-smtpd &    

                  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>&1 | /var/qmail/bin/splogger smtpd 3 &    

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

                  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 &    

                  一些重要概念可以参考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 & '    
                  /usr/local/bin/tcpserver -x /etc/tcp.smtp.cdb -u 1004 -g 1003    
                  0 smtp /var/qmail/bin/qmail-smtpd 2>&1    
                  |/var/qmail/bin/splogger smtpd 3 &    

                  /usr/local/bin/tcpserver 0 110 /var/qmail/bin/qmail-popup    
                  byone /usr/local/vpopmail/bin/vchkpw    
                  /var/qmail/bin/qmail-pop3d Maildir &    

                  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系统安装、简单配置及使用
  • Linux系统Qmail邮件服务器安装过程解析
  • 在AS4上架设QMAIL+反病毒垃圾模块的方法
  • 详细讲解:Qmail软件加装自动杀毒的方法
  • TurboLinux下架设Qmail服务器历程
  • 关于Qmail问题集
  • 基于qmail的mail安全系统
  • Qmail邮件服务器安装过程
  • 建立qmail邮件系统防毒
  • 如何配置带SMTP认证功能的qmail
  • QQMail邮箱通讯录导入导出简明教程
  • qmail邮件系统(六)qmail的日志和管理
  • Linux邮件服务器软件比较
  • 域名和邮件服务器FAQ
  • Qmail自动安装包Qmail_setup-v1.5.3发布
  • freebsd+qmail+mysql+vpopmail之完全ports安装
  • qmail+vpopmail+MySQL+igenus+RedHat 7下建立邮件系统
  • QMAIL终极安装指南
  • 配置你的第一台e-mail服务器
  • qmail+webmail on Linux9 安装全过程
  • 分布式的Qmail邮件系统
  • qmail+vpopmail+mysql+qmailadmin+ezmlm+igenus构建企业邮局
  • qmail+webmail on Linux9 安装全过程
  • Qmail Server Howto
  • 自由广告区
     
     
    WINMAIL 让您轻松架设邮件系统
    eqmail
    最新软件下载
  • ORF Enterprise Edition 4.2 正式版
  • Exchange Server 2003 群集安装配置
  • ORF 4.2 Beta
  • Exchange 2000/2003 日志分析系统
  • Microsoft Outlook Personal Folders B..
  • MDaemon Server 9.07 英文正式版
  • Kerio MailServer 6.5.1 6098 Linux版
  • Kerio MailServer 6.5.1 6098 正式版
  • 酷邮(KooMail) V5.0 简体中文版
  • PowerGUI 
  • IMail Server 10
  • Foxmail6.5 Beta2
  • 今日邮件技术文章
  • 恶意软件上半年激增278% 攻击目标直指..
  • 企业可考虑移动Email减少运行成本
  • CommVault Simpana增加了新的电子发现..
  • Cyanlotus青莲科技合作伙伴大会上海召开
  • 电邮附件统一管理终实现
  • Pushmail市场孕育新机遇
  • QQ邮箱使用过程中需注意的九个细节
  • 中山大学测试梭子鱼反垃圾邮件系统报告
  • 专家称反垃圾邮件的过程将是漫长的博弈
  • 东北大学温占考:信用机制现身反垃圾工作
  • 给AOL用户发送垃圾邮件 纽约男子被判..
  • Google开发Gmail、Calendar离线功能 ..
  • 最新专题
  • Sendmail 邮件系统配置
  • 组建Exchange 2003邮件系统
  • Windows Server 2008 专题
  • ORF 反垃圾邮件系统
  • Exchange Server 2007 专题
  • ISA Server 2006 教程专题
  • Windows Vista 技术专题
  • “黑莓”(BlackBerry)专题
  • 移动电子邮件专题
  • Apache James 专题
  • IMail Server 操作指南
  • ISA Server 2004 使用专题
  • 分类导航
    邮件新闻资讯:
    IT业界 | 邮件服务器 | 邮件趣闻 | 移动电邮
    电子邮箱 | 反垃圾邮件|邮件客户端|网络安全
    行业数据 | 邮件人物 | 网站公告 | 行业法规
    网络技术:
    邮件原理 | 网络协议 | 网络管理 | 传输介质
    线路接入 | 路由接口 | 邮件存储 | 华为3Com
    CISCO技术 | 网络与服务器硬件
    操作系统:
    Windows 9X | Linux&Uinx | Windows NT
    Windows Vista | FreeBSD | 其它操作系统
    邮件服务器:
    程序与开发 | Exchange | Qmail | Postfix
    Sendmail | MDaemon | Domino | Foxmail
    KerioMail | JavaMail | Winwebmail |James
    Merak&VisNetic | CMailServer | WinMail
    金笛邮件系统 | 其它 |
    反垃圾邮件:
    综述| 客户端反垃圾邮件|服务器端反垃圾邮件
    邮件客户端软件:
    Outlook | Foxmail | DreamMail| KooMail
    The bat | 雷鸟 | Eudora |Becky! |Pegasus
    IncrediMail |其它
    电子邮箱: 个人邮箱 | 企业邮箱 |Gmail
    移动电子邮件:服务器 | 客户端 | 技术前沿
    邮件网络安全:
    软件漏洞 | 安全知识 | 病毒公告 |防火墙
    攻防技术 | 病毒查杀| ISA | 数字签名
    邮件营销:
    Email营销 | 网络营销 | 营销技巧 |营销案例
    邮件人才:招聘 | 职场 | 培训 | 指南 | 职场
    解决方案:
    邮件系统|反垃圾邮件 |安全 |移动电邮 |招标
    产品评测:
    邮件系统 |反垃圾邮件 |邮箱 |安全 |客户端
    广告联系 | 合作联系 | 关于我们 | 联系我们 | 繁體中文
    版权所有:邮件技术资讯网©2003-2007 www.5dmail.net, All Rights Reserved
    www.5Dmail.net Web Team   粤ICP备05009143号