Dr.Web rejects email with error "dwlib: fd: recv(4) failed - Connection reset by peer"

Created:

2016-11-16 13:09:44 UTC

Modified:

2017-08-16 16:40:46 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Dr.Web rejects email with error "dwlib: fd: recv(4) failed - Connection reset by peer"

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 10.x for Linux
  • Plesk 11.x for Linux
  • Plesk 12.0 for Linux
  • Plesk 9.x for Linux

Symptoms

At times, emails are rejected with the following notification in /usr/local/psa/var/log/maillog:

 May 25 15:13:08 plesk qmail-queue-handlers[19563]: Handlers Filter before-queue for qmail started ...
May 25 15:13:08 plesk qmail-queue-handlers[19563]: from=mail@sender.tld
May 25 15:13:08 plesk qmail-queue-handlers[19563]: to=mail@recipient.tld
May 25 15:13:08 plesk qmail-queue-handlers[19563]: hook_dir = '/opt/psa/handlers/before-queue'
May 25 15:13:08 plesk qmail-queue-handlers[19563]: recipient[3] = 'mail@recipient.tld'
May 25 15:13:08 plesk qmail-queue-handlers[19563]: handlers dir = '/opt/psa/handlers/before-queue/recipient/mail@recipient.tld'
May 25 15:13:08 plesk qmail-queue-handlers[19563]: call_handlers: call executable = '/opt/psa/handlers/info/20-drweb-SSpFti/executable'
May 25 15:13:08 plesk qmail-queue[19568]: dwlib: fd: recv(4) failed - Connection reset by peer
May 25 15:13:08 plesk qmail-queue[19568]: scan: scanning the message(drweb.tmp.wh8VMF) sent by mail@sender.tld to mail@recipient.tld failed (error: -2)
May 25 15:13:08 plesk qmail-queue-handlers[19563]: handlers_stderr: REJECT
May 25 15:13:08 plesk qmail-queue-handlers[19563]: call_handlers: REJECT during call '/opt/psa/handlers/info/20-drweb-SSpFti/executable' handler
May 25 15:13:08 plesk qmail-queue-handlers[19563]: call_handlers: stop call handlers from dir '/opt/psa/handlers/before-queue/recipient/mail@recipient.tld'`

Dr.Web daemon log ( /var/log/daemon.log )contains the following errors:`

     May 25 15:13:08 plesk drwebd.real: 127.0.0.1 [19569] Error reading from socket (timeout)!  
May 25 15:13:08 plesk drwebd.real: 127.0.0.1 [19570] Error reading from socket (timeout)!

Cause

All Dr.Web daemon threads are busy processing concurrent requests.

Resolution

Increase the FileTimeout and MaxChildren parameters in /etc/drweb/drweb32.ini as follows:

# Maximum file scan time during single session.
FileTimeout = 300 # it is 30 by default

# Maximum number of simultaneously running child scanning processes.
MaxChildren = 40 # it is 4 by default

Restart Dr.Web daemon using the below command to apply changes:

# /etc/init.d/drwebd restart

Note that during the subsequent Plesk Panel upgrade, Dr.Web daemon configuration will be reset to default settings. You will need to redo the above changes.

Have more questions? Submit a request
Please sign in to leave a comment.