Detect IP RBL blocks for the largest US mail hosts
Detect when the local IP has been blocked due to RBL by the largest mail hosts, eg:
- Gmail
- Microsoft
- AOL
- Yahoo
This can be determined by the delivery status messages which use fixed messages to notify the sender of the RBL block.
As an admin When I use the webui And my IP is blocked by large hosts And they tell me in dsn messages Then I want to see this
Requirements:
- For each postfix log line with smtp status=bounced, if the "ExtraMessage" part of the parsed result matches any pattern which identifies it with a block from one of the described providers, create an insight describing the occurrence.
- The insight will have the following description: "Blocked IP" and content "The IP address {IP} cannot deliver to {Provider}".
- If there's any instructions available about how to perform an "unblocking", it should be displayed in a modal window when the user clicks on a button "More Info" in the insight. Currently some providers provide a link the user can use to fill a form to request the unblocking, and displaying such link servers as instruction.
- In order not to spam the sysadmin with multiple identical or closer-to-identical (from the same mail host) insights when multiple messages arrive in short time interval, all similar insights will be discarded and only the first one will be kept. A new insight for the same host can be generated again in 3.5 days (half a week).
Reading
- https://www.iana.org/assignments/smtp-enhanced-status-codes/smtp-enhanced-status-codes.xhtml
- https://tools.ietf.org/html/rfc3463
- https://www.usps.org/info/smtp_status.html
Definitions
- Delivery Status Notification == Enhanced Status Code
Edited by Leandro Santiago