testing spam gives warn config error - SpamAssassin

This is a discussion on testing spam gives warn config error - SpamAssassin ; Hi all, I have a new install of MailScanner / Postfix / Spamassassin when I run sudo -u postfix spamassassin -p /etc/MailScanner/spam.assassin.prefs.conf -t I get the following error: warn config path /root/ .spamassassin is inaccessible permission denied How can I ...

+ Reply to Thread
Results 1 to 5 of 5

Thread: testing spam gives warn config error

  1. testing spam gives warn config error

    Hi all,

    I have a new install of MailScanner / Postfix / Spamassassin
    when I run sudo -u postfix spamassassin -p
    /etc/MailScanner/spam.assassin.prefs.conf -t < message.MAI
    I get the following error:
    warn config path /root/ .spamassassin is inaccessible permission denied

    How can I resolve this error?

    Thanks
    Kate


  2. Re: testing spam gives warn config error

    Kate Kleinschafer wrote:
    > Hi all,
    >
    > I have a new install of MailScanner / Postfix / Spamassassin
    > when I run sudo -u postfix spamassassin -p
    > /etc/MailScanner/spam.assassin.prefs.conf -t < message.MAI
    > I get the following error:
    > warn config path /root/ .spamassassin is inaccessible permission denied
    >
    > How can I resolve this error?
    >


    by running the command as root or by using another directory.


  3. Re: testing spam gives warn config error

    Kate Kleinschafer wrote:
    > I don't think I want to run it as root do I?


    run the test command as root, not mailscanner. you have the error while
    running the test command. you don't have an error while running
    mailscanner.

    > (MailScanner is set to use user postfix)


    I Don't use MS so I have no idea about its configuration. I use
    amavisd-new.


    >
    > Which config file sets it to use /root/ directory?
    >


    when you'll run SA from mailscanner, I'm sure the /root directory won't
    be used. so run it and see.


  4. Re: testing spam gives warn config error

    I am almost 100% certain that I need to be able to run this command as
    postfix.

    Kate

    mouss wrote:
    > Kate Kleinschafer wrote:
    >> I don't think I want to run it as root do I?

    >
    > run the test command as root, not mailscanner. you have the error
    > while running the test command. you don't have an error while running
    > mailscanner.
    >
    >> (MailScanner is set to use user postfix)

    >
    > I Don't use MS so I have no idea about its configuration. I use
    > amavisd-new.
    >
    >
    >>
    >> Which config file sets it to use /root/ directory?
    >>

    >
    > when you'll run SA from mailscanner, I'm sure the /root directory
    > won't be used. so run it and see.



  5. Re: testing spam gives warn config error

    Kate Kleinschafer wrote:
    > I am almost 100% certain that I need to be able to run this command as
    > postfix.
    >


    then find out how to override root environment. try:
    sudo postfix HOME=/var/spool/postfix spamassassin ...


+ Reply to Thread