spamassassin-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reindl Harald <h.rei...@thelounge.net>
Subject Re: Unmanageable spam levels
Date Tue, 28 Apr 2015 11:15:34 GMT

Am 28.04.2015 um 13:10 schrieb Benjamin Copeland:
> On 28 April 2015 at 12:01, Christian Lau├čat
> <spamassassin@list.laussat.de> wrote:
>> Am 28.04.2015 12:52, schrieb Benjamin Copeland:
>>>
>>> Any suggestions on how I can improve this?
>>
>> Which user are you running the script as? Is it the same user as your mailserver
is invoking spamassassin?
>
> I manually run it, I run it as sudo root.
>
> The script chown's the mbox, that being said I have now added the -u option in.
>
>> You should use the -u option for sa-learn to set the right user

su -c "command params" - user

*never* start commands as root which don#t need that privileges, hence a 
good shellscript does chown/chmod and then fires sa-learn as the target user


Mime
View raw message