Postifx Log is Sparse

Issues related to applications and software problems and general support
Post Reply
Larry
Posts: 34
Joined: 2005/03/17 15:55:56
Contact:

Postifx Log is Sparse

Post by Larry » 2020/11/15 21:55:07

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?

User avatar
KernelOops
Posts: 428
Joined: 2013/12/18 15:04:03
Location: xfs file system

Re: Postifx Log is Sparse

Post by KernelOops » 2020/11/15 22:33:09

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.
--
R.I.P. CentOS :cry:
--

BShT
Posts: 583
Joined: 2019/10/09 12:31:40

Re: Postifx Log is Sparse

Post by BShT » 2020/11/16 14:03:54

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

User avatar
KernelOops
Posts: 428
Joined: 2013/12/18 15:04:03
Location: xfs file system

Re: Postifx Log is Sparse

Post by KernelOops » 2020/11/16 17:12:44

BShT, that is helpful when running postfix under a chroot environment.
--
R.I.P. CentOS :cry:
--

BShT
Posts: 583
Joined: 2019/10/09 12:31:40

Re: Postifx Log is Sparse

Post by BShT » 2020/11/16 17:24:47

sure

Larry
Posts: 34
Joined: 2005/03/17 15:55:56
Contact:

Re: Postifx Log is Sparse

Post by Larry » 2021/06/11 16:57:27

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:

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:
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.

User avatar
TrevorH
Site Admin
Posts: 33191
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Postifx Log is Sparse

Post by TrevorH » 2021/06/11 18:42:37

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

Larry
Posts: 34
Joined: 2005/03/17 15:55:56
Contact:

Re: Postifx Log is Sparse

Post by Larry » 2021/06/11 23:27:47

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

Post Reply