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

来源:互联网 发布:java开源cms系统 编辑:程序博客网 时间:2024/05/18 23:55
由于搭建的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
阅读(641) | 评论(0) | 转发(0) |
0

上一篇:【ZT】解决ssh登录后闲置时间过长而断开连接

下一篇:使用 fail2ban 自动封IP

相关热门文章
  • php中提示Undefined index
  • 在上演时应用无线发话器的留神...
  • cobbler批量装机系统centos 6....
  • CU的反垃圾机制,太!弱!了!...
  • linux 黑屏问题
  • linux 常见服务端口
  • 【ROOTFS搭建】busybox的httpd...
  • 什么是shell
  • linux socket的bug??
  • linux的线程是否受到了保护?...
  • IBM DS3400 盘阵怎么查看是单...
  • 启动auditd时,报错如下,怎么...
  • CGSL系统中root密码正确,但无...
  • 在CGSL系统中,如何为不同的用...
  • CGSL系统如何设置交换分区的大...
给主人留下些什么吧!~~
原创粉丝点击