<div dir="ltr"><div><div><div>root@shopzeus:~ # su - postfix -s /bin/csh -c 'spamassassin -t /root/test.eml -C /usr/local/etc/MailScanner '<br>This account is currently not available.<br><br></div>Anyway, have changed the shell to csh and then:<br><br>root@shopzeus:~ # chmod 777 /tmp/test.eml<br>root@shopzeus:~ # su postfix -c 'spamassassin -t /tmp/test.eml -C /usr/local/etc/MailScanner '<br>config: no rules were found! Do you need to run 'sa-update'? at /usr/local/bin/spamassassin line 413.<br>root@shopzeus:~ # sa-update<br>root@shopzeus:~ # su postfix -c 'spamassassin -t /tmp/test.eml -C /usr/local/etc/MailScanner '<br>config: no rules were found! Do you need to run 'sa-update'? at /usr/local/bin/spamassassin line 413.<br><br></div>What's next?<br></div><div><div><div><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-09-10 23:19 GMT+02:00 Andrew Colin Kissa <span dir="ltr"><<a href="mailto:andrew@topdog.za.net" target="_blank">andrew@topdog.za.net</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
On 10 Sep 2015, at 6:40 PM, Les <<a href="mailto:nagylzs@gmail.com">nagylzs@gmail.com</a>> wrote:<br>
<br>
> Cannot do it with the same user. It is postfix and it cannot run shell commands.<br>
<br>
</span>You can by overriding.<br>
<br>
su - postfix -s /bin/bash -c 'spamassassin -t test.eml -C /usr/local/etc/MailScanner'<br>
<br>
<br><br>
<br>
--<br>
MailScanner mailing list<br>
<a href="mailto:mailscanner@lists.mailscanner.info">mailscanner@lists.mailscanner.info</a><br>
<a href="http://lists.mailscanner.info/listinfo/mailscanner" rel="noreferrer" target="_blank">http://lists.mailscanner.info/listinfo/mailscanner</a><br>
<br>
<br></blockquote></div><br></div>