Symptoms
-
Emails with valid archived files in attachments are blocked by
drwebdservice:A message with the following attributes was not delivered because it contains an object which violates archive restrictions and cannot be checked by antivirus filter.
Relaying such messages is blocked by administrator. -
A similar message can be found in the antivirus report and in the sender's mailbox:
--- Antivirus report ---
Detailed report:
127.0.0.1 [26365] drweb.tmp.g2tuDx - archive MAIL
127.0.0.1 [26365] >drweb.tmp.g2tuDx/4.part - Ok
127.0.0.1 [26365] >drweb.tmp.g2tuDx/6.part - archive RAR
127.0.0.1 [26365] >>drweb.tmp.g2tuDx/6.part/16-12-2015 Acc+Greenacc hrms bk 16-12-2015.bak - Ok
127.0.0.1 [26365] >>drweb.tmp.g2tuDx/6.part/16-12-2015 Acc+Greenerp 16-12-2015.bak - Ok
127.0.0.1 [26365] >>drweb.tmp.g2tuDx/6.part/16-12-2015 Acc+GreenHrms-Green 16-12-2015.bak - Ok
127.0.0.1 [26365] >drweb.tmp.g2tuDx/6.part - Ok
127.0.0.1 [26365] >drweb.tmp.g2tuDx/7.part - archive RAR
127.0.0.1 [26365] >>drweb.tmp.g2tuDx/7.part/16-12-2015 Meps16-12-2015ece.bak - Ok
127.0.0.1 [26365] >>drweb.tmp.g2tuDx/7.part/16-12-2015 Meps16-12-2015erp.bak - Ok
127.0.0.1 [26365] >>drweb.tmp.g2tuDx/7.part/16-12-2015 Meps16-12-2015hrms.bak - file too large skipped
127.0.0.1 [26365] >>drweb.tmp.g2tuDx/7.part/16-12-2015 Meps16-12-2015ies.bak - Ok
127.0.0.1 [26365] >drweb.tmp.g2tuDx/7.part - Ok
127.0.0.1 [26365] >drweb.tmp.g2tuDx/8.part - Ok
127.0.0.1 [26365] >drweb.tmp.g2tuDx/9.reexport - Ok
127.0.0.1 [26365] drweb.tmp.g2tuDx - OkScanning statistic:
Archive restriction : 1 -
The Switch on antivirus protection for this email address option is enabled and Check for viruses is set to Incoming and outgoing mail in Domains > example.com > Email Addresses > [email protected] > Antivirus.
-
A similar error is present in
/var/log/messages:drwebd.real: 127.0.0.1 [18812] >>>/var/spool/drweb/spool/drweb.tmp.qFHUZK/4.part/file.exe - - timeout!
Cause
The issue caused by insufficient values of MaxFileSizeToExtract and FileTimeout parameters of Plesk Premium Antivirus package.
Resolution
-
Increase maximum archive sizes and timeouts:
Note: Too high values might cause Denial of Service (DoS) attacks possible by consuming too much server resources.
-
Connect to the server via SSH
-
Edit file
/etc/drweb/drweb_handler.confby settingArchiveRestrictionas follows:ArchiveRestriction = pass
-
Edit file
/etc/drweb/drweb32.iniand increase the value for the parametersFileTimeoutandMaxFileSizeToExtract:FileTimeout = 60
MaxFileSizeToExtract = 100000Note: Value of the
MaxFileSizeToExtractvariable can be changed as desired -
Restart Plesk Premium Antivirus in Tools & Settings > Services Management to apply changes.
-
-
Disable antivirus notifications completely:
-
Connect to the server via SSH
-
Edit file
/etc/drweb/drweb_handler.confand disableSenderNotifyandAdminNotifyforArchiveRestrictionNotifications:[ArchiveRestrictionNotifications]
SenderNotify = no
AdminNotify = no -
Restart Plesk Premium Antivirus and SMTP Server in Tools & Settings > Services Management to apply changes.
-