电脑技术学习

Freebsd下安装Drweb for qmail

dn001

  三、如何安装drweb filter for qmail

  1、在FreeBSD的ports中只收录了drweb-sendmail,想安装drweb-qmail可以直接到

  drweb的网址上下载:http://drweb.spb.ru/download/Unix/drweb-qmail-4.28.4-freebsd4.tgz

  2、安装drweb-qmail可以通过如下步骤:

  1)tar xzvf drweb-qmail-4.28.4-freebsd4.tgz

   cd drweb-qmial-4.28.4-freebsd4

  2)cp /var/qmail/bin/qmail-queue /var/qmail/bin/qmail-queue.orig

   cp opt/drweb/doc/qmail/qmail-queue /var/qmail/bin/qmail-queue

   chown qmailq:qmail qmail-queue

   chmod 4711 qmail-queue

   chown qmailq:qmail qmail-queue.orig

   chmod 4711 qmail-queue.orig

  3)cp -R etc/drweb/templates /usr/local/drweb/

   mkdir /etc/drweb

   cp etc/drweb/*.conf /etc/drweb

  3、设置drweb。对/etc/drweb/drweb-qmail我作了如下修改

  Address = local:/usr/local/drweb/run/drwebd.sock

  Spool = /usr/local/drweb/spool

  DenyList = /etc/drweb/users.conf

  AdminMail = webmaster

  FilterMail = webmaster@domain.com

  Quarantine = /usr/local/drweb/infected

  # 汉化msg文件

  AdminTemplate = /usr/local/drweb/templates/cn/qmail/virus-admin.msg

  SenderTemplate = /usr/local/drweb/templates/cn/qmail/virus-sender.msg

  RcptsTemplate = /usr/local/drweb/templates/cn/qmail/virus-rcpts.msg

  对/usr/local/drweb/drweb32.ini,作了如下修改

  LogFileName = "/var/log/drwebd.log"

  User = qmailq

标签: