Postifx Log is Sparse
Postifx Log is Sparse
I can not get decent logs with postfix on Centos 8.
The information is very brief with only the following information logged:
postfix/smtpd[55254]: warning: hostname abc.example.com does not resolve to address xxx.xxx.xxx.xxx
postfix/smtpd[63717]: warning: hostname example2.com does not resolve to address xxx.xxx.xxx.xxx
I have a Centos 7 server setup very similar to the Centos 8 server and that 7 server logs much more information such as:
postfix/smtpd[1111]: connect from unknow [xxx.xxx.xxx.xxx]
postfix/anvil[5581] statistics: max connection rate 1/60s for (smtp:xx.xx.xx.xx) at Nov 15 20:43:10
postfix/qmgr[3409]: 8DFE78239876: from=<someone@example.com>, size = 1580, nrcpt=1 (queue active)
postfix/smtpd[5949]: lost connection after AUTH from unknow xxx.xxx.xxx.xxx
It seems that on the Centos 8 server the entries for anvil and qmgr are not being logged and the smptd logging is restricted to warnings only.
I do need to have the other info logged but I can not work out why this is not happening. I have tried adding -v to
smtp inet n - n - - smtpd -v
in master.cf but it does not change anything (reloaded).
Is this possibly an issue with rsyslog instead?
The information is very brief with only the following information logged:
postfix/smtpd[55254]: warning: hostname abc.example.com does not resolve to address xxx.xxx.xxx.xxx
postfix/smtpd[63717]: warning: hostname example2.com does not resolve to address xxx.xxx.xxx.xxx
I have a Centos 7 server setup very similar to the Centos 8 server and that 7 server logs much more information such as:
postfix/smtpd[1111]: connect from unknow [xxx.xxx.xxx.xxx]
postfix/anvil[5581] statistics: max connection rate 1/60s for (smtp:xx.xx.xx.xx) at Nov 15 20:43:10
postfix/qmgr[3409]: 8DFE78239876: from=<someone@example.com>, size = 1580, nrcpt=1 (queue active)
postfix/smtpd[5949]: lost connection after AUTH from unknow xxx.xxx.xxx.xxx
It seems that on the Centos 8 server the entries for anvil and qmgr are not being logged and the smptd logging is restricted to warnings only.
I do need to have the other info logged but I can not work out why this is not happening. I have tried adding -v to
smtp inet n - n - - smtpd -v
in master.cf but it does not change anything (reloaded).
Is this possibly an issue with rsyslog instead?
- KernelOops
- Posts: 428
- Joined: 2013/12/18 15:04:03
- Location: xfs file system
Re: Postifx Log is Sparse
The default configuration should log all those messages from anvil/qmgr/submission/etc.
Could it be something you've set?
I run nearly 100 email servers under CentOS 8 and I don't have this issue.
Could it be something you've set?
I run nearly 100 email servers under CentOS 8 and I don't have this issue.
--
R.I.P. CentOS
--
R.I.P. CentOS
--
Re: Postifx Log is Sparse
if you have any issue with postfix name resolution try to:
mkdir -p /var/spool/postfix/etc && cp /etc/resolv.conf /var/spool/postfix/etc/
then restart
mkdir -p /var/spool/postfix/etc && cp /etc/resolv.conf /var/spool/postfix/etc/
then restart
- KernelOops
- Posts: 428
- Joined: 2013/12/18 15:04:03
- Location: xfs file system
Re: Postifx Log is Sparse
BShT, that is helpful when running postfix under a chroot environment.
--
R.I.P. CentOS
--
R.I.P. CentOS
--
Re: Postifx Log is Sparse
I never managed to fix this problem. Postfix still only contains basic information in the maillog file.
I tried the resolv.conf fix and restarted but it's still the same.
I put this issue on the shelf for a few months and ignored it but now I do need to see what's going on here because some new entries are in the log and I can't debug them.
Every five minutes I am getting errors like this:
and not having better logging is making it harder to track down.
What Changed?
This seemed to start when I changed to using letsencrypt for the mail server (never had certificate for the mail server, it was always self signed). It could also be connected with an update to a later version of phpbb.
I don't know what is generating the log entries. Is it one of my server scripts email customers? Is it phpbb sending out notifications? Is it one single message that is being rejected by a client and postfix is trying to resend it?
It is regular at every 5 mins but I can't work out what's going on.
I tried the resolv.conf fix and restarted but it's still the same.
I put this issue on the shelf for a few months and ignored it but now I do need to see what's going on here because some new entries are in the log and I can't debug them.
Every five minutes I am getting errors like this:
Code: Select all
Jun 11 17:15:56 example_mysite postfix/smtpd[28917]: warning: TLS library problem: error:14209102:SSL routines:tls_early_post_process_client_hello:unsupported protocol:ssl/statem/statem_srvr.c:1686:
Jun 11 17:20:57 example_mysite postfix/smtpd[29215]: warning: TLS library problem: error:14209102:SSL routines:tls_early_post_process_client_hello:unsupported protocol:ssl/statem/statem_srvr.c:1686:
Jun 11 17:25:57 example_mysite postfix/smtpd[29958]: warning: TLS library problem: error:14209102:SSL routines:tls_early_post_process_client_hello:unsupported protocol:ssl/statem/statem_srvr.c:1686:
Jun 11 17:30:58 example_mysite postfix/smtpd[30280]: warning: TLS library problem: error:14209102:SSL routines:tls_early_post_process_client_hello:unsupported protocol:ssl/statem/statem_srvr.c:1686:
What Changed?
This seemed to start when I changed to using letsencrypt for the mail server (never had certificate for the mail server, it was always self signed). It could also be connected with an update to a later version of phpbb.
I don't know what is generating the log entries. Is it one of my server scripts email customers? Is it phpbb sending out notifications? Is it one single message that is being rejected by a client and postfix is trying to resend it?
It is regular at every 5 mins but I can't work out what's going on.
Re: Postifx Log is Sparse
What's the output from rpm -V postfix ?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: Postifx Log is Sparse
rpm -V postfix
S.5....T. c /etc/postfix/main.cf
S.5....T. c /etc/postfix/master.cf
S.5....T. c /etc/postfix/virtual
rpm -qa | grep postfix
postfix-3.5.8-1.el8.x86_64
postconf -d | grep mail_version
mail_version = 3.5.8
milter_macro_v = $mail_name $mail_version
S.5....T. c /etc/postfix/main.cf
S.5....T. c /etc/postfix/master.cf
S.5....T. c /etc/postfix/virtual
rpm -qa | grep postfix
postfix-3.5.8-1.el8.x86_64
postconf -d | grep mail_version
mail_version = 3.5.8
milter_macro_v = $mail_name $mail_version