返回列表 回复 发帖

基于Linux和Postfix的邮件系统的web mail安装手册

基于LinuxPostfix的邮件系统的web mail安装手册

------------------------------------------------------------------------------------------------------
新增使用mailscanner来对进出邮件进行监管。new
修正上一个版本的一些理解性和文件性错误。
主要“加强”了病毒过滤和垃圾邮件过滤,更加节约系统资源,使系统配置更简单化。
垃圾邮件过滤基本上达到了95%的成功率
本文首次使用MailScanner+Clamav配合对邮件病毒进行过滤。
经过严格病毒邮件测试成功率达到了100%
翻译了病毒邮件提示为中文提示,让系统更加的人性化。

------------------------------------------------------------------------------------------------------
Linux+Postfix+Cyrus-sasl+Courier-imap+Tmail3.0+spamassassin+Clamav+mailscanner

杨廷勇

Copyright © 2004
20052006

本文介绍使用Linux+Postfix+Cyrus-sasl+Courier-imap+Tmail3.0+spamassassin+Clamav+mailscanner
来架构一个具有多域名,有邮件列表、webmail、防病毒、防垃圾邮件、web管理界面的邮件系统。
Jacky, $Revision: 4.51 bate $Date: 2006-3-9
系统主要采用MailScanner+clamav+Spamassassin来对病毒过滤和垃圾邮件过滤。

本文在CentOSREDHATas上安装测试通过,病毒过滤放弃采用amavisd。主要采用执行效率更高的MailSanner来对邮件过滤和垃圾邮件过滤,配置更容易,并且降低了系统开消。让系统更加稳定,经过严格病毒邮件测试成功率达到了100%。垃圾邮件过滤基本上达到了95%的成功率。

文档目录

1.安装系统
2.关闭selinux
3.设置YUM
4.安装mysql
5.安装apache
6.安装php
7.安装phpMyAdmin
8.设置数据库:
9.增加postfix的用户和组
10.安装postfix
11.安装Courier-authlib
12.设置authlib的环境变量
13.安装Courier-imap
14.配置系统
15.配置sasl认证
16.配置courier-imap
17.安装WebMail
18.启动服务测试
19.安装Clamav
20.升级病毒库
21.安装Spamassassin
22.安装MailScanner
23.设置MailScanner
24.测试病毒邮件


结束!


1.安装系统

安装之前:因用户数据都保存在/var目录下,因此安装系统时/var的空间应尽量大。系统的版本为最小化安装,软件包只安装只装开发包(development)。在文档中假设服务器的ip地址为192.168.0.2,域名为test.com,主机名为mail.test.com。所需的软件包我都打包好了。下载地址:http://www.toping.net/soft/src.tar.gz

请兄弟们仔细一些,注意空格和TAB

祝兄弟们好运。本人水平有限。如果发现文章中有什么错误和不当的地方请发邮件:scyz@toping.net。我会在第一时间给予答复。

2.关闭selinux

  1. [root@mail]# vi /etc/selinux/config
  2. SELINUX=disable
  3. [root@mail]# reboot
复制代码


3.设置YUM

  1. [root@mail yum.repos.d] vi CentOS-Base.repo
  2. [base]
  3. name=CentOS-4.2 - Base
  4. baseurl=http://mirror.be10.com/centos/4.2/os/$basearch/
  5. gpgcheck=1
  6. gpgkey=http://mirror.be10.com/centos/RPM-GPG-KEY-centos4


  7. #released updates
  8. [update]
  9. name=CentOS-4.2 - Updates
  10. baseurl=http://mirror.be10.com/centos/4.2/updates/$basearch/
  11. gpgcheck=1
  12. gpgkey=http://mirror.be10.com/centos/RPM-GPG-KEY-centos4


  13. #packages used/produced in the build but not released
  14. [addons]
  15. name=CentOS-4.2 - Addons
  16. baseurl=http://mirror.be10.com/centos/4.2/addons/$basearch/
  17. gpgcheck=1
  18. gpgkey=http://mirror.be10.com/centos/RPM-GPG-KEY-centos4


  19. #additional packages that may be useful
  20. [extras]
  21. name=CentOS-4.2 - Extras
  22. baseurl=http://mirror.be10.com/centos/4.2/extras/$basearch/
  23. gpgcheck=1
  24. gpgkey=http://mirror.be10.com/centos/RPM-GPG-KEY-centos4


  25. #additional packages that extend functionality of existing packages
  26. [centosplus]
  27. name=CentOS-4.2 - Plus
  28. baseurl=http://mirror.be10.com/centos/4.2/centosplus/$basearch/
  29. gpgcheck=1
  30. enabled=0
  31. gpgkey=http://mirror.be10.com/centos/RPM-GPG-KEY-centos4


  32. #contrib - packages by Centos Users
  33. [contrib]
  34. name=CentOS-4.2 - Contrib
  35. baseurl=http://mirror.be10.com/centos/4.2/contrib/$basearch/
  36. gpgcheck=1
  37. enabled=0
  38. gpgkey=http://mirror.be10.com/centos/RPM-GPG-KEY-centos4


  39. #packages in testing
  40. [testing]
  41. name=CentOS-4.2 - Testing
  42. baseurl=http://mirror.be10.com/centos/4.2/testing/$basearch/
  43. gpgcheck=1
  44. enabled=0
  45. gpgkey=http://mirror.be10.com/centos/RPM-GPG-KEY-centos4
复制代码



  1. [root@mail yum.repos.d]# vi dag.repo
  2. [dag]
  3. name=Dag RPM Repository for Red Hat Enterprise Linux
  4. baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
  5. gpgcheck=1
  6. enabled=1
复制代码


  1. [root@mail yum.repos.d]# yum update
复制代码


4.安装mysql

  1. [root@mail build]#yum install mysql-server
  2. [root@mail build]#yum install mysql-devel
复制代码


5.安装apache
  1. [root@mail build]#yum install httpd
复制代码


6.安装php

  1. [root@mail build]#yum install php
  2. [root@mail build]#yum install php-mysql
  3. [root@mail build]#yum install php-gd
  4. [root@mail build]#yum install php-imap
复制代码



  1. yum install vsftpd
  2. yum install clamav
  3. yum install spamassassin
  4. /usr/bin/freshclam
复制代码

设置apache
默认:
  1. User apache
复制代码

改为
  1. User postfix
复制代码


默认
  1. Group apache
复制代码

改为
  1. Group postfix
复制代码


默认
  1. AddDefaultCharset UTF-8
复制代码

改为
  1. AddDefaultCharset gb2312
复制代码


新加入:
  1. AddType application/x-httpd-php .php
  2. AddType application/x-httpd-php-source .phps
复制代码


7.安装phpMyAdmin

  1. [root@mail build]#tar –zxf ../src/phpMyAdmin-2.8.0.1.tar.gz
  2. [root@mail build]#mv phpMyAdmin-2.8.0.1 /var/www/html/dbadmin/
  3. [root@mail build]#cp /var/www/html/dbadmin/libraries/config.default.php /var/www/html/dbadmin/dbadmin/libraries/config.inc.php (line 1.)
复制代码


8.设置数据库
[

  1. root@mail build]#mysql
  2. Mysql> create datases postfix;
  3. Mysql> use mysql;
  4. Mysql> INSERT INTO user (host,user,password) VALUES('localhost','postfix','');
  5. Mysql> update user set password=password('postfix') where User='postfix';
  6. Mysql> GRANT ALL ON postfix.* TO postfix@localhost IDENTIFIED BY "postfix";
  7. Mysql> exit
  8. [root@mail build] tar –zxf ../src/webmail.tar.gz
  9. [root@mail build] mysql –u root –p postfix < Tmail.sql
复制代码


9.增加postfix的用户和组

  1. [root@mail build] groupadd -g 12345 postfix
  2. [root@mail build] useradd -u 12345 -g 12345 -c postfix -d/dev/null -s/sbin/nologin postfix
  3. [root@mail build] groupadd -g 54321 postdrop
复制代码


10.安装postfix

  1. [root@mail build] tar –zxf ../src/postfix-2.2.8.tar.gz
  2. [root@mail build] cd postfix-2.2.8
  3. [root@mail build] patch -p1 < ../../src/postfix-2.2.8-vda.patch
  4. [root@mail build] make -f Makefile.init makefiles \
  5. 'CCARGS=-DUSE_SASL_AUTH -DHAS_MYSQL -I/usr/include/mysql -I/usr/include/sasl' \
  6. 'AUXLIBS=-L/usr/lib/mysql -L/usr/lib/sasl2 -lmysqlclient -lsasl2 -lz -lm'
  7. [root@mail build] make
  8. [root@mail build] make install
复制代码
执行make install这里会出现很多问题,但postfix已经为我们设置好了默认的答案,直接使用这些答案就可以使postfix正常工作了,所以我们只要直接按回车就可以了

11.安装Courier-authlib

  1. [root@mail build] tar –jxf ../src/courier-authlib-0.58.tar.gz
  2. [root@mail build] cd courier-authlib-0.58
  3. [root@mail build] ./configure --prefix=/usr/lib/authlib --without-authpam \
  4. --without-authcustom --without-authpgsql --without-authldap \
  5. --without-authuserdb --without-authpwd --without-authshadow \
  6. --without-authvchkpw --with-authmysql \
  7. --with-authdaemonvar=/usr/lib/authlib/var \
  8. --mandir=/usr/lib/man --without-stdheaderdir \
  9. --sysconfdir=/usr/lib/authlib/etc \
  10. --with-redhat
  11. [root@mail build] make
  12. [root@mail build] make install
  13. [root@mail build] make install-migrate
  14. [root@mail build] make install-configure
复制代码
12.设置authlib的环境变量

  1. [root@mail build] COURIERAUTHCONFIG=/usr/lib/authlib/bin/courierauthconfig
  2. [root@mail build] export COURIERAUTHCONFIG
复制代码


13.安装Courier-imap

  1. [root@mail build] tar –jxf ../src/courier-imap-4.0.6.tar.gz
  2. [root@mail build] cd courier-imap-4.0.6
  3. [root@mail build] ./configure –prefix=/usr/lib/imapd \
  4. --silent --without-authpgsql --without-ipv6 \
  5. --with-redhat --with-authmysql \
  6. --mandir=/usr/lib/man --disable-root-check
  7. [root@mail build] make
  8. [root@mail build] make install
  9. [root@mail build] make install-configure
复制代码


14.配置系统

  1. [root@mail build] mv /etc/aliases /etc/aliases.bak
  2. [root@mail build] ln -s /etc/postfix/aliases /etc/aliases
  3. [root@mail build] echo 'root: postfix'>>/etc/postfix/aliases
  4. [root@mail build] /usr/bin/newaliases
  5. [root@mail build] mv /var/mail /var/mail.bak
  6. [root@mail build] mkdir /var/mail
  7. [root@mail build] chown -R postfix:postfix /var/mail
  8. [root@mail build] mv /etc/postfix/main.cf /etc/postfix/main.cf.bak
  9. [root@mail build] vi /etc/postfix/main.cf
  10. command_directory = /usr/sbin
  11. config_directory = /etc/postfix
  12. daemon_directory = /usr/libexec/postfix
  13. debug_peer_level = 2
  14. html_directory = no
  15. mail_owner = postfix
  16. mailq_path = /usr/bin/mailq
  17. manpage_directory = /usr/local/man
  18. newaliases_path = /usr/bin/newaliases
  19. queue_directory = /var/spool/postfix
  20. readme_directory = no
  21. sample_directory = /etc/postfix
  22. sendmail_path = /usr/sbin/sendmail
  23. setgid_group = postdrop
  24. unknown_local_recipient_reject_code = 550
  25. header_checks = regexp:/etc/postfix/header_checks
  26. #############NEW ADD#####################
  27. #=====================BASE=====================
  28. myhostname = mail.test.com
  29. mydomain = test.com
  30. mydestination = $myhostname
  31. local_recipient_maps =
  32. local_transport = virtual
  33. #=====================MySQL=====================
  34. virtual_alias_maps = mysql:/etc/postfix/mysql/mysql_virtual_alias_maps.cf
  35. virtual_gid_maps = static:54321
  36. virtual_mailbox_base = /
  37. virtual_mailbox_domains = mysql:/etc/postfix/mysql/mysql_virtual_domains_maps.cf
  38. virtual_mailbox_limit = 51200000
  39. virtual_mailbox_maps = mysql:/etc/postfix/mysql/mysql_virtual_mailbox_maps.cf
  40. virtual_minimum_uid = 125
  41. virtual_transport = virtual
  42. virtual_uid_maps = static:12345
  43. #=====================Quota=====================
  44. virtual_create_maildirsize = yes
  45. virtual_mailbox_extended = yes
  46. virtual_mailbox_limit_maps = mysql:/etc/postfix/mysql/mysql_virtual_mailbox_limit_maps.cf
  47. virtual_mailbox_limit_override = yes
  48. virtual_maildir_limit_message = Sorry, the user's maildir has overdrawn his diskspace quota, please try again later.
  49. virtual_overquota_bounce = yes
  50. #====================SASL=====================
  51. smtpd_sasl_auth_enable = yes
  52. smtpd_sasl_security_options = noanonymous
  53. broken_sasl_auth_clients = yes
  54. smtpd_delay_reject=yes
  55. smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,permit_auth_destination,reject
  56. smtpd_client_restrictions = permit_sasl_authenticated
复制代码



  1. [root@mail build] vi mysql_virtual_alias_maps.cf
  2. user = postfix
  3. password = postfix
  4. hosts = localhost
  5. dbname = postfix
  6. query = SELECT alias FROM userinfo WHERE address='%s' AND active = 1
复制代码



  1. [root@mail build] vi mysql_virtual_domains_maps.cf
  2. user = postfix
  3. password = postfix
  4. hosts = localhost
  5. dbname = postfix
  6. query = SELECT domain FROM domaininfo WHERE domain='%s'
复制代码



  1. [root@mail build] vi mysql_virtual_mailbox_limit_maps.cf
  2. user = postfix
  3. password = postfix
  4. hosts = localhost
  5. dbname = postfix
  6. query = SELECT quota FROM userinfo WHERE address='%s'
复制代码



  1. [root@mail build] vi mysql_virtual_mailbox_maps.cf
  2. user = postfix
  3. password = postfix
  4. hosts = localhost
  5. dbname = postfix
  6. query = SELECT maildir FROM userinfo WHERE address='%s' AND active = 1
复制代码


15.配置sasl认证

  1. [root@mail build] vi /usr/lib/sasl2/smtpd.conf
  2. pwcheck_method: authdaemond
  3. log_level: 3
  4. mech_list: plain login
  5. authdaemond_path:/usr/lib/authlib/var/socket
复制代码


16.配置courier-imap

  1. [root@mail build] mv /usr/lib/authlib/etc/authlib/authmysqlrc /usr/lib/authlib/etc/authlib/authmysqlrc.bak
  2. [root@mail build] vi /usr/lib/authlib/etc/authlib/authmysqlrc
  3. MYSQL_SERVER localhost
  4. MYSQL_USERNAME postfix
  5. MYSQL_PASSWORD postfix
  6. MYSQL_PORT 0
  7. MYSQL_OPT 0
  8. MYSQL_DATABASE postfix
  9. MYSQL_USER_TABLE userinfo
  10. MYSQL_CRYPT_PWFIELD passwd
  11. MYSQL_UID_FIELD '12345'
  12. MYSQL_GID_FIELD '54321'
  13. MYSQL_LOGIN_FIELD address
  14. MYSQL_HOME_FIELD homedir
  15. MYSQL_NAME_FIELD realname
  16. MYSQL_MAILDIR_FIELD maildir
  17. MYSQL_QUOTA_FIELD quota
复制代码



  1. [root@mail build] mv /usr/lib/authlib/etc/authlib/authdaemonrc /usr/lib/authlib/etc/authlib/authdaemonrc.bak
  2. [root@mail build] vi /usr/lib/authlib/etc/authlib/authdaemonrc
  3. authmodulelist="authmysql"
  4. authmodulelistorig="authmysql"
  5. version="authdaemond.mysql"
  6. daemons=5
  7. subsystem=mail
  8. DEBUG_LOGIN=0
  9. DEFAULTOPTIONS="wbnodsn=1"
复制代码



  1. [root@mail build] vi /usr/lib/imapd/etc/pop3d
  2. 默认
  3. POP3DSTART=NO
  4. 改为
  5. POP3DSTART=YES
  6. [root@mail build] vi /usr/lib/imapd/etc/imapd
  7. 默认
  8. IMAPDSTART=NO
  9. 改为
  10. IMAPDSTART=YES
  11. [root@mail build] chmod +x /usr/lib/authlib/var/
复制代码


17.安装WebMail

  1. [root@mail build] mv Tmail /var/www/html/webmail
  2. [root@mail build] vi /var/www/html/webmail/config/config_inc.php
  3. $CFG_BASEPATH = "/var/www/html/webmail/temp"; //临时目录
  4. // Mysql
  5. define(MYSQL_HOST, 'localhost'); //数据库主机名
  6. define(MYSQL_USER, 'postfix'); //数据库用户名
  7. define(MYSQL_PASS, 'postfix'); //数据库密码
  8. define(MYSQL_DATA, 'postfix'); //数据库名称
  9. $CFG_NETDISK_PATH = "/var/mail/netdisk"; //文件管理存储目录


  10. [root@mail build] vi /var/www/html/webmail/webadmin/include/config.inc.php
  11. // Mysql
  12. define(MYSQL_HOST, 'localhost'); //数据库主机名
  13. define(MYSQL_USER, 'postfix'); //数据库用户名
  14. define(MYSQL_PASS, 'postfix'); //数据库密码
  15. define(MYSQL_DATA, 'postfix'); //数据库名称
复制代码



  1. [root@mail build] mkdir /var/mail/netdisk
  2. [root@mail build] chown –R postfix:postfix /var/mail/netdisk
  3. [root@mail build] mkdir /var/www/html/webmail/temp
  4. [root@mail build] chown –R postfix:postfix /var/www/html/webmail/temp


  5. [root@mail build] cp courier-authlib-0.58/courier-authlib.sysvinit /etc/rc.d/init.d/courier-authlib
  6. [root@mail build] chmod 755 /etc/rc.d/init.d/courier-authlib
  7. [root@mail build] chkconfig –-add courier-authlib
  8. [root@mail build] cp courier-imap-4.0.6/courier-imap.sysvinit /etc/rc.d/init.d/courier-imap
  9. [root@mail build] chmod 755 /etc/rc.d/init.d/courier-imap
  10. [root@mail build] chkconfig –-add courier-imap
复制代码


18.启动服务测试

  1. [root@mail build] chkconfig httpd on
  2. [root@mail build] chkconfig mysqld on
  3. [root@mail build] service httpd start
  4. [root@mail build] service mysqld start
  5. [root@mail build] service courier-authlib start
  6. [root@mail build] service courier-imap start
  7. [root@mail build] postfix start
复制代码
通过后台加入域名和用户名(本文档中的域名为:test.com、用户名:test@test.com

  1. [root@mail build] perl -MMIME::Base64 -e 'print encode_base64("test\@test.com");'
  2. dGVzdEB0ZXN0LmNvbQ==
  3. [root@mail build] perl -MMIME::Base64 -e 'print encode_base64("000000");'
  4. MDAwMDAw
复制代码
[root@mail build]

  1. telnet localhost 25
  2. Trying 127.0.0.1...
  3. Connected to localhost.localdomain (127.0.0.1).
  4. Escape character is '^]'.
  5. 220 mail.test.com ESMTP Postfix
  6. ehlo mail
  7. 250-mail.test.com
  8. 250-PIPELINING
  9. 250-SIZE 10240000
  10. 250-VRFY
  11. 250-ETRN
  12. 250-AUTH PLAIN LOGIN
  13. 250-AUTH=PLAIN LOGIN
  14. 250 8BITMIME
  15. auth login
  16. 334 VXNlcm5hbWU6
  17. dGVzdEB0ZXN0LmNvbQ== //用户名(test@test.com)
  18. 334 UGFzc3dvcmQ6
  19. MDAwMDAw // 密码(000000)
  20. 235 Authentication successful //表示成功验证通过
复制代码


19.安装Clamav


  1. [root@mail build] rpm --import http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt
  2. [root@mail build] rpm --import RPM-GPG-KEY.dag.txt
  3. [root@mail build] rpm -q gpg-pubkey --qf "%{summary} -> %{version}-%{release}\n"
  4. gpg(CentOS-4 key <centos-4key@centos.org>) -> 443e1821-421f218f
  5. gpg(Dag Wieers (Dag Apt Repository v1.0) <dag@wieers.com>) -> 6b8d79e6-3f49313d
复制代码



  1. [root@mail build] vi /etc/yum.repos.d/dag.repo
  2. [dag]
  3. name=Dag RPM Repository for Red Hat Enterprise Linux
  4. baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
  5. gpgcheck=1
  6. enabled=1


  7. [root@mail build] yum update
  8. [root@mail build] yum install clamav
复制代码
20.升级病毒库

  1. [root@mail build] /usr/bin/freshclam
  2. ClamAV update process started at Thu Mar 9 17:23:21 2006
  3. main.cvd is up to date (version: 36, sigs: 44686, f-level: 7, builder: tkojm)
  4. daily.cvd is up to date (version: 1319, sigs: 1376, f-level: 7, builder: ccordes)
复制代码


21.安装Spamassassin

  1. [root@mail build] yum install spamassassin
  2. [root@mail build] service spamassassin start
复制代码


22.安装MailScanner

  1. [root@mail build] tar –zxf ../src/MailScanner-4.51.5-1.rpm.tar.gz
  2. [root@mail build] MailScanner-4.51.5-1/install.sh
复制代码


23.设置MailScanner

  1. [root@mail build] chkconfig sendmail off
  2. [root@mail build] chkconfig --level 2345 MailScanner on
  3. [root@mail build] vi /etc/MailScanner/MailScanner.conf
  4. %org-name% = toping.net
  5. %org-long-name% = wooxian
  6. %web-site% = www.toping.net
  7. %report-dir% = /etc/MailScanner/reports/cn
  8. Run As User = postfix
  9. Run As Group = postfix
  10. Incoming Queue Dir = /var/spool/postfix/hold
  11. Outgoing Queue Dir = /var/spool/postfix/incoming
  12. MTA = postfix
  13. Virus Scanners = clamav
  14. Always Include SpamAssassin Report = yes
  15. Use SpamAssassin = yes
  16. Required SpamAssassin Score = 6
  17. SpamAssassin User State Dir = /var/spool/MailScanner/spamassassin
  18. SpamAssassin Install Prefix = /usr/bin
  19. SpamAssassin Local Rules Dir = /etc/MailScanner
复制代码



  1. [root@mail build] yum install unrar
  2. [root@mail build] unrar x ../src/cn.rar
  3. [root@mail build] mv cn /etc/MailScanner/reports/
  4. [root@mail build] mv /etc/postfix/header_check /etc/postfix/header_check.bak
  5. [root@mail build] vi /etc/postfix/header_check
  6. /^Received:/ HOLD
  7. [root@mail build] chown –R postfix:postfix /var/spool/MailScanner/*
  8. [root@mail build] postfix stop
  9. [root@mail build] service MailScanner start
复制代码


24.测试病毒邮件

  1. [root@mail build] telnet localhost 25
  2. Trying 127.0.0.1...
  3. Connected to localhost.localdomain (127.0.0.1).
  4. Escape character is '^]'.
  5. 220 mail.test.com ESMTP Postfix
  6. ehlo mail
  7. 250-mail.test.com
  8. 250-PIPELINING
  9. 250-SIZE 10240000
  10. 250-VRFY
  11. 250-ETRN
  12. 250-AUTH PLAIN LOGIN
  13. 250-AUTH=PLAIN LOGIN
  14. 250 8BITMIME
  15. auth login
  16. 334 VXNlcm5hbWU6
  17. dGVzdEB0ZXN0LmNvbQ== //用户名(test@test.com)
  18. 334 UGFzc3dvcmQ6
  19. MDAwMDAw // 密码(000000)
  20. 235 Authentication successful //表示成功验证通过
  21. MAIL FROM:<test@test.com>
  22. 250 Ok
  23. RCPT TO:<test@test.com>
  24. 250 Ok
  25. DATA
  26. 354 End data with <CR><LF>.<CR><LF>
  27. Subject:Virus test

  28. X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*

  29. .
  30. 250 Ok: queued as F0C221CC20     //出现F0C221CC20这行表示mailscanner运行成功了
  31. quit
  32. 221 Bye
  33. Connection closed by foreign host.
复制代码


收到邮件后会在主题会变成:{Virus?} Virus test
邮件内容会是以下内容:
警告: 此邮件有一个或多个附加档案被移除
警告: 附加档案名称: (详细讯息).
警告: 请参考此信件附加档案 "toping.net-Attachment-Warning.txt" 取得更详细的资料

此讯息由 MailScanner 电子邮件防护系统发出
--------------------------------------------------------------------
原有邮件附加档案为 "详细讯息" 被列入拒绝处理的名单.
且被替换为此讯息.

若您仍希望收到*被感染的*附加档案,,请联络系统管理者.包含以下内容:

Thu Mar 9 15:57:25 2006
病毒侦测报告:
ClamAV: msg-3682-1.txt contains Eicar-Test-Signature


求助问题: 检查 the toping.net () MailScanner 机器的 /var/spool/MailScanner/quarantine/20060309 (编号 639F13F97B.BBC3F).
--
系统管理者

以上内容出现表示mailscanner的病毒过滤生效。并成功运行!!

到此一台具有反垃圾和反病毒的邮件服务器建成了,希望我的文档对邮件服务器爱好者能有所帮助~!如果文档中有任何问题可以发邮件给我指出来我会马上改正。谢谢大家!祝大家好运!!scyz at toping.net
强烈支持!
yum install clamav
好像不行哦
引用第2楼szjxy2006-03-10 09:09发表的“”:
yum install clamav
好像不行哦
加入dag.repo
[s:1]
非常感谢老大
好,非常感谢!!
[s:1]
yum install clamav 怎么加入dag.repo啊
]#mv phpMyAdmin-2.8.0.1 /var/www/html/dbadmin/
[root@mail build]#cp /var/www/html/dbadmin/libraries/config.default.php /var/www/html/dbadmin/dbadmin/libraries/config.inc.php (line 1.)

/var/www/html/dbadmin下的dbadmin目录没有啊,是不是要自己建立
暂时还没有用 LINUX 搭建WEBMAIL 的设想,不过不久就有规划,估计会上很多 LINUX 服务器。 [s:1]  [s:2]  [s:2]
返回列表
开源邮件服务器 开源邮件服务器 web 开源邮件 开源 mail 开源 邮件服务器 邮件技术 mail技术 反垃圾邮件 反垃圾mail mail投递
邮件服务器 mail服务器 开源软件 mail软件 mail服务新品牌 开源邮件服务新品牌
开源mail服务新网站 邮件服务新品牌 mail tmail mailserver 163邮件 sendmail |Linux维护|Linux代维|成都Linux维护|成都Linux代维