SA Bugzilla – Bug 89
A_FROM_IN_AUTO_WLIST can't open auto_whitelist_path
Last modified: 2002-03-16 19:08:40 UTC
Using SpamAssassin 2.01 on Linux with Exim (installed by ISP). Mail recently started bouncing with message: Failed to run A_FROM_IN_AUTO_WLIST SpamAssassin test, skipping: (Cannot open auto_whitelist_path /home/johndoe/.spamassassin/auto-whitelist: ) auto-whitelist file exists and is 600 perms. Changed to 700. No difference. .spamassassin directory is 700 perms. Both appear consistent w/documentation expectations. One, then two .lock files seen in .spamassassin directory at time of bounce: auto-whitelist.lock (created around 9:57am) auto-whitelist.lock.localhost.fqdn.net.pid also present (localhost.fqdn.net being the FQDN of the localhost and pid most likely being the pid running the spam check at that moment). The latter file also had "localhost.fqdn.net.pid" within it multiple times - at least 25 times. Deleted both lock files - no change. To make matters more surreal, I have also learned that the mail _did_ bounce, yet the recipients claim to have still received the messages. Not 100% sure if this is true or not (would need to compare headers closely). Disabled SpamAssassin in the meantime and filed report with ISP. Advised I would be searching through spamassassin.org and bugzilla, then posting to bugzilla worst case. Clues welcome!
Subject: Re: New: A_FROM_IN_AUTO_WLIST can't open auto_whitelist_path What user owns the .spamassassin directory and its contents? What user is spamd running as when trying to access the file? Since the permissions are 0600 on the file, they'd have to be the same user. If spamd is run with the "-D" flag, then it will produce debugging messages which can help identify this. Also, spamd logs through syslog details of its processing which include (I think -- don't recall in 2.01) details of the username being used to process each message.
Greetings! The .spamassassin directory and contents are owned by user "foo" (say the email is foo@host.org). spamd ... well, that's a good question. I'd give you the answer to that but the ISP has recently deprecated SpamAssassin so now I'm suddenly unable to pursue this further! :-o The permissions being 0600 - good point. The directory was 700 perms but the file was originally 664 perms. Perhaps SpamAssassin ran as a daemon and then didn't have permission to mess with the other files. And yet the whitelist file _did_ have content in it - if you were to do "strings" on it you'd get info. So something must have changed ... I'll ask the ISP to please give this another shot with the -D flag. It also sounds like they need a newer release. :-)