Version 1 (modified by zecrazytux, 11 years ago) (diff)


Postfix Log tools




mrejzr is a simple script that parses postfix logs to look for rejected SMTP connections, and outputs them along with their reasons and occurence numbers.

It is usefull to monitor misconfigured email servers which you reject mails from, (so you may whitelist them to solve the problem), people mistyping email addresses without knowing, DNSBL rejections, etc...

It can outputs in different formats, including your own:

  • 80 columns-wide formatted text (great as console output)
  • raw space-separated fields
  • your own template

Results can be filtered by domains.

output examples

text format (default or -t text option)

                === Rejected SMTP Connections ===

Note: Domains & emails may be truncated.

Occ. Errortype  Origin               From                      To                 

  11 EIRAD     tryopenrelay@idontknow.t  someone@somewhere.tld    
   2 ERAR     guessusernames@idontknow  ghost@correctdomain.tld     

EHHNF   Remote server sent a non-existant domain name with 'Helo' command
EHFQDN  Remote server sent an uncomplete domain name with the 'Helo' command
EHFY    Remote server pretends to be your own mailserver
ERBL    Remote server is blacklisted as a SPAM/HAM server by a DNSBL list
ERAR    Destination email address does not exist
ESAR    Sender email address' domain name does not exist
EIRAD   Remote server tried to relay mails by your server but is not allowed to
EORAD   Local user did not authenticate properly

Attachments (2)

Download all attachments as: .zip