I feel like I'm missing something really obvious here... :(

Multiple RedHat8 servers, Postfix configured on all of them for internal network mail server (primarily server log updates, etc. to admin).

On all of them bar one, I get relevant logging in /var/log/maillog. On the one - maillog remains empty, even though mail is being sent OK.

I've diff-compared main.cf, master.cf and rsyslog.conf on one that logs to maillog and the one that doesn't. Main.cf has a different hostname specified, master.cf is identical. Both rsyslogd.conf have the following setup for mail:

*.info;mail.none;authpriv.none;cron.none                /var/log/messages
mail.*                                                  -/var/log/maillog

Yet nothing gets logged to /var/log/maillog on ONE of them. Mail is getting sent and received from the server.

Logging is working for other services.

journalctl -u postfix shows (at the end):

Jan 09 03:43:06 emp80.simonandkate.lan postfix/pickup[3162096]: 35E30201E928: uid=0 from=<root> Jan 09 03:43:06 emp80.simonandkate.lan postfix/cleanup[3169954]: 35E30201E928: message-id=<20210108174306.35e30201e...@emp80.simonandkate.lan> Jan 09 03:43:06 emp80.simonandkate.lan postfix/qmgr[1989]: 35E30201E928: from=<root.em...@simonandkate.lan>, size=102096, nrcpt=1 (queue active) Jan 09 03:43:06 emp80.simonandkate.lan postfix/smtp[3169963]: 35E30201E928: to=<r...@simonandkate.net>, relay=192.168.1.235[192.168.1.235]:25, delay> Jan 09 03:43:06 emp80.simonandkate.lan postfix/qmgr[1989]: 35E30201E928: removed
-- Reboot --
Jan 18 02:05:45 emp80.simonandkate.lan postfix/qmgr[1958]: warning: backward time jump detected -- slewing clock Jan 18 02:11:25 emp80.simonandkate.lan postfix/qmgr[1958]: warning: backward time jump recovered -- back to normality
-- Reboot --
Jan 25 03:04:36 emp80.simonandkate.lan postfix/qmgr[1968]: warning: backward time jump detected -- slewing clock Jan 25 03:08:02 emp80.simonandkate.lan postfix/qmgr[1968]: warning: backward time jump recovered -- back to normality
-- Reboot --
Mar 07 05:35:51 emp80.simonandkate.lan postfix/qmgr[1965]: warning: backward time jump detected -- slewing clock Mar 07 05:39:01 emp80.simonandkate.lan postfix/qmgr[1965]: warning: backward time jump recovered -- back to normality
-- Reboot --
Apr 11 05:04:12 emp80.simonandkate.lan postfix/qmgr[2009]: warning: backward time jump detected -- slewing clock Apr 11 05:11:53 emp80.simonandkate.lan postfix/qmgr[2009]: warning: backward time jump recovered -- back to normality
-- Reboot --
Jun 07 22:40:56 emp80.simonandkate.lan postfix/qmgr[1975]: warning: backward time jump detected -- slewing clock Jun 07 22:49:31 emp80.simonandkate.lan postfix/qmgr[1975]: warning: backward time jump recovered -- back to normality
-- Reboot --
Nov 04 17:58:53 emp80.simonandkate.lan postfix/qmgr[2047]: warning: backward time jump detected -- slewing clock Nov 04 18:00:01 emp80.simonandkate.lan postfix/qmgr[2047]: warning: backward time jump recovered -- back to normality

...where as can be seen it was logging OK in January, then it stopped.

Permissions on the log file:
-rw-------  1 root   root                    0 Nov 28 03:27 maillog

What am I missing??



--
Simon Wilson

Reply via email to