当前位置: 首页 > 工具软件 > EMOS > 使用案例 >

关掉EMOS的反病毒及反垃圾服务。

龚奇逸
2023-12-01
由于搭建的EMOS邮件系统,采用了邮件网关,postfix收发邮件网关都会进行防病毒和反垃圾邮件处理。因此,EMOS自带的防病毒和反垃圾邮件功能就需要停止,顺便提高postfix收发邮件的性能。
[root@mail postfix]# chkconfig --list     
amavisd         0:off   1:off   2:on    3:on    4:on    5:on    6:off
clamd           0:off   1:off   2:on    3:on    4:on    5:on    6:off
courier-authlib 0:off   1:off   2:on    3:on    4:on    5:on    6:off
courier-imap    0:off   1:off   2:on    3:on    4:on    5:on    6:off
crond           0:off   1:off   2:on    3:on    4:on    5:on    6:off
dspam-webd      0:off   1:off   2:on    3:on    4:on    5:on    6:off
dspamd          0:off   1:off   2:off   3:on    4:off   5:off   6:off
fail2ban        0:off   1:off   2:off   3:on    4:off   5:off   6:off
gpm             0:off   1:off   2:on    3:off   4:on    5:on    6:off
haldaemon       0:off   1:off   2:off   3:off   4:on    5:on    6:off
httpd           0:off   1:off   2:off   3:on    4:off   5:off   6:off
ip6tables       0:off   1:off   2:on    3:on    4:on    5:on    6:off
iptables        0:off   1:off   2:on    3:on    4:on    5:on    6:off
kudzu           0:off   1:off   2:off   3:off   4:on    5:on    6:off
ldap            0:off   1:off   2:off   3:on    4:off   5:off   6:off
lvm2-monitor    0:off   1:on    2:on    3:on    4:on    5:on    6:off
mcstrans        0:off   1:off   2:on    3:on    4:on    5:on    6:off
messagebus      0:off   1:off   2:off   3:off   4:on    5:on    6:off
multipathd      0:off   1:off   2:off   3:off   4:off   5:off   6:off
mysqld          0:off   1:off   2:off   3:on    4:off   5:off   6:off
netconsole      0:off   1:off   2:off   3:off   4:off   5:off   6:off
netfs           0:off   1:off   2:off   3:off   4:on    5:on    6:off
netplugd        0:off   1:off   2:off   3:off   4:off   5:off   6:off
network         0:off   1:off   2:on    3:on    4:on    5:on    6:off
ntpd            0:off   1:off   2:off   3:off   4:off   5:off   6:off
postfix         0:off   1:off   2:on    3:on    4:on    5:on    6:off
rdisc           0:off   1:off   2:off   3:off   4:off   5:off   6:off
restorecond     0:off   1:off   2:on    3:on    4:on    5:on    6:off
saslauthd       0:off   1:off   2:off   3:off   4:off   5:off   6:off
shorewall       0:off   1:off   2:off   3:off   4:off   5:off   6:off
spamassassin    0:off   1:off   2:off   3:off   4:off   5:off   6:off
sshd            0:off   1:off   2:on    3:on    4:on    5:on    6:off
syslog          0:off   1:off   2:on    3:on    4:on    5:on    6:off
[root@mail postfix]# serivice amavisd stop
[root@mail postfix]# service clamd stop 
[root@mail postfix]# service dspamd stop
[root@mail postfix]# service dspam-webd stop
[root@mail Maildir]# service mysqld stop
[root@mail Maildir]# chkconfig mysqld off
[root@mail postfix]# chkconfig --level 0123456 amavisd off
[root@mail postfix]# chkconfig --level 0123456 clamd off
[root@mail postfix]# chkconfig --level 0123456 dspamd off
[root@mail postfix]# chkconfig --level 0123456 dspam-webd off


[root@mail ~]# vi /etc/postfix/main.cf
#       check_policy_service inet:127.0.0.1:10030
#header_checks = regexp:/etc/postfix/dspam_header_checks
# Content-Filter
#content_filter = smtp-amavis:[127.0.0.1]:10024
#receive_override_options = no_address_mappings

[root@mail ~]# cat /etc/postfix/master.cf
#smtp-amavis unix    -    -    n    -    3    smtp
#    -o smtp_data_done_timeout=1200
#    -o smtp_send_xforward_command=yes
#    -o disable_dns_lookups=yes
#    -o max_use=10

#127.0.0.1:10025 inet    n       -       n       -       -       smtpd
#    -o content_filter=
#    -o local_recipient_maps=
#    -o relay_recipient_maps=
#    -o smtpd_restriction_classes=
#    -o smtpd_client_restrictions=
#    -o smtpd_helo_restrictions=
#    -o smtpd_sender_restrictions=
#    -o smtpd_recipient_restrictions=permit_mynetworks,reject
#    -o mynetworks=127.0.0.0/8
#    -o strict_rfc821_envelopes=yes
#    -o smtpd_error_sleep_time=0
#    -o smtpd_soft_error_limit=1001
#    -o smtpd_hard_error_limit=1000
#    -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks

#
# DSPAM training settings
#
#retrain unix    -       n       n       -       -       pipe
#  flags=Rhq user=dspam argv=/usr/bin/dspam --client --mode=teft --class=$nexthop --source=corpus --user extmail --deliver=spam,innocent
#
#spamtrap unix   -       n       n       -       -       pipe
#  flags=Rhq user=dspam argv=/usr/bin/dspam --client --mode=teft --class=spam --source=inoculation --user extmail


[root@mail Maildir]# vi /etc/rc.local 
#/usr/bin/freshclam --daemon
#/usr/local/slockd/slockd-init start
[root@mail ~]# crontab -e
#0 0 1 * * wget -N -P /usr/share/spamassassin www.ccert.edu.cn/spam/sa/Chinese_rules.cf
#0 5 * * sun /usr/local/slockd/tools/log-rotate /usr/bin/gzip
#0 0 * * * /usr/bin/mysql -u dspam -p'postfix' dspam < /usr/share/dspam/sql/mysql/purge.sql
#0 0 * * * /usr/bin/dspam_logrotate -a 30 -d /var/spool/dspam/data
<script type=text/javascript charset=utf-8 src="http://static.bshare.cn/b/buttonLite.js#style=-1&uuid=&pophcol=3&lang=zh"></script> <script type=text/javascript charset=utf-8 src="http://static.bshare.cn/b/bshareC0.js"></script>
阅读(641) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~
评论热议
 类似资料: