Owais Khan: > Thanks > > I knew this way of redirecting output. I thought it would produce me some > statistics like bounced counts, etc. > > But, it seems to bring chunks from original log. Is this the expected output > of this collate.pl?
Yes. The purpose of this script is to group logfile records for the same mail delivery transaction. This will help you to find out what happened with the messages that are the subject of your investigation. If the remote SMTP server accepted email, then Postfix will log "status=sent" and the remote SMTP server response will contain an identifier that the server's administrators can use in further investigations. Examples: Apr 6 05:09:40 spike postfix/smtp[14214]: 48wl9F4n0dzJrNs: to=<recipi...@example.com>, relay=gmail-smtp-in.l.google.com[172.217.197.26]:25, delay=9.3, delays=6.9/0.018/1.1/1.3, dsn=2.0.0, status=sent (250 2.0.0 OK 1586164180 s21si9838137qte.81 - gsmtp) Apr 6 09:10:04 spike postfix/smtp[17719]: 48wrVh2cdHzJrNt: to=<other@other.example>, relay=mail.cloud9.net[2604:8d00:0:1::7]:25, delay=0.24, delays=0.13/0.026/0.068/0.016, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 8DED4336382) If the remote SMTP server rejected email, then Postfix will log "status=bounced" or "status=deferred" and the remote SMTP server response will say why. Wietse