I am facing an issue in my server. Sometime syslog auto restart. But after auto restart postfix is not create any logs. When restart postfix manually then it will work. How to solve this issue.
root@mail:~# systemctl status postfix ● postfix.service - Postfix Mail Transport Agent Loaded: loaded (/lib/systemd/system/postfix.service; enabled; vendor preset: enabled) Active: active (exited) since Tue 2025-06-17 23:21:55 UTC; 4 days ago Docs: man:postfix(1) Main PID: 71566 (code=exited, status=0/SUCCESS) CPU: 3ms Jun 17 23:21:55 mail.team71.link systemd[1]: Starting Postfix Mail Transport Agent... Jun 17 23:21:55 mail.team71.link systemd[1]: Finished Postfix Mail Transport Agent. root@mail:~# ^C root@mail:~# systemctl status syslog ● rsyslog.service - System Logging Service Loaded: loaded (/lib/systemd/system/rsyslog.service; enabled; vendor preset: enabled) Active: active (running) since Sun 2025-06-15 18:17:03 UTC; 6 days ago TriggeredBy: ● syslog.socket Docs: man:rsyslogd(8) man:rsyslog.conf(5) https://www.rsyslog.com/doc/ Main PID: 701 (rsyslogd) Tasks: 4 (limit: 4447) Memory: 16.6M CPU: 24.370s CGroup: /system.slice/rsyslog.service └─701 /usr/sbin/rsyslogd -n -iNONE Jun 15 18:17:03 mail.team71.link systemd[1]: Starting System Logging Service... Jun 15 18:17:03 mail.team71.link rsyslogd[701]: imuxsock: Acquired UNIX socket '/run/systemd/journal/syslog' (fd 3) from systemd. [v8.2112.0] Jun 15 18:17:03 mail.team71.link rsyslogd[701]: rsyslogd's groupid changed to 113 Jun 15 18:17:03 mail.team71.link rsyslogd[701]: rsyslogd's userid changed to 107 Jun 15 18:17:03 mail.team71.link rsyslogd[701]: [origin software="rsyslogd" swVersion="8.2112.0" x-pid="701" x-info="https://www.rsyslog.com"] start Jun 15 18:17:03 mail.team71.link systemd[1]: Started System Logging Service. Jun 22 00:00:02 mail.team71.link systemd[1]: rsyslog.service: Sent signal SIGHUP to main process 701 (rsyslogd) on client request. Jun 22 00:10:02 mail.team71.link rsyslogd[701]: [origin software="rsyslogd" swVersion="8.2112.0" x-pid="701" x-info="https://www.rsyslog.com"] rsyslogd was HUPed
This the log.
rsyslog.service: Sent signal SIGHUP to main process 701 (rsyslogd) on client request. after this log postfix will not create any log until restart the postfix