[imp] Report as Spam

Edwin Culp eculp at encontacto.net
Sun Sep 12 06:25:25 PDT 2004

Quoting Daniel Eckl <daniel.eckl at gmx.de>:

> As your IMAP users are no system user and have no homedir, you can have
> pre-user preferences only when using sp0amassassin with it's mysql storage. I
> have not tested this, so you have to read spamassassin documentation on how
> to install it this was and how to get IMP to give the username to the
> spamassassin program.
> Daniel

Interesting point, Daniel.  I don't have anything in mysql
although I did configure the tables in SAM, they are empty.  I
only have virtual users and the configuration for reporting both
spam work as expected.  I use ldap but IIRC there are no
modifications there.  As enigma evasion for the time being, I'm
going to assume that it works because I call spamassassin from
an xfilter in my .maildroprc in each users home directory.
Otherwise I would have to go back and try a reconfigure that I
would prefer not to do.  I do remember that I tried to set up
mysql but could never get it the recognize the -u username, but
I don't remember how I came to my current solution.  Sorry.  I'm
told that this is a common problem for us "Senior Citizens" :)

Geoff, I hope the discussion will be helpful, at least.  Please
keep us informed as to how you solve the problem.  Hopefully it
will help someone else in the future.


> Am Sonntag, 12. September 2004 14:09 schrieb Edwin Culp:
>> Quoting Geoff Sweet <lists at whootis.com>:
>> > This is an odd question and as such I am not sure where to begin so I am
>> > delicately posting this in a couple mailing lists because I feel it is a
>> > culmination of several things.
>> >
>> > In my Imp I turned on the "Report as Spam".  I have the Imp config setup
>> > to use spam like so:
>> >
>> > /**
>> >  ** Spam Reporting
>> >  **/
>> >
>> > // Should we display a "report this message as spam" link in the
>> > // message view?
>> > $conf['spam']['reporting'] = true;
>> >
>> > // If so, should we report them via email?
>> > $conf['spam']['email'] = 'postmaster at whootis.net';
>> >
>> > // Should we report them via an external program?
>> > $conf['spam']['program'] = '/usr/local/bin/spamassassin -r';
>> >
>> >
>> > Now however when I use this feature I get this in my Apache logs:
>> > Cannot write to //.spamassassin/user_prefs: No such file or directory
>> > Failed to create default user preference file //.spamassassin/user_prefs
>> > lock: 58007 cannot create tmp lockfile
>> > //.spamassassin/bayes.lock.serv.whootis.com.58007 for
>> > //.spamassassin/bayes.lock: No such file or directory
>> >
>> > So just out of curiosity I create /.spamassassin to see what gets
>> > created and who created it.  As I suspected the files are owned by my
>> > apache user.  So here is my question, isn't calling that spamassassin
>> > command suppose to be invoked as the authenticated vpopmail user?  Is
>> > the behavior I am seeing normal?  Can anyone offer me a better solution
>> > to what I am doing?  I like the idea of allowing all my users to build
>> > on the Bayes system.
>> AFAIK, the file that you are looking for should be automatically
>> created by spamassassin in each user's home directory based on
>> your configuration and the way it is invoked.  In my personal
>> case I have:
>> # ls -l /home/virtual/encontacto.net/eculp/.spamassassin
>> total 4578
>> -rw-------  1 www  www   655360 Sep 12 04:32 bayes_seen
>> -rw-------  1 www  www  5292032 Sep 12 04:32 bayes_toks
>> -rw-rw----  1 www  www     1165 Aug 11 07:33 user_prefs
>> I've never had to touch mine but it is invoked with maildrop and
>> the file is based on the local configuration file.  In my case
>> it is the following:
>> ls -l /usr/local/etc/mail/spamassassin/local.cf
>> -rw-r--r--  1 root  wheel  1227 Sep  7 20:02
>> /usr/local/etc/mail/spamassassin/local.cf
>> I should also warn that since my courier/maildrop/IMP has always
>> worked, so I haven't taken the time to figure out how it works.
>> I'm basically guessing.  I do make changed in the point system in
>> local.cf ocassionally and that is about it.  I only seem to have
>> time for problems ;)  I hope this will give you another
>> perspective and make your finding a solution easier.
>> ed
> --
> IMP mailing list - Join the hunt: http://horde.org/bounties/#imp
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe at lists.horde.org

More information about the imp mailing list