-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 05-01-15 19:45, Guillaume wrote: > Hello, > > I'm running into an issue with DSPAM and Dovecot with this setup : > - Ubuntu Server 14.04.1 > > - Dovecot 2.2.9 with dovecot-antispam plugin { > antispam_allow_append_to_spam = YES antispam_backend = dspam > antispam_debug_target = syslog antispam_dspam_args = > --deliver;--user;%u;--source=error;--signature=%%s > antispam_dspam_binary = /usr/bin/dspam antispam_dspam_result_header > = X-DSPAM-Result antispam_signature = X-DSPAM-Signature > antispam_signature_missing = error antispam_skip_from_line = NO > antispam_spam = Spam antispam_trash = Trash sieve = > ~/.dovecot.sieve sieve_default = /etc/dovecot/sieve/global.sieve > sieve_dir = ~/sieve sieve_global_dir = /etc/dovecot/sieve/ > sieve_global_path = /etc/dovecot/sieve/global.sieve } > > - DSPAM 3.10.2 Configuration parameters: '--prefix=/usr' > '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' > '--infodir=${prefix}/share/info' '--sysconfdir=/etc' > '--localstatedir=/var' '--libdir=${prefix}/lib/x86_64-linux-gnu' > '--libexecdir=${prefix}/lib/x86_64-linux-gnu' > '--disable-maintainer-mode' '--build=x86_64-linux-gnu' > '--host=x86_64-linux-gnu' '--sysconfdir=/etc/dspam' > '--disable-dependency-tracking' '--enable-split-configuration' > '--enable-static' '--enable-external-lookup' '--enable-syslog' > '--with-logdir=/var/log/dspam/' > '--with-dspam-home=/var/spool/dspam' '--enable-domain-scale' > '--with-delivery-agent=/usr/bin/procmail' '--enable-daemon' > '--with-mysql-includes=/usr/include/mysql' > '--with-pgsql-includes=/usr/include/postgresql' > '--with-storage-driver=hash_drv,mysql_drv,pgsql_drv,sqlite3_drv' > '--enable-debug' '--enable-virtual-users' > '--enable-preferences-extension' '--enable-clamav' > 'build_alias=x86_64-linux-gnu' 'host_alias=x86_64-linux-gnu' > 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat > -Werror=format-security' 'LDFLAGS=-Wl,-Bsymbolic-functions > -Wl,-z,relro -Wl,-z,defs -Wl,--as-needed' > 'CPPFLAGS=-D_FORTIFY_SOURCE=2' > > TrainingMode teft TestConditionalTraining off Feature noise Feature > whitelist Algorithm graham burton Tokenizer osb Preference > "spamAction=tag" Preference "signatureLocation=headers" # > 'message' or 'headers' Preference "showFactors=off" Preference > "trainingMode=TEFT" Preference "spamSubject=[SPAM] " AllowOverride > trainingMode AllowOverride spamAction spamSubject AllowOverride > statisticalSedation AllowOverride enableBNR AllowOverride > enableWhitelist AllowOverride signatureLocation AllowOverride > showFactors AllowOverride optIn optOut AllowOverride > whitelistThreshold > > > When I'm moving a spam from my Spam folder to another folder (or > from another folder to my Spam folder), I got this error : > Signature retrieval for '%s' failed. Unable to find a valid > signature. Aborting. > > Here's the concerned email header : > > X-DSPAM-Result: Spam X-DSPAM-Processed: Mon Jan 5 15:05:07 2015 > X-DSPAM-Confidence: 0.9982 X-DSPAM-Probability: 1.0000 > X-DSPAM-Signature: 54aa9a1318642065924526 > > With debug mode enabled, i have more details : input args: > /usr/bin/dspam --source=error --class=innocent > --signature=54aa9a1318642065924526 --deliver --user XXXXXXX > --source=error --signature=%s > > Running this command works fine (as root, i got nothing printed as > dspam) : $ dspam --user XXXXX --class=innocent --source=error > --signature=54aa9a1318642065924526 --stdout --deliver=summary > X-DSPAM-Result: XXXXXX; result="Innocent"; class="Innocent"; > probability=0.0000; confidence=0.00; > signature=54aa9a1318642065924526 > > I updated my dovecot antispam_dspam_args parameter to this, hoping > to remove the second signature parameter : --deliver;--user;%u > > But it still the same issue. Maybe this extra signature=%s comes > from dovecot-antispam ? >
Sure looks like it. What hapens if you remove the '--signature=%%s' from the antispam plugin args? Tom -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCAAGBQJUq8YfAAoJEJPfMZ19VO/1gdwQAKrsvWFqACQvghph1hIwedwz 4sB1dWxTM4c6+2RHgzlfELNZPaFzvSBMCaqRgR0Wi3io9fhQpwQ3RSGhJgt1NE9l Ml3DjS3Jwxn4rmlW6l1bOIZ+bkNQlgsL9URim3CAQmExLobw2ddqTCHagNlsbm4O slpCKqru9jV3uij9gsANX3/odOuc/gt2FfLG/oYhbpfxjkQByCzYqZTspIWovGv7 HqS1aIU540N/95lDiC55QcHE6oiKRtjNxPxz6P6YCyIMnfGLlhL1q1YRe3kxTsWV R37wfu+TQs1oGUZCJX8CG4Pkd7vmrCjY99rpSCh6xX5fvpOH5zTK+Oce389MHg18 DMarFDvhDI0en5dZ+5U+NPGzjhs+nWZgQf8zYFUkFpn4KwaNnxiHKchsIemuZTd7 tDyqGVDZGZCD3vV10nvwikHPGdUF8mw6iunOIkzTsXmkA8FJTXjGFD9uOgk9uimi E+g8f3r0Nw+QVs5ZETXvwbCAxNG63mStSD0kFLHC4KXSWofoArBcv86aE4/jpe3K Si6iraBio+m25NXa2D6bDGTfqu1ZL7KUKIIkUYaSCVs6l5qlEZOmloOl4bltw/d8 5B0F7OEhyM1gQ0uu3c5tpQX9uQAZIOCtuphJkwWcVjV+e3oRk9ywAgTZb1VxaSNv byJmhZnKO/QsEE9VcseQ =zjqz -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net _______________________________________________ Dspam-user mailing list Dspam-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspam-user