[dev] [imp] Spam Reporting

Andrew Coleman mercury at appisolutions.net
Fri Jun 4 08:34:06 PDT 2004


On Fri, 2004-06-04 at 04:57, Martin Luethi wrote:
> hi list
> 
> I used "/usr/bin/spamassassin -r" as the external program for reporting
> a mailmessage as spam
> 
> somehow spamassassin needs the directory $HOME/.spamassassin
> when I call spamassassin with popen() the HOME variable is set to "/"
> but it should be "/var/lib/amavis" (homedir from the apache/php user)
> 
> so I now use "env HOME=/var/lib/amavis /usr/bin/spamassassin -r" as my spam
> reporting program and everything works fine

Why do you need the home directory as /var/lib/amavis? are you servicing
users out of a database, rather than system users?

Coleman



More information about the dev mailing list