| 1 | == Postfix Log tools == |
| 2 | |
| 3 | |
| 4 | === poststat === |
| 5 | |
| 6 | todo |
| 7 | |
| 8 | === mrejzr === |
| 9 | |
| 10 | mrejzr is a simple script that parses postfix logs to look for |
| 11 | rejected SMTP connections, and outputs them along with their reasons |
| 12 | and occurence numbers. |
| 13 | |
| 14 | It is usefull to monitor misconfigured email servers which you reject mails from, |
| 15 | (so you may whitelist them to solve the problem), people mistyping email addresses without knowing, |
| 16 | DNSBL rejections, etc... |
| 17 | |
| 18 | |
| 19 | It can outputs in different formats, including your own: |
| 20 | - XHTML |
| 21 | - 80 columns-wide formatted text (great as console output) |
| 22 | - raw space-separated fields |
| 23 | - your own template |
| 24 | |
| 25 | Results can be filtered by domains. |
| 26 | |
| 27 | |
| 28 | ==== output examples ==== |
| 29 | |
| 30 | text format (default or -t text option) |
| 31 | {{{ |
| 32 | === Rejected SMTP Connections === |
| 33 | |
| 34 | Note: Domains & emails may be truncated. |
| 35 | |
| 36 | |
| 37 | Occ. Errortype Origin From To |
| 38 | -------------------------------------------------------------------------------- |
| 39 | |
| 40 | 11 EIRAD 92.102.71.13 tryopenrelay@idontknow.t someone@somewhere.tld |
| 41 | 2 ERAR 92.102.71.13 guessusernames@idontknow ghost@correctdomain.tld |
| 42 | |
| 43 | |
| 44 | Legend |
| 45 | ------ |
| 46 | EHHNF Remote server sent a non-existant domain name with 'Helo' command |
| 47 | EHFQDN Remote server sent an uncomplete domain name with the 'Helo' command |
| 48 | EHFY Remote server pretends to be your own mailserver |
| 49 | ERBL Remote server is blacklisted as a SPAM/HAM server by a DNSBL list |
| 50 | ERAR Destination email address does not exist |
| 51 | ESAR Sender email address' domain name does not exist |
| 52 | EIRAD Remote server tried to relay mails by your server but is not allowed to |
| 53 | EORAD Local user did not authenticate properly |
| 54 | }}} |