- Joined
- Feb 27, 2003
- Messages
- 9,165
Hello,
This exim.conf option is based on this thread:
https://lists.exim.org/lurker/message/20070514.011457.92a84c56.en.html
where the issue is relating to this feature, which we've already implemented:
http://www.directadmin.com/features.php?id=752
The issue with the id=752 is that it's a static list... and there are far more domains than that which should be on the list, but because it's static, and not dynamic, it doesn't work to it's full potential.
The issue is when a domain is added that shouldn't be added.
The exim list mentions code similar to this, added to your router, after the lookuphost:
where the email is not considered local if the condition doesn't match (must be a local connection), and if the domain has an MX record that resolves to an external IP.
The condition was added to prevent open relays.... but has the added affect, where an email sent to this server.. if the MX are external would actually be saved locally (could be handy... but would be rare since the MX records don't actually point here).
Main benefit was just to prevent a relay where mail to that domain could be bounced through this server with no auth, because the domain is in local_domains.
I've done some basic testing, but I've never used the @mx_any option before, so I'd figure I'd throw it out to see what everyone thinks, or if anyone wants to try it.
Also looking for cases where it doesn't work... eg, if anyone is using a specialized setup..
Need to decide if this would be good or bad to add as a default exim.conf option.
One issue already noted, is that with this, you cannot use 127.0.0.1 in your /etc/resolv.conf, else the MX record will always be local (assuming default settings)..
It only works with external dns servers in the resolv.conf.
John
This exim.conf option is based on this thread:
https://lists.exim.org/lurker/message/20070514.011457.92a84c56.en.html
where the issue is relating to this feature, which we've already implemented:
http://www.directadmin.com/features.php?id=752
The issue with the id=752 is that it's a static list... and there are far more domains than that which should be on the list, but because it's static, and not dynamic, it doesn't work to it's full potential.
The issue is when a domain is added that shouldn't be added.
The exim list mentions code similar to this, added to your router, after the lookuphost:
Code:
not_yet_hosted:
driver = dnslookup
domains = ! @mx_any/ignore=<;127.0.0.1;::1
transport = remote_smtp
ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
pass_on_timeout
[COLOR=#000000]self = pass[/COLOR]
condition = ${if eq {$received_protocol}{local} {yes}{no}}
The condition was added to prevent open relays.... but has the added affect, where an email sent to this server.. if the MX are external would actually be saved locally (could be handy... but would be rare since the MX records don't actually point here).
Main benefit was just to prevent a relay where mail to that domain could be bounced through this server with no auth, because the domain is in local_domains.
I've done some basic testing, but I've never used the @mx_any option before, so I'd figure I'd throw it out to see what everyone thinks, or if anyone wants to try it.
Also looking for cases where it doesn't work... eg, if anyone is using a specialized setup..
Need to decide if this would be good or bad to add as a default exim.conf option.
One issue already noted, is that with this, you cannot use 127.0.0.1 in your /etc/resolv.conf, else the MX record will always be local (assuming default settings)..
It only works with external dns servers in the resolv.conf.
John