I mus be having a case of the mondays.
I'm trying to get calmav working with Message Server 6.3. I have applied patch 120229-25.
The error i'm getting is "SMTP error 4.7.1 Cannot load spam filter bmiEndHeaders" when trying to send email.
Message Server version
bash-3.00# /opt/SUNWmsgsr/sbin/imsimta version
Sun Java(tm) System Messaging Server 6.3-5.02 (built Oct 12 2007; 32bit)
libimta.so 6.3-5.02 (built 17:09:30, Oct 12 2007; 32bit)
SunOS com1 5.10 Generic_127112-05 i86pc i386 i86pc
imta.cnf
ims-ms defragment subdirs 20 notices 1 7 14 21 28 backoff "pt5m" "pt10m" "pt30m" "pt1h" "pt2h" "pt4h" maxjobs 2 pool IMS_POOL fileinto $U+$S@$D destinationspamfilter1optin virus
ims-ms-daemon
bottom of option.dat
! ClamAV settings
spamfilter1_config_file=/opt/SUNWmsgsr/config/clamav.opt
spamfilter1_library==/opt/SUNWmsgsr/lib/libclamav.so
spamfilter1_string_action=data:,require ["jettison"]; jettison;
clamav.opt
! ClamAV Settings
debug=1
host=127.0.0.1
port=3310
mode=1
file permissions
bash-3.00# ls -la /opt/SUNWmsgsr/config/clamav.opt
-rw-r--r-- 1 mailsrv mail 58 Feb 5 09:41 /opt/SUNWmsgsr/config/clamav.opt
bash-3.00# ls -la /opt/SUNWmsgsr/config/option.dat
-rw-r----- 1 mailsrv mail 1298 Feb 5 11:16 /opt/SUNWmsgsr/config/option.dat
bash-3.00# ls -la /opt/SUNWmsgsr/config/imta.cnf
-rw-r----- 1 mailsrv mail 4069 Feb 5 11:17 /opt/SUNWmsgsr/config/imta.cnf
Here is the clamconf
bash-3.00# /opt/csw/bin/clamconf
/opt/csw/etc/clamd.conf: clamd directives
------------------------------
LogFile = "/opt/csw/var/clamav/clamd.log"
LogFileUnlock = no
LogFileMaxSize = 1048576
LogTime = yes
LogClean = no
LogVerbose = no
LogSyslog = yes
LogFacility = "LOG_LOCAL6"
PidFile = "/opt/csw/var/clamav/clamd.pid"
TemporaryDirectory not set
ScanPE = yes
ScanELF = yes
DetectBrokenExecutables = no
ScanMail = yes
MailFollowURLs = no
MailMaxRecursion = 64
PhishingSignatures = yes
PhishingScanURLs = yes
PhishingAlwaysBlockCloak = no
PhishingAlwaysBlockSSLMismatch = no
PhishingRestrictedScan = yes
DetectPUA = no
AlgorithmicDetection = yes
ScanHTML = yes
ScanOLE2 = yes
ScanPDF = no
ScanArchive = yes
ArchiveMaxFileSize = 10485760
ArchiveMaxRecursion = 8
ArchiveMaxFiles = 1000
ArchiveMaxCompressionRatio = 250
ArchiveLimitMemoryUsage = no
ArchiveBlockEncrypted = no
ArchiveBlockMax = no
DatabaseDirectory = "/opt/csw/share/clamav"
TCPAddr not set
TCPSocket = 3310
LocalSocket = "/opt/csw/var/clamav/clamd.sock"
MaxConnectionQueueLength = 15
StreamMaxLength = 10485760
StreamMinPort = 1024
StreamMaxPort = 2048
MaxThreads = 10
ReadTimeout = 120
IdleTimeout = 30
MaxDirectoryRecursion = 15
FollowDirectorySymlinks = no
FollowFileSymlinks = no
ExitOnOOM = no
Foreground = no
Debug = yes
LeaveTemporaryFiles = no
FixStaleSocket = yes
User = "clamav"
AllowSupplementaryGroups = no
SelfCheck = 1800
VirusEvent not set
ClamukoScanOnAccess not set
ClamukoScanOnOpen not set
ClamukoScanOnClose not set
ClamukoScanOnExec not set
ClamukoIncludePath not set
ClamukoExcludePath not set
ClamukoMaxFileSize = 5242880
DevACOnly not set
DevACDepth not set
and the directory permissions for clamav
bash-3.00# ls -la /opt/csw/var/clamav/clamd.log /opt/csw/var/clamav/clamd.pid /opt/csw/share/clamav /opt/csw/var/clamav/clamd.sock
-rw-r----- 1 clamav clamav 10409 Feb 5 10:46 /opt/csw/var/clamav/clamd.log
-rw-rw---- 1 clamav clamav 5 Feb 5 10:46 /opt/csw/var/clamav/clamd.pid
srwxrwxrwx 1 clamav clamav 0 Feb 5 10:46 /opt/csw/var/clamav/clamd.sock
/opt/csw/share/clamav:
total 22198
drwxr-xr-x 3 clamav clamav 512 Feb 5 10:46 .
drwxr-xr-x 9 root bin 512 Feb 4 14:27 ..
drwxr-xr-x 2 clamav clamav 512 Feb 5 10:46 daily.inc
-rw-r--r-- 1 clamav clamav 11347852 Feb 4 14:55 main.cvd
Telnet to localhost 3310 gives:
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
UNKNOWN COMMAND
Connection to localhost closed by foreign host.