SA Scoring
Glenn Steen
glenn.steen at gmail.com
Wed May 17 22:53:21 IST 2006
On 17/05/06, Ed Bruce <edwardbruce at sbcglobal.net> wrote:
> Dhawal Doshy wrote:
> > Ed Bruce writes:
> >> Glenn Steen wrote:
> >>> On 17/05/06, --[UxBoD]-- <uxbod at splatnix.net> wrote:
> >>>> Hi Scott,
> >>>> oops again, upgraded DCC and was using wrong path :( with respect to
> >>>> the bayes database yes I am using root. Should it be held under the
> >>>> postfix
> >>>> account ?
> >>>
> >>> Phil, if that path/files are readable by postfix (assuming you do the
> >>> usual unprivileged chroot thing)... well, then that is fine. If not
> >>> ... :-).
> >>> Easiest test is to su into the postfix user account and rerun the SA
> >>> lint from there... Search the output for "bayes":-).
> >>> Ownership of the files/directories and/or permission "mask" might need
> >>> be adjusted, if it isn't readable/writable.
> >>> While you're at it (logged in as the postfix user), also look that
> >>> pyzor/razor/dcc really works for that user too... It's rather common
> >>> to make the postfix users homedir unwritable, so these might need some
> >>> help too.
> >> I have a question, since our postfix account is in a chroot jail and
> >> can't be su'ed to, how do you check this out?
> >
> >
> > I am not too sure but the regular method should work:
> > [root at hostname ~]# su - postfix -s /bin/sh
> > [postfix at hostname ~]$ spamassassin -D --lint -x
> > - dhawal
> >
> Thanks that worked. Adding the -s option actually. Thanks again.
Yep, Dahwal is quite correct... The thing is that the postfix user is
often set to have a "non-shell" command for login ... /bin/false isn't
uncommon...:-). So you simply have to tell what shell to use. If you
like a shell with a little more functionality (commandline
history/editing....:-) you could run bash ... or whatever gets you
happy:-).
--
-- Glenn
email: glenn < dot > steen < at > gmail < dot > com
work: glenn < dot > steen < at > ap1 < dot > se
More information about the MailScanner
mailing list