LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-26-2007, 05:29 PM   #1
hlingler
Member
 
Registered: May 2007
Location: Connellsville, PA, USA
Distribution: Fedora 8/9/10/11
Posts: 71

Rep: Reputation: 15
SpamAssassin Questions


Hello, All!
I've been seeing a lot of messages like this in my /var/log/maillog:
Code:
May 26 08:28:12 presario.localdomain spamd[17857]: spamd: connection from presario.localdomain [127.0.0.1] at port 49144
May 26 08:28:12 presario.localdomain spamd[17857]: spamd: setuid to root succeeded
May 26 08:28:12 presario.localdomain spamd[17857]: spamd: still running as root: user not specified with -u, not found, or set to root, falling back to nobody at /usr/bin/spamd line 1147, <GEN9> line 4.
May 26 08:28:12 presario.localdomain spamd[17857]: spamd: processing message <200705260828.11397.root@presario.localdomain> for root:99
May 26 08:28:17 presario.localdomain spamd[17857]: locker: safe_lock: cannot create tmp lockfile /root/.spamassassin/auto-whitelist.lock.presario.localdomain.17857 for /root/.spamassassin/auto-whitelist.lock: Permission denied
May 26 08:28:17 presario.localdomain spamd[17857]: auto-whitelist: open of auto-whitelist file failed: locker: safe_lock: cannot create tmp lockfile /root/.spamassassin/auto-whitelist.lock.presario.localdomain.17857 for /root/.spamassassin/auto-whitelist.lock: Permission denied
May 26 08:28:17 presario.localdomain spamd[17857]: bayes: locker: safe_lock: cannot create tmp lockfile /root/.spamassassin/bayes.lock.presario.localdomain.17857 for /root/.spamassassin/bayes.lock: Permission denied
After a lot of searching, I gather that it is not permitted to run spamd as root, and the only suggestion I found was to create/setup a "dummy" user to run spamd. Rather than create another user, I just changed the config files /etc/mail/spamassassin/spamassassin-helper.sh and /etc/sysconfig/spamassassin so that they contained the option "-u mail" to run with user=mail.
BTW, this is just a desktop box, no servers (yet), only me and my son as normal users, and it was only my internal system mail for "root" that was getting the maillog errors.
So, my question is: Is this couth? It seems to be working so far - I tested it and the maillog errors seem to have stopped - and directories /var/spool/mail/.spamassassin and /var/spool/mail/.razor were automagically created (I guess since /var/spool/mail is user "mail's" home directory), but I see no files "auto-whitelist", "bayes-seen" or "bayes-tok" so far. Anybody foresee any problems, or anything I missed here?
Thanx,
Vince
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Questions about setting a Spamassassin Rule combilli Linux - Software 1 11-02-2006 03:50 PM
Basic questions about Spamassassin IgD Linux - Software 4 12-12-2004 01:27 PM
Help me - spamassassin newnewnew Linux - Software 1 08-30-2004 05:57 AM
spamassassin w/ procmail vs. spamassassin w/sendmail bleunuit Linux - Networking 1 08-01-2004 07:12 AM
Spamassassin help! byteZero Linux - Software 3 03-11-2004 02:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration