Mail stuck in /var/spool/postfix/hold
Remco Barendse
mailscanner at barendse.to
Thu Jun 17 06:36:00 UTC 2021
On Wed, 16 Jun 2021, Mark Sapiro wrote:
> On 6/16/21 12:48 AM, Remco Barendse wrote:
>> I noticed that ms-config did install pyzor, doing
>> MailScanner -debug --lint
>> reveals this :
>> internal error, python traceback seen in response: Traceback (most recent
>> call last):\n File "/bin/pyzor", line 408, in <module>\n main()\n File
>> "/bin/pyzor", line 131, in main\n config, options, args =
>> load_configuration()\n File "/bin/pyzor", line 107, in
>> load_configuration\n os.mkdir(options.homedir)\nPermissionError: [Errno
>> 13] Permission denied: '/var/spool/postfix/.pyzor' at
>> /usr/local/share/perl/5.30.0/Mail/SpamAssassin/Plugin/Pyzor.pm line 308.
>> SpamAssassin reported no errors.
>>
>> There is no such directory /var/spool/postfix/.pyzor the installer didn't
>> create it.
>
> The traceback above is from bin/pyzor trying to create it and the error is
> because the user doesn't have permission. This is strange since Run As User
> is postfix and postfix should have permission. What does
>
> ls -l /var/spool/postfix
>
> show?
I *think* the issue was that that directory was not created, when I
created it with the correct permissions, it stopped complaining
I will do another "from scratch" install, see if I can reproduce it.
I got DCC working, I see that scoring points but razor and pyzor do not
seem to trigger anything. Is there any way I can verify their working?
I did notice that permissions in /var/lib/spamassassin are all
debian-spamd. Thinking that MailScanner invokes SpamAss and not spamd, I
changed .razor to postfix.mtagroup (thanks Louis!) but I see no change no
mention of razor or pyzor in any headers
total 32
4 drwxr-xr-x 8 debian-spamd debian-spamd 4096 Jun 11 14:42 ./
4 drwxr-xr-x 45 root root 4096 Jun 13 14:18 ../
4 drwxr-xr-x 3 root root 4096 Jun 14 06:25 3.004004/
4 drwxr-xr-x 3 debian-spamd debian-spamd 4096 Jun 5 11:35 compiled/
4 drwxr-xr-x 2 debian-spamd debian-spamd 4096 Jun 11 14:42 .pyzor/
4 drwxr-xr-x 2 postfix mtagroup 4096 Jun 11 14:41 .razor/
4 drwx------ 3 debian-spamd debian-spamd 4096 Jun 9 22:00
sa-update-keys/
4 drwx------ 3 debian-spamd debian-spamd 4096 Jun 5 11:34 .spamassassin/
>
> --
> 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/mailman/listinfo/mailscanner
>
>
>
More information about the MailScanner
mailing list