email:email_firewall
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
email:email_firewall [2017/03/31 15:44] – peter | email:email_firewall [2019/11/27 21:51] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Email - Email firewall ====== | ||
- | |||
- | Use fake MX records to combat spam. | ||
- | |||
- | Set a bogus server as the lowest and highest MX records with the working server' | ||
- | |||
- | For example: | ||
- | |||
- | < | ||
- | fake.example.com | ||
- | realmx.example.com | ||
- | fake2.example.com | ||
- | </ | ||
- | |||
- | The theory is, since majority of the spam will query for the the highest MX record to spam since usually they' | ||
- | |||
- | |||
- | Risks: | ||
- | |||
- | * **High retry times** - Most servers will retry the next MX after the first one timeouts, others will try in the next few minutes, but some servers will only retry after one hour or one day. They are very rare and are often misconfigured. | ||
- | * **Delays in delivering emails** - All emails will have a delay - but this should not be much. Almost all real mailservers will retry to the next MX after the the first timeout, so we are talking about 30s delay. | ||
- | * **Broken sites** - Some webservers send emails for passwords, notifications, | ||
- | * **No logs** - As the fake MX is unconnected to a proper IP, there will be no logs of what tried to be delivered. | ||
- | * **No whitelist** - This applies to all servers via DNS, so you can not whitelist one server... actually is just half-true, but is harder. the whitelist solution is that the lowest MX points to a IP where a SMTP is running, but filtered by firewall for everyone. | ||
- | |||
- | Unlike **postgrey**, | ||
- | |||
- | |||
- | Recommendations: | ||
- | |||
- | * Do not use private IPs or IPs that you don't control for the fake MX (if you add ipv6 address, ALSO add a ipv4 one). This avoid problems with broken DNS and mailservers and surprises of other getting your email (by installing a smtp server on the IP you don't control). | ||
- | |||
- | * A tcp-reset should be sent for the fake MX, to improve performance (host or port unreachable) instead of a plain timeout (by dropping the packet), so it's recommended to add it to you firewall. | ||
email/email_firewall.1490975064.txt.gz · Last modified: 2020/07/15 09:30 (external edit)