Write script to generate a report for rejected incoming mail
The report should list destination email addresses associated with rejected mail. I make good use of RBLs and pretty strict SMTP daemon settings to keep SPAM to a minimum. Unfortunately a byproduct of this is that poorly configured mail servers that are in charge of sending mail I actually want will be ignored. I plan to run the report on a daily basis to see if there is a need for whitelisting (or maybe even blacklisting) a remote server.
Adding a script to do basic reporting of rejected email addresses that do not match a list of literal patterns.
#1 Updated by Deoren Moor about 4 years ago
- Status changed from Assigned to Closed
- Resolution set to Fixed
In r12 I added
rejected_emails.sh which does basic reporting. It's crude, but has been useful for my needs. It's worth noting that the "regex" used to match email addresses is crude, but reliable enough that it returns expected results.