constant restart
yuwang
yuwang at cs.fsu.edu
Wed Aug 21 14:38:24 UTC 2019
Please try followings:
change /etc/clamd.d/scan.conf:
from
User clamscan
to
User postfix
change /var/run/clamd.scan owner to postfix:
chown postfix.mtagroup /var/run/clamd.scan
change /usr/lib/tmpfiles.d/clamd.scan.conf to:
d /run/clamd.scan 0710 postfix mtagroup
restart clamd and mailscanner
make sure /var/run/clamd.scan/clamd.sock is owned by postfix.
run MailScanner --lint again.
James
On 2019-08-21 10:13, Rick Gutierrez wrote:
> El mié., 21 ago. 2019 a las 7:57, yuwang (<yuwang at cs.fsu.edu>)
> escribió:
>>
>> Rick,
>>
>> Please post the outputs of following commands:
>
> sure.
>
>>
>> getenforce
>
> [root at escm ~]# getenforce
> Disabled
>
>
>> grep -i clam /etc/MailScanner/MailScanner.conf | grep -v '^#'
>
> grep -i clam /etc/MailScanner/MailScanner.conf | grep -v '^#'
> Virus Scanners = clamd
> Monitors for ClamAV Updates = /usr/local/share/clamav/*.cld
> /usr/local/share/clamav/*.cvd /var/lib/clamav/*.inc/*
> /var/lib/clamav/*.?db /var/lib/clamav/*.cvd
> ClamAVmodule Maximum Recursion Level = 8
> ClamAVmodule Maximum Files = 1000
> ClamAVmodule Maximum File Size = 10000000 # (10 Mbytes)
> ClamAVmodule Maximum Compression Ratio = 250
> Clamd Port = 3310
> Clamd Socket = /var/run/clamd.scan/clamd.sock
> Clamd Lock File = # /var/lock/subsys/clamd
> Clamd Use Threads = no
> ClamAV Full Message Scan = yes
>
>> ps -elf | egrep -i 'mailscanner|clam'
>
> [root at escm ~]# ps -elf | egrep -i 'mailscanner|clam'
> 1 S clamscan 7361 1 0 80 0 - 234807 poll_s 05:42 ?
> 00:00:50 /usr/sbin/clamd -c /etc/clamd.d/scan.conf
> 1 S postfix 11602 1 0 80 0 - 52663 do_wai 05:44 ?
> 00:00:00 MailScanner: starting child
> 1 S postfix 11639 11602 0 80 0 - 92407 hrtime 05:45 ?
> 00:00:05 MailScanner: scanning for filenames and filetypes
> 1 S postfix 11641 11602 0 80 0 - 92407 hrtime 05:45 ?
> 00:00:05 MailScanner: scanning for filenames and filetypes
> 1 S postfix 11646 11602 0 80 0 - 92427 hrtime 05:45 ?
> 00:00:05 MailScanner: scanning for filenames and filetypes
> 0 R root 23511 22980 0 80 0 - 28177 - 08:11 pts/0
> 00:00:00 grep -E --color=auto -i mailscanner|clam
>
>
>
>> cat /etc/clamd.d/scan.conf | egrep -v '^#|^$'
>
> [root at escm ~]# cat /etc/clamd.d/scan.conf | egrep -v '^#|^$'
> LogFileMaxSize 0
> LogTime yes
> LogSyslog yes
> PidFile /var/run/clamd.scan/clamd.pid
> TemporaryDirectory /var/tmp
> DatabaseDirectory /var/lib/clamav
> LocalSocket /var/run/clamd.scan/clamd.sock
> LocalSocketGroup mtagroup
> FixStaleSocket yes
> TCPSocket 3310
> TCPAddr 127.0.0.1
> MaxConnectionQueueLength 30
> MaxThreads 50
> ReadTimeout 300
> User clamscan
> ScanPE yes
> ScanELF yes
> ScanOLE2 yes
> ScanMail yes
> ScanArchive yes
>
>
>> getent passwd | grep ':89:'
>>
>
> [root at escm ~]# getent passwd | grep ':89:'
> postfix:x:89:89::/var/spool/postfix:/sbin/nologin
>
> --
> rickygm
>
> http://gnuforever.homelinux.com
More information about the MailScanner
mailing list