Ê×Ò³ | Óʼþ×ÊѶ | ¼¼Êõ½Ì³Ì | ½â¾ö·½°¸ | ²úÆ·ÆÀ²â | ÓʼþÈ˲Š| Óʼþ²©¿Í | ÓʼþϵͳÂÛ̳ | Èí¼þÏÂÔØ | ÓʼþÖÜ¿¯ | ÈȵãרÌâ | ¹¤¾ß
ÍøÂç¼¼Êõ | ²Ù×÷ϵͳ | Óʼþϵͳ | ¿Í»§¶Ë | µç×ÓÓÊÏä | ·´À¬»øÓʼþ | Óʼþ°²È« | ÓʼþÓªÏú | ÒÆ¶¯µçÓÊ | ÓʼþÈí¼þÏÂÔØ | µç×ÓÊéÏÂÔØ

Óʼþ·þÎñÆ÷

¼¼ÊõÇ°ÑØ | Exchange | Domino | Sendmail | Postfix | Qmail | IMail | MDaemon | Foxmail | James | Kerio | JavaMail | WinMail | Winwebmail | Merak | CMailServer | ½ðµÑ | ÆäËü | ÓʼþÓ뿪·¢ |
Ê×Ò³ > Óʼþ·þÎñÆ÷ > Postfix > »ùÓÚLinuxºÍPostfixÓʼþϵͳweb mail°²×°ÊÖ²á > ÕýÎÄ

»ùÓÚLinuxºÍPostfixÓʼþϵͳweb mail°²×°ÊÖ²á

³ö´¦£º¿ªÔ´Óʼþ¼¼ÊõÉçÇø ×÷Õߣºjacky ʱ¼ä£º2006-10-24 12:35:00
------------------------------------------------------------------------------------------------------
ÐÂÔöʹÓÃmailscannerÀ´¶Ô½ø³öÓʼþ½øÐмà¹Ü¡£new
ÐÞÕýÉÏÒ»¸ö°æ±¾µÄһЩÀí½âÐÔºÍÎļþÐÔ´íÎó¡£
Ö÷Òª¡°¼ÓÇ¿¡±Á˲¡¶¾¹ýÂ˺ÍÀ¬»øÓʼþ¹ýÂË£¬¸ü¼Ó½ÚԼϵͳ×ÊÔ´£¬Ê¹ÏµÍ³ÅäÖøü¼òµ¥»¯¡£
À¬»øÓʼþ¹ýÂË»ù±¾ÉÏ´ïµ½ÁË95%µÄ³É¹¦ÂÊ
±¾ÎÄÊ×´ÎʹÓÃMailScanner+ClamavÅäºÏ¶ÔÓʼþ²¡¶¾½øÐйýÂË¡£
¾­¹ýÑϸñ²¡¶¾Óʼþ²âÊԳɹ¦ÂÊ´ïµ½ÁË100%¡£
·­ÒëÁ˲¡¶¾ÓʼþÌáʾΪÖÐÎÄÌáʾ£¬ÈÃϵͳ¸ü¼ÓµÄÈËÐÔ»¯¡£

ÑÝʾ£º
http://mail.toping.net
Óû§Ãû£ºdemo@toping.net
ÃÜ¡¡Â룺demo
------------------------------------------------------------------------------------------------------
Linux+Postfix+Cyrus-sasl+Courier-imap+Tmail3.0+spamassassin+Clamav+mailscanner

ÑîÍ¢ÓÂ

Copyright © 2004¡¢2005¡¢2006

±¾ÎĽéÉÜʹÓÃ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À´¶Ô²¡¶¾¹ýÂ˺ÍÀ¬»øÓʼþ¹ýÂË¡£

±¾ÎÄÔÚCentOS¡¢REDHATasÉϰ²×°²âÊÔͨ¹ý£¬²¡¶¾¹ýÂË·ÅÆú²ÉÓÃ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
[root@mail]# vi /etc/selinux/config
SELINUX=disable
[root@mail]# reboot

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

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

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

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

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

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

#packages in testing
[testing]
name=CentOS-4.2 - Testing
baseurl=http://mirror.be10.com/centos/4.2/testing/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.be10.com/centos/RPM-GPG-KEY-centos4

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

[root@mail yum.repos.d]# yum update

4.°²×°mysql
[root@mail build]#yum install mysql-server
[root@mail build]#yum install mysql-devel

5.°²×°apache
[root@mail build]#yum install httpd

6.°²×°php
[root@mail build]#yum install php
[root@mail build]#yum install php-mysql
[root@mail build]#yum install php-gd
[root@mail build]#yum install php-imap

yum install vsftpd
yum install clamav
yum install spamassassin
/usr/bin/freshclam
ÉèÖÃapache
ĬÈÏ£º
User apache
¸ÄΪ
User postfix

ĬÈÏ
Group apache
¸ÄΪ
Group postfix

ĬÈÏ
AddDefaultCharset UTF-8
¸ÄΪ
AddDefaultCharset gb2312

мÓÈ룺
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

7.°²×°phpMyAdmin
[root@mail build]#tar ¨Czxf ../src/phpMyAdmin-2.8.0.1.tar.gz
[root@mail build]#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.)

8.ÉèÖÃÊý¾Ý¿â
[root@mail build]#mysql
Mysql> create datases postfix;
Mysql> use mysql;
Mysql> INSERT INTO user (host,user,password) VALUES('localhost','postfix','');
Mysql> update user set password=password('postfix') where User='postfix';
Mysql> GRANT ALL ON postfix.* TO postfix@localhost IDENTIFIED BY "postfix";
Mysql> exit
[root@mail build] tar ¨Czxf ../src/webmail.tar.gz
[root@mail build] mysql ¨Cu root ¨Cp postfix < Tmail.sql

9.Ôö¼ÓpostfixµÄÓû§ºÍ×é
[root@mail build] groupadd -g 12345 postfix
[root@mail build] useradd -u 12345 -g 12345 -c postfix -d/dev/null -s/sbin/nologin postfix
[root@mail build] groupadd -g 54321 postdrop

10.°²×°postfix
[root@mail build] tar ¨Czxf ../src/postfix-2.2.8.tar.gz
[root@mail build] cd postfix-2.2.8
[root@mail build] patch -p1 < ../../src/postfix-2.2.8-vda.patch
[root@mail build] make -f Makefile.init makefiles \n'CCARGS=-DUSE_SASL_AUTH -DHAS_MYSQL -I/usr/include/mysql -I/usr/include/sasl' \n'AUXLIBS=-L/usr/lib/mysql -L/usr/lib/sasl2 -lmysqlclient -lsasl2 -lz -lm'
[root@mail build] make
[root@mail build] make install
Ö´ÐÐmake installÕâÀï»á³öÏֺܶàÎÊÌ⣬µ«postfixÒѾ­ÎªÎÒÃÇÉèÖúÃÁËĬÈϵĴ𰸣¬Ö±½ÓʹÓÃÕâЩ´ð°¸¾Í¿ÉÒÔʹpostfixÕý³£¹¤×÷ÁË£¬ËùÒÔÎÒÃÇÖ»ÒªÖ±½Ó°´»Ø³µ¾Í¿ÉÒÔÁË

11.°²×°Courier-authlib
[root@mail build] tar ¨Cjxf ../src/courier-authlib-0.58.tar.gz
[root@mail build] cd courier-authlib-0.58
[root@mail build] ./configure --prefix=/usr/lib/authlib --without-authpam \n--without-authcustom --without-authpgsql --without-authldap \n--without-authuserdb --without-authpwd --without-authshadow \n--without-authvchkpw --with-authmysql \n--with-authdaemonvar=/usr/lib/authlib/var \n--mandir=/usr/lib/man --without-stdheaderdir \n--sysconfdir=/usr/lib/authlib/etc \n--with-redhat
[root@mail build] make
[root@mail build] make install
[root@mail build] make install-migrate
[root@mail build] make install-configure
12.ÉèÖÃauthlibµÄ»·¾³±äÁ¿
[root@mail build] COURIERAUTHCONFIG=/usr/lib/authlib/bin/courierauthconfig
[root@mail build] export COURIERAUTHCONFIG

13.°²×°Courier-imap
[root@mail build] tar ¨Cjxf ../src/courier-imap-4.0.6.tar.gz
[root@mail build] cd courier-imap-4.0.6
[root@mail build] ./configure ¨Cprefix=/usr/lib/imapd \n--silent --without-authpgsql --without-ipv6 \n--with-redhat --with-authmysql \n--mandir=/usr/lib/man --disable-root-check
[root@mail build] make
[root@mail build] make install
[root@mail build] make install-configure

14.ÅäÖÃϵͳ
[root@mail build] mv /etc/aliases /etc/aliases.bak
[root@mail build] ln -s /etc/postfix/aliases /etc/aliases
[root@mail build] echo 'root: postfix'>>/etc/postfix/aliases
[root@mail build] /usr/bin/newaliases
[root@mail build] mv /var/mail /var/mail.bak
[root@mail build] mkdir /var/mail
[root@mail build] chown -R postfix:postfix /var/mail
[root@mail build] mv /etc/postfix/main.cf /etc/postfix/main.cf.bak
[root@mail build] vi /etc/postfix/main.cf
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
html_directory = no
mail_owner = postfix
mailq_path = /usr/bin/mailq
manpage_directory = /usr/local/man
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = no
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
unknown_local_recipient_reject_code = 550
header_checks = regexp:/etc/postfix/header_checks
#############NEW ADD#####################
#=====================BASE=====================
myhostname = mail.test.com
mydomain = test.com
mydestination = $myhostname
local_recipient_maps =
local_transport = virtual
#=====================MySQL=====================
virtual_alias_maps = mysql:/etc/postfix/mysql/mysql_virtual_alias_maps.cf
virtual_gid_maps = static:54321
virtual_mailbox_base = /
virtual_mailbox_domains = mysql:/etc/postfix/mysql/mysql_virtual_domains_maps.cf
virtual_mailbox_limit = 51200000
virtual_mailbox_maps = mysql:/etc/postfix/mysql/mysql_virtual_mailbox_maps.cf
virtual_minimum_uid = 125
virtual_transport = virtual
virtual_uid_maps = static:12345
#=====================Quota=====================
virtual_create_maildirsize = yes
virtual_mailbox_extended = yes
virtual_mailbox_limit_maps = mysql:/etc/postfix/mysql/mysql_virtual_mailbox_limit_maps.cf
virtual_mailbox_limit_override = yes
virtual_maildir_limit_message = Sorry, the user's maildir has overdrawn his diskspace quota, please try again later.
virtual_overquota_bounce = yes
#====================SASL=====================
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_delay_reject=yes
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,permit_auth_destination,reject
smtpd_client_restrictions = permit_sasl_authenticated

[root@mail build] vi mysql_virtual_alias_maps.cf
user = postfix
password = postfix
hosts = localhost
dbname = postfix
query = SELECT alias FROM userinfo WHERE address='%s' AND active = 1

[root@mail build] vi mysql_virtual_domains_maps.cf
user = postfix
password = postfix
hosts = localhost
dbname = postfix
query = SELECT domain FROM domaininfo WHERE domain='%s'

[root@mail build] vi mysql_virtual_mailbox_limit_maps.cf
user = postfix
password = postfix
hosts = localhost
dbname = postfix
query = SELECT quota FROM userinfo WHERE address='%s'

[root@mail build] vi mysql_virtual_mailbox_maps.cf
user = postfix
password = postfix
hosts = localhost
dbname = postfix
query = SELECT maildir FROM userinfo WHERE address='%s' AND active = 1

15.ÅäÖÃsaslÈÏÖ¤
[root@mail build] vi /usr/lib/sasl2/smtpd.conf
pwcheck_method: authdaemond
log_level: 3
mech_list: plain login
authdaemond_path:/usr/lib/authlib/var/socket

16.ÅäÖÃcourier-imap
[root@mail build] mv /usr/lib/authlib/etc/authlib/authmysqlrc /usr/lib/authlib/etc/authlib/authmysqlrc.bak
[root@mail build] vi /usr/lib/authlib/etc/authlib/authmysqlrc
MYSQL_SERVER   localhost
MYSQL_USERNAME postfix
MYSQL_PASSWORD postfix
MYSQL_PORT     0
MYSQL_OPT     0
MYSQL_DATABASE postfix
MYSQL_USER_TABLE     userinfo
MYSQL_CRYPT_PWFIELD   passwd
MYSQL_UID_FIELD '12345'
MYSQL_GID_FIELD '54321'
MYSQL_LOGIN_FIELD     address
MYSQL_HOME_FIELD     homedir
MYSQL_NAME_FIELD     realname
MYSQL_MAILDIR_FIELD   maildir
MYSQL_QUOTA_FIELD     quota

[root@mail build] mv /usr/lib/authlib/etc/authlib/authdaemonrc /usr/lib/authlib/etc/authlib/authdaemonrc.bak
[root@mail build] vi /usr/lib/authlib/etc/authlib/authdaemonrc
authmodulelist="authmysql"
authmodulelistorig="authmysql"
version="authdaemond.mysql"
daemons=5
subsystem=mail
DEBUG_LOGIN=0
DEFAULTOPTIONS="wbnodsn=1"

[root@mail build] vi /usr/lib/imapd/etc/pop3d
ĬÈÏ
POP3DSTART=NO
¸ÄΪ
POP3DSTART=YES
[root@mail build] vi /usr/lib/imapd/etc/imapd
ĬÈÏ
IMAPDSTART=NO
¸ÄΪ
IMAPDSTART=YES
[root@mail build] chmod +x /usr/lib/authlib/var/

17.°²×°WebMail
[root@mail build] mv Tmail /var/www/html/webmail
[root@mail build] vi /var/www/html/webmail/config/config_inc.php
$CFG_BASEPATH = "/var/www/html/webmail/temp"; //ÁÙʱĿ¼
// Mysql
define(MYSQL_HOST, 'localhost'); //Êý¾Ý¿âÖ÷»úÃû
define(MYSQL_USER, 'postfix'); //Êý¾Ý¿âÓû§Ãû
define(MYSQL_PASS, 'postfix'); //Êý¾Ý¿âÃÜÂë
define(MYSQL_DATA, 'postfix'); //Êý¾Ý¿âÃû³Æ
$CFG_NETDISK_PATH = "/var/mail/netdisk"; //Îļþ¹ÜÀí´æ´¢Ä¿Â¼

[root@mail build] vi /var/www/html/webmail/webadmin/include/config.inc.php
// Mysql
define(MYSQL_HOST, 'localhost'); //Êý¾Ý¿âÖ÷»úÃû
define(MYSQL_USER, 'postfix'); //Êý¾Ý¿âÓû§Ãû
define(MYSQL_PASS, 'postfix'); //Êý¾Ý¿âÃÜÂë
define(MYSQL_DATA, 'postfix'); //Êý¾Ý¿âÃû³Æ

[root@mail build] mkdir /var/mail/netdisk
[root@mail build] chown ¨CR postfix:postfix /var/mail/netdisk
[root@mail build] mkdir /var/www/html/webmail/temp
[root@mail build] chown ¨CR postfix:postfix /var/www/html/webmail/temp

[root@mail build] cp courier-authlib-0.58/courier-authlib.sysvinit /etc/rc.d/init.d/courier-authlib
[root@mail build] chmod 755 /etc/rc.d/init.d/courier-authlib
[root@mail build] chkconfig ¨C-add courier-authlib
[root@mail build] cp courier-imap-4.0.6/courier-imap.sysvinit /etc/rc.d/init.d/courier-imap
[root@mail build] chmod 755 /etc/rc.d/init.d/courier-imap
[root@mail build] chkconfig ¨C-add courier-imap

18.Æô¶¯·þÎñ²âÊÔ
[root@mail build] chkconfig httpd on
[root@mail build] chkconfig mysqld on
[root@mail build] service httpd start
[root@mail build] service mysqld start

[root@mail build] service courier-authlib start
[root@mail build] service courier-imap start
[root@mail build] postfix start
ͨ¹ýºǫ́¼ÓÈëÓòÃûºÍÓû§Ãû£¨±¾ÎĵµÖеÄÓòÃûΪ:test.com¡¢Óû§Ãû£º
test@test.com£©
[root@mail build] perl -MMIME::Base64 -e 'print encode_base64("test@test.com");'
dGVzdEB0ZXN0LmNvbQ==
[root@mail build] perl -MMIME::Base64 -e 'print encode_base64("000000");'
MDAwMDAw
[root@mail build] telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 mail.test.com ESMTP Postfix
ehlo mail
250-mail.test.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN
250 8BITMIME
auth login
334 VXNlcm5hbWU6
dGVzdEB0ZXN0LmNvbQ==   //Óû§Ãû£¨
test@test.com£©
334 UGFzc3dvcmQ6
MDAwMDAw           // ÃÜÂ루000000£©
235 Authentication successful //±íʾ³É¹¦Ñé֤ͨ¹ý

19.°²×°Clamav

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

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

[root@mail build] yum update
[root@mail build] yum install clamav
20.Éý¼¶²¡¶¾¿â
[root@mail build] /usr/bin/freshclam
ClamAV update process started at Thu Mar 9 17:23:21 2006
main.cvd is up to date (version: 36, sigs: 44686, f-level: 7, builder: tkojm)
daily.cvd is up to date (version: 1319, sigs: 1376, f-level: 7, builder: ccordes)

21.°²×°Spamassassin
[root@mail build] yum install spamassassin
[root@mail build] service spamassassin start

22.°²×°MailScanner
[root@mail build] tar ¨Czxf ../src/MailScanner-4.51.5-1.rpm.tar.gz
[root@mail build] MailScanner-4.51.5-1/install.sh

23.ÉèÖÃMailScanner
[root@mail build] chkconfig sendmail off
[root@mail build] chkconfig --level 2345 MailScanner on
[root@mail build] vi /etc/MailScanner/MailScanner.conf
%org-name% = toping.net
%org-long-name% = wooxian
%web-site% =
www.toping.net
%report-dir% = /etc/MailScanner/reports/cn
Run As User = postfix
Run As Group = postfix
Incoming Queue Dir = /var/spool/postfix/hold
Outgoing Queue Dir = /var/spool/postfix/incoming
MTA = postfix
Virus Scanners = clamav
Always Include SpamAssassin Report = yes
Use SpamAssassin = yes
Required SpamAssassin Score = 6
SpamAssassin User State Dir = /var/spool/MailScanner/spamassassin
SpamAssassin Install Prefix = /usr/bin
SpamAssassin Local Rules Dir = /etc/MailScanner

[root@mail build] yum install unrar
[root@mail build] unrar x ../src/cn.rar
[root@mail build] mv cn /etc/MailScanner/reports/
[root@mail build] mv /etc/postfix/header_check /etc/postfix/header_check.bak
[root@mail build] vi /etc/postfix/header_check
/^Received:/ HOLD
[root@mail build] chown ¨CR postfix:postfix /var/spool/MailScanner/*
[root@mail build] postfix stop
[root@mail build] service MailScanner start

24.²âÊÔ²¡¶¾Óʼþ
[root@mail build] telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 mail.test.com ESMTP Postfix
ehlo mail
250-mail.test.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN
250 8BITMIME
auth login
334 VXNlcm5hbWU6
dGVzdEB0ZXN0LmNvbQ==   //Óû§Ãû£¨
test@test.com£©
334 UGFzc3dvcmQ6
MDAwMDAw           // ÃÜÂ루000000£©
235 Authentication successful //±íʾ³É¹¦Ñé֤ͨ¹ý
MAIL FROM:<
test@test.com>
250 Ok
RCPT TO:<
test@test.com>
250 Ok
DATA
354 End data with <CR><LF>.<CR><LF>
Subject:Virus test

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

.
250 Ok: queued as F0C221CC20   //³öÏÖF0C221CC20ÕâÐбíʾmailscannerÔËÐгɹ¦ÁË
quit
221 Bye
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

Ïà¹ØÎÄÕ ÈÈÃÅÎÄÕÂ
  • 9.4 Æô¶¯ºÍÍ£Ö¹Postfix·þÎñ
  • 9.3.1 postfix·þÎñµÄ»ù±¾ÅäÖÃ
  • 9.2 PostfixÓʼþ·þÎñµÄ°²×°
  • 18.16 PostfixÓʼþϵͳ
  • ÕýÈ·ÅäÖÃPostfixÀ´×èÖ¹À¬»øÓʼþ
  • Postfix µç×ÓÓʼþϵͳ¾«Òª
  • PostfixÅäÖÃStep By Step£¨Íê³Éƪ£©
  • PostfixÅäÖÃStep By Step£¨Èý£©
  • PostfixÅäÖÃStep By Step£¨¶þ£©
  • PostfixÅäÖÃStep By Step£¨Ò»£©
  • PostfixÓʼþϵͳµÄ°²×°ÓëÅäÖÃ
  • ÓÃPostfix¼ÜÉèFreeBSDÏÂÖÐС¹æÄ£Óʼþϵͳ
  • Install and configure Postfix with Cyrus-SASL+Cyru..
  • ÔÚFreeBSDÉϽ¨Á¢Ò»¸ö¹¦ÄÜÍêÕûµÄÓʼþ·þÎñÆ÷
  • postfix Óʼþ²¡¶¾¹ýÂË
  • ÔÚFedoraÉϽ¨Á¢×Ô¼ºµÄÓʼþ·þÎñÆ÷
  • Postfix + SpamAssassin °²ÑbÊÖƒÔ
  • Postfix + Courier-IMAP + Cyrus-SASL + MySQL + IMPÍ..
  • Postfix + Cyrus-SASL + Cyrus-IMAPD + PgSQL HOWTO
  • ÔÚFreeBSD5.1º††Î°²ÑbPostfix+Qpopper+Openwebmail
  • ÔÚRHEL 4 ÉÏÅäÖÃÈ«¹¦ÄܵÄPostfix ·þÎñÆ÷
  • Postfix + Cyrus-IMAP + Cyrus-SASL + MySQL + IMP Íê..
  • ÎÒµÄPOSTFIX°²×°±Ê¼Ç
  • Postfixµç×ÓÓʾֵÄÅäÖò½Öè
  • ×ÔÓÉ¹ã¸æÇø
    ¡¡
     
    ×îÐÂÈí¼þÏÂÔØ
  • ORF Enterprise Edition 4.2 Õýʽ°æ
  • WinWebMail 3.7.7.3 ±ê×¼°æ
  • WinWebMail 3.7.7.3 ÆóÒµ°æ
  • BMailì÷ÓÊ
  • Merak Email Server for Windows 9.3.1..
  • Merak Email Server for Linux 9.3.1 ¼..
  • Merak Email Server 9.3.1 For Windwos..
  • AXIGEN Mail Server 6.1.1 for Windows
  • AXIGEN Mail Server 6.1.0 for Linux
  • ADModify.NETÏÂÔØ
  • symantec10.1»ù±¾°²×°¼°ÅäÖÃÊÓÆµ½Ì³Ì
  • Backup Exec System RecoveryÖ®±¸·ÝÊÓÆ..
  • ½ñÈÕÓʼþ¼¼ÊõÎÄÕÂ
  • ÃÀ´óѧÉúÇÖÈëÅåÁÖÖݳ¤¸öÈËÓʼþÕË»§±»´þ²¶
  • ˼¿ÆIronPort·¢²¼Ðµç×ÓÓʼþ°²È«É豸
  • Éî¸û"Èí¼þ+·þÎñ" ΢Èí300³ÇÊÐѲչî£ÓÊ
  • ´ÓºÚ¿Í³£Óù¥»÷Êֶο´WEBÓ¦Ó÷À»¤
  • ÏûÏ¢ÈËʿ͸¶ÑÅ»¢ÓëAOLºÏ²¢Ï¸½Ú½«ÓÚ±¾Ô..
  • ¹È¸èÌṩµÄµç×ÓÓʼþ´æµµÊ±¼äÑÓ³¤ÎªÊ®Äê
  • ÑÅ»¢½«ÔÚÓÊÏä·þÎñÖÐÕûºÏаæÔÚÏßÈÕÀú
  • 9ÔÂÀ¬»øÓʼþ×ÜÁ¿¼õÉÙ ÓëISPµ¹±ÕÓйØ
  • À¬»øÓʼþ·¢Õ¹µÄËÄ´óÇ÷ÊÆ
  • º«¹úÒéÔ±³ÆÖйúºÚ¿Íð³äÇàÍß̨·¢ËͲ¡¶¾..
  • VistaÄÑ³ÉÆøºò Windows XPÊÙÃü±»ÑÓ³¤
  • ÈüÃÅÌú¿ËÉý¼¶DLP²úÆ·¼°·´À¬»øÓʼþÍø¹Ø
  • ×îÐÂרÌâ
  • 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ÓªÏú | ÍøÂçÓªÏú | ÓªÏú¼¼ÇÉ |ÓªÏú°¸Àý
    ÓʼþÈ˲Å:ÕÐÆ¸ | Ö°³¡ | Åàѵ | Ö¸ÄÏ | Ö°³¡
    ½â¾ö·½°¸:
    Óʼþϵͳ|·´À¬»øÓʼþ |°²È« |ÒÆ¶¯µçÓÊ |Õбê
    ²úÆ·ÆÀ²â:
    Óʼþϵͳ |·´À¬»øÓʼþ |ÓÊÏä |°²È« |¿Í»§¶Ë
    ¹ã¸æÁªÏµ | ºÏ×÷ÁªÏµ | ¹ØÓÚÎÒÃÇ | ÁªÏµÎÒÃÇ | ·±ówÖÐÎÄ
    °æÈ¨ËùÓУºÓʼþ¼¼Êõ×ÊÑ¶Íø©2003-2007 www.5dmail.net, All Rights Reserved
    www.5Dmail.net Web Team   ÔÁICP±¸05009143ºÅ