Re: [exim] 4.95 failed to stat log directory /var/spool/exim…

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Axel Rau
Ημερομηνία:  
Προς: Odhiambo Washington
Υ/ο: exim users
Αντικείμενο: Re: [exim] 4.95 failed to stat log directory /var/spool/exim/log:


> Am 21.05.2022 um 14:28 schrieb Odhiambo Washington <odhiambo@???>:
>
>
>
> On Sat, May 21, 2022 at 1:38 PM Axel Rau <Axel.Rau@??? <mailto:Axel.Rau@chaos1.de>> wrote:
>
>
>> Am 21.05.2022 um 11:53 schrieb Odhiambo Washington <odhiambo@??? <mailto:odhiambo@gmail.com>>:
>>
>>
>>
>> On Sat, May 21, 2022 at 11:26 AM Axel Rau via Exim-users <exim-users@??? <mailto:exim-users@exim.org>> wrote:
>> Hi all,
>>
>> Recently my mailman 3 servers began spamming with tons of such log messages:
>> cannot accept message: failed to stat log directory /var/spool/exim/log: Permission denied
>>
>> root@lists5:/var/spool/exim # ls -ld .
>> drwxrwx--- 5 mailnull mail 5 May 18 05:45 .
>> root@lists5:/var/spool/exim # ls -l
>> total 10
>> drwxr-x--- 2 mailnull mail 8 Jan 18 20:17 db
>> drwxr-x--- 2 mailnull mail 2 May 18 03:01 input
>> drwxr-x--- 2 mailnull mail 2 May 18 03:01 msglog
>>
>> root@lists5:/var/spool/exim # id 26
>> uid=26(mailnull) gid=26(mailnull) groups=26(mailnull)
>>
>> user mailman is in the mail group.
>> Should it be in the mailnull group?
>>
>> What is the correct setup?
>>
>> Any help appreciated,
>> Axel
>> ---
>> PGP-Key: CDE74120 ☀ computing @ chaos claudius
>>
>> Is your Exim even able to receive emails?
>> /var/spool/exim should not contain any 'log' directory.
>
> Yes, it forwards any incoming mails to mailman and works as relay for outgoing mails.
> I think, the error message means msglog.
>
> Axel
>
> Since Mailman3 communicates with Exim via LMTP, there is nowhere in Mailman3 where a log file specification is given.
> I guess the issue is within your Exim configuration and not Mailman3. That is why I was asking whether your Exim is actually
> delivering any e-mails at all.
> Perhaps in your Mailman3 config you have told the daemon to use that weird log path?



The log entries seem to be triggered by error mails from Django, which runs as user mailman and does not use LMTP:
- - -
root@lists5:/ #    su -l mailman -c 'mail -vs TEST root'
hi, bye
.
EOT
LOG: MAIN PANIC DIE
  Failed to create spool file /var/spool/exim//input//1nsQwF-000Gsb-1Z-D: Permission denied
2022-05-21 15:22:43 1nsQwF-000Gsb-1Z Failed to create spool file /var/spool/exim//input//1nsQwF-000Gsb-1Z-D: Permission denied
2022-05-21 15:22:43 1nsQwF-000Gsb-1Z Failed to create spool file /var/spool/exim//input//1nsQwF-000Gsb-1Z-D: Permission denied
- - -
exim config attached.


Axel


---
PGP-Key: CDE74120 ☀ computing @ chaos claudius