clamav-milterインストール
[root@falcon21 ~]# yum -y install clamav-milter clamav-milter-systemd
インストール:
clamav-milter.x86_64 0:0.101.4-1.el7

完了しました!
New leaves:
clamav-milter.x86_64



clamav-milter設定ファイル編集
[root@falcon21 ~]# vi /etc/mail/clamav-milter.conf
6 #Example
22 MilterSocket /var/run/clamav-milter/clamav-milter.socket
166 OnInfected Blackhole              ← ウイルス感染メールは破棄
189 AddHeader Yes                  ← メールヘッダにウイルスチェック実施した旨を出力

250 LogFacility LOG_MAIL



clamav-milter起動
[root@falcon21 ~]# systemctl start clamav-milter

[root@falcon21 ~]# systemctl enable clamav-milter
Created symlink from /etc/systemd/system/multi-user.target.wants/clamav-milter.service to /usr/lib/systemd/system/clamav-milter.service.

[root@falcon21 ~]# systemctl status milter-manager -l
milter-manager.service - milter-manager server daemon
Loaded: loaded (/usr/lib/systemd/system/milter-manager.service; enabled; vendor preset: disabled)
Active: active (running) since 木 2019-11-14 07:44:26 JST; 7min ago
Process: 1500 ExecStart=/usr/sbin/milter-manager --daemon --pid-file /var/run/milter-manager/milter-manager.pid --connection-spec ${CONNECTION_SPEC} --user-name ${USER} --group-name ${GROUP} --unix-socket-group ${SOCKET_GROUP} ${OPTION_ARGS} (code=exited, status=0/SUCCESS)
Process: 1499 ExecStartPre=/usr/bin/install -d /var/run/milter-manager -o ${USER} -g ${GROUP} (code=exited, status=0/SUCCESS)
Main PID: 1514 (milter-manager)
Tasks: 4
CGroup: /system.slice/milter-manager.service
├─1508 /usr/sbin/milter-manager --daemon --pid-file /var/run/milter-manager/milter-manager.pid --connection-spec unix:/var/run/milter-manager/milter-manager.sock --user-name milter-manager --group-name milter-manager --unix-socket-group milter-manager
└─1514 /usr/sbin/milter-manager --daemon --pid-file /var/run/milter-manager/milter-manager.pid --connection-spec unix:/var/run/milter-manager/milter-manager.sock --user-name milter-manager --group-name milter-manager --unix-socket-group milter-manager

11月 14 07:44:24 falcon21.space systemd[1]: Starting milter-manager server daemon...
11月 14 07:44:26 falcon21.space systemd[1]: PID file /var/run/milter-manager/milter-manager.pid not readable (yet?) after start.
11月 14 07:44:26 falcon21.space systemd[1]: Started milter-manager server daemon.



clamav-milter確認
メール送受信テスト
受信したメールのヘッダに以下のメッセージが付加されていること
X-Virus-Scanned: clamav-milter 0.99.2 at centossrv.com

投票数:1 平均点:10.00

 
Back to Top