Hi I am fairly new to the world od SME so go please easy
I updated the server the other day (we are running SME server 7.5.1) and upon rebooting the server was unable to send or receive any emails. If I attempt to send an email via the web panel I get the message
There was an error sending your message: unable to send datai checked the qpsmtpd current log and get the following output.
@400000004db405f129fff9dc 8879 dispatching RCPT TO:<example@gmail.com>
@400000004db405f12a0f8654 8879 250 <example@gmail.com>, recipient ok
@400000004db405f12a165484 8879 dispatching DATA
@400000004db405f12a1a2514 8879 354 go ahead
@400000004db405f12a220c84 8879 spooling message to disk
@400000004db405f12ab53464 8879 virus::clamav plugin (data_post): Changing permissions on file to permit scanner access
@400000004db405f12ad510a4 8879 virus::clamav plugin (data_post): clamscan results: /var/spool/qpsmtpd/1303643623:8879:0: lstat() failed: Permission denied. ERROR
@400000004db405f12ad5e394 8879 virus::clamav plugin (data_post): ClamAV error: /usr/bin/clamdscan --stdout --config-file=/etc/clamd.conf --no-summary /var/spool/qpsmtpd/1303643623:8879:0 2>&1: 2
@400000004db405f12ad5ef4c
@400000004db405f12adb5dec 8879 logging::logterse plugin (deny): ` 127.0.0.1localhost localhost <unknown@whatever.co.uk> <example@gmail.com> virus::clamav 902 msg denied before queued
@400000004db405f12addc71c 8879 452 Message denied temporarily
@400000004db405f2277956cc 4979 cleaning up after 8879
Output of /Var/log/clamd/current
@400000004db405f12ad18664 WARNING: lstat() failed on: /var/spool/qpsmtpd/1303643623:8879:0
@400000004db4098b1ac6d1fc No stats for Database check - forcing reload
@400000004db4098b2048176c Reading databases from /var/clamav
@400000004db409901e45793c Database correctly reloaded (950437 signatures)
@400000004db40990244dd4b4 Reading databases from /var/clamav
@400000004db4099523f475cc Database correctly reloaded (950437 signatures)
looking at the log I could see it was a problem with Clam, I disabled Virus scanning from the server-manager panel and can now send and receive emails, obviously this is not ideal.
i have tried updating with "yum update clamav" and restarted the server but still have the same problem. there was a problem with duplicate databases so I deleted the database and ran "freshclam -v"
It looks like a permissions problem and looking in the /var/clamav directory the file permissions are:
-rw-r--r-- 1 clamav 402 464384 Apr 13 15:37 bytecode.cld
srw-rw-rw- 1 clamav 402 0 Apr 24 11:56 clamd.socket
-rw-r--r-- 1 clamav 402 6638592 Apr 24 06:14 daily.cld
-rw-r--r-- 1 clamav 402 26224310 Apr 24 12:28 main.cvd
-rw------- 1 clamav clamav 2704 Apr 24 12:29 mirrors.dat
if anyone can offer any help i would really appreciate it.
Thank you for reading.