Discussion:
Spamassassin user_prefs file
Cameron Jenkins
2003-05-31 21:59:26 UTC
Permalink
Hello,

I am running the current amavisd-new with spamassassin 2.55, on a debian
machine.

All seems to be working except the individual user_pref files with
spamassassin. Running amavisd-new debug shows the following:

Jun 1 07:51:15 supermarket amavisd-new[5766]: SpamControl: initializing
Mail::SpamAssassin
debug: Score set 0 chosen.
debug: running in taint mode? no
Jun 1 07:51:15 supermarket amavisd-new[5766]: SpamControl: turning on SA
auto-whitelisting (AWL)
debug: ignore: test message to precompile patterns and load modules
debug: using "/usr/share/spamassassin" for default rules dir
debug: using "/etc/spamassassin" for site rules dir
Failed to create default user preference file
/var/lib/amavis/.spamassassin/user_prefs
debug: using "/var/lib/amavis/.spamassassin/user_prefs" for user prefs file
debug: bayes: no dbs present, cannot scan:
/var/lib/amavis/.spamassassin/bayes_toks
debug: Score set 1 chosen.

I am trying to get the feature of .spamassassin that puts a user_prefs file
in each home dir, allowing individual choice of whitelisting and
blacklisting. Has anyone else experienced this issue?

Running spamassassin --debug shows absolutely nothing, so it must bypass it
or something.



-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
AMaViS-user mailing list
AMaViS-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/
Mark Martinec
2003-06-03 13:10:38 UTC
Permalink
Cameron,

| I am running the current amavisd-new with spamassassin 2.55, on a debian
| machine.
| All seems to be working except the individual user_pref files with
| spamassassin. Running amavisd-new debug shows the following:
|
| Failed to create default user preference file
| /var/lib/amavis/.spamassassin/user_prefs

Just create empty file /var/lib/amavis/.spamassassin/user_prefs
to quench this SA warning.

| I am trying to get the feature of .spamassassin that puts a user_prefs file
| in each home dir, allowing individual choice of whitelisting and
| blacklisting. Has anyone else experienced this issue?

Can't be done with the current architecture. What you have in mind
would break when message has more than one recipient, or we would
need to call once SA for each recipient.


See http://www.ijs.si/software/amavisd/ :

* SpamAssassin has configuration options to modify mail body,
but they seem to be ignored.

amavisd-new never modifies mail body or lets SA do it. All mail (header)
editing is done by amavisd-new and not by SA. Even though does SA
observe options in its configuration file to rewrite mail body and
modify mail header, the result is purposely not used by amavisd-new.
There are two reasons for that: to be able to offer a guarantee the mail
body will not be altered, and secondly, SA is only called once
regardless of the number of recipients. This means the per-recipient
handling of mail relaying and header editing needs to be done entirely
in amavisd-new, as there are no provisions in SA to analyze mail once
and then prepare different modifications for different recipients,
based on the same spam analysis;


Mark


-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
AMaViS-user mailing list
AMaViS-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Loading...