Inconsistent SpamAssassin report
Diederik van den Burger
diederik at webrelated.nl
Tue Feb 7 18:17:56 UTC 2017
MailScanner is running as the postfix user. If I run the spamassassin command as root I do not see any errors. Is there any way to see logs on the spamassassin command as MailScanner runs it?
And indeed I have not mentioned my OS yet. I am running Ubuntu 16.04.1. While I respect your advise on using CentOS, I am willing to try and debug this first. As MailScanner lists Ubuntu as supported, I believe it should work. If I really cannot figure it out I will think of switching to CentOS.
Thanks though ;).
> On 07 Feb 2017, at 19:11, Peter Lemieux <mailscanner at replies.cyways.com> wrote:
> On most implementations only root will have access to /root/.spamassassin since /root usually has 700 permissions or more limited ones.
> Is MailScanner running as the postfix user or as root? If the latter, those permission errors shouldn't arise during scans run from MailScanner.
> What happens if you run your tests as root?
> Did I miss it, or did you not identify which platform you're running MailScanner on? I stick with CentOS for servers. In my experience MailScanner has installed and run flawlessly on that distribution for years.
> On 02/07/2017 12:54 PM, Diederik van den Burger wrote:
>> Thanks for your help by the way. When I run the following command:
>> spamassassin -t -d -C /etc/MailScanner/spamassassin.conf < spamemail
>> or even
>> sudo su postfix -p -c "spamassassin -t -d -C
>> /etc/MailScanner/spamassassin.conf < spamemail"
>> I still get the following warnings:
>> Feb 7 17:52:36.156  warn: config: path "/root/.spamassassin" is
>> inaccessible: Permission denied
>> Feb 7 17:52:36.157  warn: config: path
>> "/root/.spamassassin/user_prefs" is inaccessible: Permission denied
>> Feb 7 17:52:36.157  warn: config: default user preference file
>> /root/.spamassassin/user_prefs not accessible: Permission denied
>> And furthermore, I also don't get a spam report anymore. It says:
>> "(no report template found)"
>> Is this expected behaviour?
>> Best regards,
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
More information about the MailScanner