SpamAssasin not installed !
Pascal Maes
pascal.maes at uclouvain.be
Sat Jun 4 17:17:06 UTC 2016
That was probably the reason
# sudo -u'#111' -g'#117' ./test-sa.pl
SpamAssassin : OK
but I have to move the script first because it was in ~root
Thanks
> Le 4 juin 2016 à 18:11, Jerry Benton <jerry.benton at mailborder.com> a écrit :
>
> Make sure you are not running MailScanner --lint from the /root directory as well.
>
>
>
>> On Jun 4, 2016, at 12:06 PM, Mark Sapiro <mark at msapiro.net> wrote:
>>
>> On 6/4/16 3:21 AM, Pascal Maes wrote:
>>>
>>> The following script is running well :
>>>
>>> #!/usr/bin/perl
>>>
>>> if (eval "require Mail::SpamAssassin")
>>> {
>>> print "SpamAssassin : OK\n";
>>> }
>>> else
>>> {
>>> print "SpamAssassin : KO\n";
>>> }
>>>
>>>
>>> # ./test-sa.pl
>>> SpamAssassin : OK
>>
>>
>> What happens if you run
>>
>> sudo -u'#111' -g'#117' ./test-sa.pl
>>
>>> but MailScanner complains about SpamAssassin not installed :
>>>
>>> # MailScanner --lint
>> ...
>>> MailScanner setting GID to (117)
>>> MailScanner setting UID to (111)
>>>
>>> Checking for SpamAssassin errors (if you use it)...
>>> You want to use SpamAssassin but have not installed it. at /usr/share/MailScanner/perl/MailScanner/SA.pm line 169.
>>> I will run without SpamAssassin for now, you will not detect much spam until you install SpamAssassin. at /usr/share/MailScanner/perl/MailScanner/SA.pm line 170.
>>
>>
>> Somehow the directory containing perl's Mail/SpamAssassin.pm is not in
>> the perl's include path, or the effective user/group can't read it.
>>
>> --
>> Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
>> San Francisco Bay Area, California better use your sense - B. Dylan
>>
>>
>> --
>> MailScanner mailing list
>> mailscanner at lists.mailscanner.info
>> http://lists.mailscanner.info/listinfo/mailscanner
>>
>
>
>
> --
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/listinfo/mailscanner
>
--
Pascal
More information about the MailScanner
mailing list