On 16.08.2012 21:23, Terry Barnum wrote:
> Greetings,
Hello Terry,

> I setup a small postfix/dovecot/dspam test server with sieve and the dovecot 
> antispam plugins. Incoming email is processed by dspam and filtered by sieve 
> correctly but dspam crashes if I try to manually move a message to or from 
> the Junk mailbox. Dspam has been doing such a good job that I haven't needed 
> to manually move anything in a while so it's possible I made a configuration 
> change but haven't run into the problem until now.
>
> The mail client (OSX Mail) reports:
>
> 'The message "<Spam blabla>" could not be moved to the mailbox "Junk"  The 
> IMAP command "UID COPY" (to Junk) failed for the mailbox "INBOX" with the 
> server error: Failed to call dspam.'
>
> Syslog says:
>
> Aug 15 15:48:23 mail dspam[1715]: Ignoring disallowed preference 
> 'signatureLocation'
> Aug 15 15:48:23 mail dspam[1715]: Ignoring disallowed preference 
> 'signatureLocation'
> Aug 15 15:48:23 mail dspam[1715]: bailing on error -2
> Aug 15 15:48:23 mail dspam[1715]: dspam(1715,0x1000e7000) malloc: *** error 
> for object 0x100803518: pointer being freed was not allocated\n*** set a 
> breakpoint in malloc_error_break to debug
> Aug 15 15:48:23 mail org.macports.dspam[1711]: dspam(1715,0x1000e7000) 
> malloc: *** error for object 0x100803518: pointer being freed was not 
> allocated
> Aug 15 15:48:23 mail org.macports.dspam[1711]: *** set a breakpoint in 
> malloc_error_break to debug
> Aug 15 15:48:23 mail dspam[1716]: Client exited with error -5
> Aug 15 15:48:23 mail com.apple.ReportCrash.Root[1719]: 2012-08-15 
> 15:48:23.102 ReportCrash[1719:2503] Saved crash report for dspam[1715] 
> version ??? (???) to 
> /Library/Logs/DiagnosticReports/dspam_2012-08-15-154823_localhost.crash
Cool. A real crash. What is in that 
dspam_2012-08-15-154823_localhost.crash file?


> I don't *think* the "Ignoring disallowed preferences" is the cause of the 
> crash because these warnings have been happening since installation (I posted 
> about this back on July 6), whereas the crashing upon manual move has started 
> recently.
The 'Ignoring disallowed preferences' is very unlikely to be the issue.


> # dpsam_admin li pref default
> signatureLocation=headers
>
> dspam is installed with macports but does not yet have a debug variant so I 
> can't enable it for more info.
:(

This will make bug hunting very, very difficult.

> # dspam --version
> DSPAM Anti-Spam Suite 3.10.2 (agent/library)
Good! At least a recent version. Very good.

> Copyright (C) 2002-2012 DSPAM Project
> http://dspam.sourceforge.net.
>
> DSPAM may be copied only under the terms of the GNU Affero General Public
> License, a copy of which can be found with the DSPAM distribution kit.
>
> Configuration parameters:  '--prefix=/opt/local' 
> '--sysconfdir=/opt/local/etc' '--mandir=/opt/local/share/man' 
> '--with-logdir=/opt/local/var/log/dspam' '--enable-daemon' 
> 'CC=/usr/bin/gcc-4.2' 'CFLAGS=-pipe -O2 -arch x86_64' 
> 'LDFLAGS=-L/opt/local/lib -arch x86_64' 'CPPFLAGS=-I/opt/local/include'
>
> # grep ^[^#] dspam.conf
> Home /opt/local/var/dspam
> StorageDriver /opt/local/lib/libhash_drv.dylib
AHA! Hash driver! That storage driver really, really needs to be reworked.

> DeliveryHost          127.0.0.1
> DeliveryPort          10026
> DeliveryIdent         localhost
> DeliveryProto         SMTP
> OnFail error
> Trust root
> Trust dspam
> Trust apache
> Trust mail
> Trust mailnull
> Trust smmsp
> Trust daemon
> Trust _dspam
> Trust _www
> Trust _vmail
> Trust _postfix
> Trust _dovecot
> Trust _dovenull
> TrainingMode toe
> TestConditionalTraining on
> Feature noise
> Feature whitelist
> Feature tb=5
> Algorithm graham burton
> Tokenizer osb
> PValue bcr
> WebStats on
> ImprobabilityDrive on
> Preference "trainingMode=TOE"         # { TOE | TUM | TEFT | NOTRAIN } -> 
> default:teft
> Preference "spamAction=tag"           # { quarantine | tag | deliver } -> 
> default:quarantine
> Preference "spamSubject="             # { string } -> default:[SPAM]
> Preference "statisticalSedation=5"    # { 0 - 10 } -> default:0
> Preference "enableBNR=on"             # { on | off } -> default:off
> Preference "enableWhitelist=on"               # { on | off } -> default:on
> Preference "signatureLocation=headers"        # { message | headers } -> 
> default:message
> Preference "tagSpam=off"              # { on | off }
> Preference "tagNonspam=off"           # { on | off }
> Preference "showFactors=off"          # { on | off } -> default:off
> Preference "optIn=off"                        # { on | off }
> Preference "optOut=off"                       # { on | off }
> Preference "whitelistThreshold=10"    # { Integer } -> default:10
> Preference "makeCorpus=off"           # { on | off } -> default:off
> Preference "storeFragments=off"               # { on | off } -> default:off
> Preference "localStore="              # { on | off } -> default:username
> Preference "processorBias=on"         # { on | off } -> default:on
> Preference "fallbackDomain=off"               # { on | off } -> default:off
> Preference "trainPristine=off"                # { on | off } -> default:off
> Preference "optOutClamAV=off"         # { on | off } -> default:off
> Preference "ignoreRBLLookups=off"     # { on | off } -> default:off
> Preference "RBLInoculate=off"         # { on | off } -> default:off
> Preference "notifications=off"                # { on | off } -> default:off
> AllowOverride enableBNR
> AllowOverride enableWhitelist
> AllowOverride fallbackDomain
> AllowOverride ignoreGroups
> AllowOverride ignoreRBLLookups
> AllowOverride localStore
> AllowOverride makeCorpus
> AllowOverride optIn
> AllowOverride optOut
> AllowOverride optOutClamAV
> AllowOverride processorBias
> AllowOverride RBLInoculate
> AllowOverride showFactors
> AllowOverride signatureLocation
> AllowOverride spamAction
> AllowOverride spamSubject
> AllowOverride statisticalSedation
> AllowOverride storeFragments
> AllowOverride tagNonspam
> AllowOverride tagSpam
> AllowOverride trainPristine
> AllowOverride trainingMode
> AllowOverride whitelistThreshold
> AllowOverride dailyQuarantineSummary
> AllowOverride notifications
> HashRecMax            98317
> HashAutoExtend                on
> HashMaxExtents                0
> HashExtentSize                49157
> HashPctIncrease               10
> HashMaxSeek           10
> HashConnectionCache   10
> Notifications off
> PurgeSignatures 14    # Stale signatures
> PurgeNeutral  90      # Tokens with neutralish probabilities
> PurgeUnused   90      # Unused tokens
> PurgeHapaxes  30      # Tokens with less than 5 hits (hapaxes)
> PurgeHits1S   15      # Tokens with only 1 spam hit
> PurgeHits1I   15      # Tokens with only 1 innocent hit
> PurgeSignature        off     # Specified in purge.sql
> PurgeNeutral  90
> PurgeUnused   off     # Specified in purge.sql
> PurgeHapaxes  off     # Specified in purge.sql
> PurgeHits1S   off     # Specified in purge.sql
> PurgeHits1I   off     # Specified in purge.sql
> LocalMX 127.0.0.1
> SystemLog     on
> UserLog               on
> Opt out
> MaxMessageSize        1048576
> ServerPort            24
> ServerQueueSize               32
> ServerPID             /opt/local/var/run/dspam.pid
> ServerMode auto
> ServerPass.<snip>     "<snip>"
> ServerParameters      "--deliver=innocent,spam"
> ServerIdent           "localhost.local"
> ServerDomainSocketPath        "/opt/local/var/run/dspam.sock"
> ClientHost    "/opt/local/var/run/dspam.sock"
> ClientIdent   "<snip>@<snip>"
> ProcessorURLContext on
> ProcessorBias on
> StripRcptDomain off
>
> /opt/local/etc/dovecot/conf.d/90-plugin.conf:
> plugin {
>    #setting_name = value
>    antispam_debug_target = syslog
>    antispam_signature = X-DSPAM-Signature
>    antispam_signature_missing = move
>    antispam_spam_pattern_ignorecase = junk;spam;junk *
>    antispam_trash_pattern_ignorecase = trash;deleted *
>    antispam_backend = dspam
>    antispam_dspam_binary = /opt/local/bin/dspamc
>    antispam_dspam_args = --user;%u;--deliver=;--source=error;--signature=%%s
>    antispam_dspam_spam = --class=spam
>    antispam_dspam_notspam = --class=innocent
>    antispam_dspam_result_header = X-DSPAM-Result
> }
>
>
> Anything obviously out of place? Any help or pointers are greatly 
> appreciated. I'm happy to provide other info.
I think it is the HASH driver. That css file of yours would probably 
result in a crash on another system too. I think the css file is corrupt.


> Thanks,
> -Terry
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Dspam-user mailing list
> Dspam-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspam-user
>


-- 
  Kind Regards from Switzerland,

  Stevan Bajić


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Dspam-user mailing list
Dspam-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspam-user

Reply via email to