having a bit of trouble getting clamav (nico's version) to work with hMailServer on Windows Server 2008 R2.
Using eicar test virus it says the test email is ok. If I run clamdscan against the virus directly it picks it up.
I'm using the external virus tab with the scanner executable setting:
"c:\clamav\clamdscan.exe" "%FILE%"
My clamd logs show it passing.
Fri Oct 22 19:59:41 2010 -> Received POLLIN|POLLHUP on fd 1192
Fri Oct 22 19:59:41 2010 -> Got new connection, FD 1476
Fri Oct 22 19:59:41 2010 -> fds_poll_recv: timeout after 5 seconds
Fri Oct 22 19:59:41 2010 -> Received POLLIN|POLLHUP on fd 1476
Fri Oct 22 19:59:41 2010 -> got command CONTSCAN \\?\C:\Program Files (x86)\hMailServer\Data\{AF5BDCE9-37A3-4811-AEA3-68F6A3789CEE}.eml (96, 7), argument: \\?\C:\Program Files (x86)\hMailServer\Data\{AF5BDCE9-37A3-4811-AEA3-68F6A3789CEE}.eml
Fri Oct 22 19:59:41 2010 -> mode -> MODE_WAITREPLY
Fri Oct 22 19:59:41 2010 -> Breaking command loop, mode is no longer MODE_COMMAND
Fri Oct 22 19:59:41 2010 -> Consumed entire command
Fri Oct 22 19:59:41 2010 -> Number of file descriptors polled: 0 fds
Fri Oct 22 19:59:41 2010 -> fds_poll_recv: timeout after 600 seconds
Fri Oct 22 19:59:41 2010 -> THRMGR: queue (single) crossed low threshold -> signaling
Fri Oct 22 19:59:41 2010 -> THRMGR: queue (bulk) crossed low threshold -> signaling
Fri Oct 22 19:59:41 2010 -> C:\Program Files (x86)\hMailServer\Data\{AF5BDCE9-37A3-4811-AEA3-68F6A3789CEE}.eml: OK
Fri Oct 22 19:59:41 2010 -> Finished scanthread
Fri Oct 22 19:59:41 2010 -> Scanthread: connection shut down (FD 1476)
Fri Oct 22 19:59:41 2010 -> THRMGR: queue (single) crossed low threshold -> signaling
Fri Oct 22 19:59:41 2010 -> THRMGR: queue (bulk) crossed low threshold -> signaling
My hMailServer logs show it it not getting picked up either.
"DEBUG" 1772 "2010-10-22 19:59:41.618" "Creating session 2"
"DEBUG" 3804 "2010-10-22 19:59:41.650" "Total spam score: 0"
"DEBUG" 3328 "2010-10-22 19:59:41.712" "Total spam score: 0"
"DEBUG" 3328 "2010-10-22 19:59:41.712" "Saving message: C:\Program Files (x86)\hMailServer\Data\{AF5BDCE9-37A3-4811-AEA3-68F6A3789CEE}.eml"
"DEBUG" 3328 "2010-10-22 19:59:41.712" "Requesting SMTPDeliveryManager to start message delivery"
"DEBUG" 3152 "2010-10-22 19:59:41.712" "Delivering message..."
"APPLICATION" 3152 "2010-10-22 19:59:41.712" "SMTPDeliverer - Message 105: Delivering message from
eicar@aleph-tec.com to
pat@patmac.gotdns.com. File: C:\Program Files (x86)\hMailServer\Data\{AF5BDCE9-37A3-4811-AEA3-68F6A3789CEE}.eml"
"DEBUG" 3152 "2010-10-22 19:59:41.712" "CustomVirusScanner::Scan()"
"DEBUG" 2616 "2010-10-22 19:59:41.728" "Closing TCP/IP socket"
"DEBUG" 2616 "2010-10-22 19:59:41.728" "Ending session 2"
"DEBUG" 3152 "2010-10-22 19:59:41.775" "CustomVirusScanner::Scan() - "c:\clamav\clamdscan.exe" "C:\Program Files (x86)\hMailServer\Data\{AF5BDCE9-37A3-4811-AEA3-68F6A3789CEE}.eml" - Returned 0"
"DEBUG" 3152 "2010-10-22 19:59:41.775" "CustomVirusScanner::~Scan()"
"DEBUG" 3152 "2010-10-22 19:59:41.775" "Applying rules"
"DEBUG" 3152 "2010-10-22 19:59:41.775" "Performing local delivery"
"DEBUG" 3152 "2010-10-22 19:59:41.775" "Applying rules"
"DEBUG" 3152 "2010-10-22 19:59:41.775" "Saving message: C:\Program Files (x86)\hMailServer\Data\patmac.gotdns.com\pat\AF\{AF5BDCE9-37A3-4811-AEA3-68F6A3789CEE}.eml"
"DEBUG" 3152 "2010-10-22 19:59:41.775" "AWStats::LogDeliverySuccess"
"DEBUG" 3152 "2010-10-22 19:59:41.790" "Local delivery completed"
"APPLICATION" 3152 "2010-10-22 19:59:41.790" "SMTPDeliverer - Message 105: Message delivery thread completed."
"DEBUG" 2820 "2010-10-22 20:00:40.946" "Creating session 3"
"DEBUG" 1112 "2010-10-22 20:00:40.962" "Reading message from database"
"DEBUG" 1112 "2010-10-22 20:00:41.196" "Closing TCP/IP socket"
"DEBUG" 1112 "2010-10-22 20:00:41.196" "Ending session 3"
"DEBUG" 2820 "2010-10-22 20:02:46.196" "Creating session 4"
"DEBUG" 1032 "2010-10-22 20:02:46.431" "Closing TCP/IP socket"
Anyone have any suggestions?
- thanks for aany help.
-pat