On Wed, May 22, 2024 at 12:19:03PM -0500, Greg Sims wrote:
> [root@mail01 postfix]# postconf -nf
> maximal_backoff_time = 16m
> minimal_backoff_time = 2m
> queue_run_delay = 2m
FWIW (not related to your immediate issue) I would not recommend such a
short maximal backoff, you're potentially filling the active queue with
messages that will again tempfail , and perhaps take a long time to do
so. I typically go with:
minimal_backoff_time = 225s
maximal_backoff_time = 7200s
queue_run_delay = 225s
> sender_dependent_default_transport_maps =
> regexp:/etc/postfix/sender_relay.regexp, randmap:{t121,t122,t123,t124}
See below...
> smtp_tls_security_level = may
> smtp_tls_CAfile = /etc/pki/tls/certs/ca-bundle.crt
> smtp_tls_CApath = /etc/pki/tls/certs
The CAfile and CApath are not needed (just waste memory) until you set
something other than "may" as the security level for at least some
destinations.
> smtpd_tls_cert_file = /etc/pki/tls/certs/postfix.pem
> smtpd_tls_key_file = /etc/pki/tls/private/postfix.key
> smtpd_tls_security_level = none
The certificates are not needed while the security level is "none".
> [root@mail01 postfix]# postconf -Mf
> ...
> t121 unix - - n - 64 smtp
> -o smtp_bind_address=209.73.152.121
> -o smtp_helo_name=mail01-t121.raystedman.org
> -o syslog_name=t121
> t122 unix - - n - 64 smtp
> -o smtp_bind_address=209.73.152.122
> -o smtp_helo_name=mail01-t122.raystedman.org
> -o syslog_name=t122
> t123 unix - - n - 64 smtp
> -o smtp_bind_address=209.73.152.123
> -o smtp_helo_name=mail01-t123.raystedman.org
> -o syslog_name=t123
> t124 unix - - n - 64 smtp
> -o smtp_bind_address=209.73.152.124
> -o smtp_helo_name=mail01-t124.raystedman.org
> -o syslog_name=t124
I think the reason that "collate" is not working is your chose of
"syslog_name", it does not match any of the expected forms:
postfix
postfix-instance
postfix/sometag
postfix-instance/sometag
The Perl RE in question is:
my $instre = qr{(?x)
\A # Absolute line start
(?:\S+ \s+){3} # Timestamp, adjust for other time formats
\S+ \s+ # Hostname
(postfix(?:-[^/\s]+)?) # Capture instance name stopping before
first '/'
(?:/\S+)* # Optional non-captured '/'-delimited
qualifiers
/ # Final '/' before the daemon program name
};
On Wed, May 22, 2024 at 02:10:48PM -0500, Greg Sims wrote:
> Postfix is now configured for logging at /var/log/postfix.
> * added to main.cf:
> maillog_file = /var/log/postfix/0522zh.log
> * added to master.cf
> postlog unix-dgram n - n - 1 postlogd
Good.
> I then:
>
> [root@mail01 0522zh]# perl ../collate.pl 0522zh.log >0522zh.log.collate
> [root@mail01 0522zh]# ll
> total 95M
> -rw-r--r-- 1 root root 2.5M May 22 11:38 0522zh.log
> -rw-r--r-- 1 root root 92M May 22 11:55 0522zh.log.collate
>
> The output of collate does not appear to be useful -- it is the same
> as when we are logging to memory.
It fails to matcht he delivery agent log entries.
--
Viktor.
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]