You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Cessna172 <ju...@calgary.homelinux.net> on 2008/02/14 01:14:50 UTC
can't find .spamassassin dir for aliased user
Hi All,
I've got SA 3.1.9-1 on CentOS 5.1 and I see these messages:
...
Feb 13 16:55:51 nexus spamd[1837]: spamd: handle_user unable to find user:
'corey'
Feb 13 16:55:51 nexus spamd[1837]: 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 1161, <GEN127> line 4.
...
Feb 13 16:55:54 nexus spamd[1837]: mkdir //.spamassassin: Permission denied
at /usr/lib/perl5/vendor_perl/5.8.8/Mail/SpamAssassin.pm line 1536
The problem is the user 'corey@host.domain' is aliased to mailbox/linux user
'coreymjw'. It can't run as 'corey', so spamd (and spamc) runs as 'root'.
I am running a 'filter.sh' as the content filter in my postfix master.cf:
spamassassin unix - n n - - pipe
flags=Rq user=spamd argv=/usr/local/bin/filter.sh -oi -f ${sender}
${recipient}
And spamc in filter.sh is set to use a user parameter:
$SPAMASSASSIN -x -E -u $USER > $OUTPUT
Is there anyway around this? i.e. to have spamc run as 'coreymjw' so it can
find/write to ~coreymjw/.spamassassin? Mail to 'coreymjw@host.domain' works
perfectly. On my system user names are very cryptic and we don't publish
these names as email addresses. It's a pain to have these errors on the
majority of our incoming e-mails.
Thanks in advance
Corey.
--
View this message in context: http://www.nabble.com/can%27t-find-.spamassassin-dir-for-aliased-user-tp15471253p15471253.html
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.