constant restart

Rick Gutierrez xserverlinux at
Thu Aug 22 00:25:56 UTC 2019

El mié., 21 ago. 2019 a las 8:38, yuwang (<yuwang at>) escribió:
> 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.

This was the trick, I made the change and now I don't see the error.

 MailScanner --lint --debug
Trying to setlogsock(unix)

Reading configuration file /etc/MailScanner/MailScanner.conf
Reading configuration file /etc/MailScanner/conf.d/README
Read 1500 hostnames from the phishing whitelist
Read 6730 hostnames from the phishing blacklists
Config: calling custom init function SQLBlacklist
Config: calling custom init function MailWatchLogging
Config: calling custom init function SQLWhitelist

Checking version numbers...
Version number in MailScanner.conf (5.1.3) is correct.

Your envelope_sender_header in spamassassin.conf is correct.
MailScanner setting UID to  (89)

Checking for SpamAssassin errors (if you use it)...
Using SpamAssassin results cache
Connected to SpamAssassin cache database
SpamAssassin reported no errors.
Connected to Processing Attempts Database
Created Processing Attempts Database successfully
There are 1174 messages in the Processing Attempts Database
Using locktype = posix
MailScanner.conf says "Virus Scanners = clamd"
Found these virus scanners installed: clamd
Filename Checks: Windows/DOS Executable (1
Other Checks: Found 1 problems
Virus and Content Scanning: Starting
Clamd::INFECTED::Eicar-Test-Signature :: ./1/
Clamd::INFECTED:: Eicar-Test-Signature :: ./1/
Virus Scanning: Clamd found 2 infections
Infected message 1 came from
Virus Scanning: Found 2 viruses
Virus Scanner test reports:
Clamd said " was infected: Eicar-Test-Signature"

If any of your virus scanners (clamd)
are not listed there, you should check that they are installed correctly
and that MailScanner is finding them correctly via its virus.scanners.conf.
Config: calling custom end function SQLBlacklist
Config: calling custom end function MailWatchLogging
Config: calling custom end function SQLWhitelist

I am now presenting problems with postfix delivery, when I activate
header_checks = regexp: / etc / postfix / header_checks, the emails do
not come out, but I will open another post in the list.

Thanks to all who helped answer this email, without your help it would
not be possible


More information about the MailScanner mailing list