Re: exim - bad file descriptor
Le 05-06-2023, à 10:21:52 +0200, Michel Verdier a écrit :
Le 5 juin 2023 Steve a écrit :
Merci pour ton aide Michel.
De rien :) Let's continue in english for the list
Sure.
log_file_path = /var/log/exim4/%slog
log_selector = +smtp_protocol_error +smtp_syntax_error +tls_certificate_verified +tls_peerdn
exim writes directly to the logfiles. If you get the error almost every
day it can be because of the rotation.
This error appears everyday. I boot my machine every morning at 6 am.
I don't know it exim provide a reload command, so try
systemctl reload exim4-base
systemctl reload exim4-base.service
Failed to reload exim4-base.service: Job type reload is not applicable for unit exim4-base.service.
systemctl status exim4-base.service
○ exim4-base.service - exim4-base housekeeping
Loaded: loaded (/lib/systemd/system/exim4-base.service; static)
Active: inactive (dead)
TriggeredBy: ● exim4-base.timer
Docs: man:exim4(8)
it should be exim4-base but if the service is not found type exim and TAB
to find the actual service name
if it fails try
systemctl restart exim4-base
I stopped and restarted the service. Now I get:
systemctl status exim4-base.service
○ exim4-base.service - exim4-base housekeeping
Loaded: loaded (/lib/systemd/system/exim4-base.service; static)
Active: inactive (dead) since Mon 2023-06-05 10:29:02 CEST; 35s ago
TriggeredBy: ● exim4-base.timer
Docs: man:exim4(8)
Process: 41181 ExecStart=/etc/cron.daily/exim4-base systemd-timer (code=exited, status=0/SUCCESS)
Main PID: 41181 (code=exited, status=0/SUCCESS)
CPU: 63ms
jun 05 10:29:02 box.lan systemd[1]: Starting exim4-base.service - exim4-base housekeeping...
jun 05 10:29:02 box.lan systemd[1]: exim4-base.service: Deactivated successfully.
jun 05 10:29:02 box.lan systemd[1]: Finished exim4-base.service - exim4-base housekeeping.
if one succeed without message and with code 0, add in
/etc/logrotate.d/exim4-base and /etc/logrotate.d/exim4-paniclog
postrotate
systemctl <reload|restart> exim4-base
endscript
if you add reload but still get the error try restart, I don't know if
the reload free the files
Since this is a vanilla setup, I might as well uninstall and purge exim4
and re-install it (or postfix), what do you think?
Reply to: