On 28 April 2015 at 12:18, RW <rwmailli...@googlemail.com> wrote:
> On Tue, 28 Apr 2015 12:10:15 +0100
> Benjamin Copeland wrote:
>
>> On 28 April 2015 at 12:01, Christian Laußat
>> <spamassas...@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.
>
> It should be whatever spamd is running as, or drops to. It shouldn't
> be root.

True.

>
>> The script chown's the mbox, that being said I have now added the -u
>> option in.
>
> Don't do that unless you have multiple virtual users configured and
> genuinely need it.

Indeed, I read man page.

I had to add debian-spamd to lists user (mailman user).

sudo su -c "sh /home/ubuntu/mmlearn list-name" - debian-spamd

Now works

Reply via email to