CentOS编辑安装amavisd-new与修改内容

系统 Linux
CentOS编辑安装amavisd-new/etc/yum.repos.d/CentOS-Base.repo 加入下面的内容: [dag]name=Dag RPM Repostory for Red Hat Enterprise Linux

经过长时间学习CentOS编辑安装amavisd-new,你可能会遇到CentOS编辑amavisd-new问题,CentOS Linux由于同时具有与RHEL的兼容性和企业级应用的稳定性,又允许用户自由使用,因此得到了越来越广泛的应用。这里将介绍CentOS编辑amavisd-new问题的解决方法。

CentOS编辑安装amavisd-new/etc/yum.repos.d/CentOS-Base.repo 加入下面的内容:
[dag]
name=Dag RPM Repostory for Red Hat Enterprise Linux
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
enabled=1
gpgkey=http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt
[root@localhost ~]# yum -y install clamav clamav-db clamd clamav-devel amavisd-new

CentOS编辑/etc/amavisd.conf,修改下面的内容
$mydomain = 'yiyou.org';   # a convenient default for other settings
把下面内容去掉注释,并修改为下面
['ClamAV-clamd',
\&ask_daemon, ["CONTSCAN {}\n", "/tmp/clamd.socket"],
qr/\bOK$/, qr/\bFOUND$/,
qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],
[root@localhost ~]# usermod -G amavis clamav
[root@localhost ~]# service clamd start

在CentOS编辑/etc/postfix/master.cf 增加下面的内容:
smtp-amavis  unix    -    -    n    -    4    smtp
-o smtp_data_done_timeout=1200
-o smtp_send_xforward_command=yes
-o disable_dns_lookups=yes

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_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_header_body_checks

在CentOS编辑/etc/postfix/main.cf 加入下面的内容
content_filter = smtp-amavis:[localhost]:10024
[root@localhost ~]# service postfix reload

【编辑推荐】

  1. CentOS安装maildrop下载生成RPM与创建maildrop rpm
  2. CentOS postfix安装创建rpm与切换mta
  3. 使用rpm文件手动安装CentOS authlib软件
  4. 运用CentOS RPM安装CentOS 5.2中相关软件如vhmgr
  5. CentOS5.3安装Oracle过程讲解与创建软件账户
责任编辑:佚名 来源: CSDN
相关推荐

2010-01-14 17:13:28

centos bind

2010-01-15 10:36:49

CentOS yum配

2011-03-22 10:10:18

CentOSNagios安装

2010-01-14 13:47:30

CentOS extm

2010-03-25 12:08:21

2011-03-25 16:23:43

CentOSNagios

2010-04-06 16:56:14

CentOS系统

2010-06-17 16:08:51

Grub2 编辑

2009-07-08 09:21:09

Linux安装JDK

2010-01-13 13:27:07

CentOS vsft

2013-12-18 16:18:23

CentOShttpd源代码

2010-01-14 12:15:10

CentOS post

2010-02-05 10:31:43

2010-02-22 16:49:35

CentOS vsft

2010-01-15 17:35:09

2010-02-23 10:58:47

CentOS NTFS

2010-01-13 17:00:54

CentOS MySQ

2010-01-15 20:18:54

2010-03-24 09:20:07

CentOS vi编辑

2010-01-14 17:39:53

CentOS ulim
点赞
收藏

51CTO技术栈公众号