- Joined
- Feb 27, 2003
- Messages
- 8,139
Hello,
This is a tricky issue. The solution I'd most likely do would be to not add the domain to the /etc/virtual/domains file until after the message is sent (not too hard).
The problem is that many hosts use 127.0.0.1 in their /etc/resolv.conf, so this would end up generating some problems. If we convince exim that the domain is external, ok great, but then exim does a lookup and it would resolve back to the same machine, again regardless of the settings in the exim or not (unless there is a way to tell exim to use an external dns lookup). One thing to note, is that named is added to the task.queue file.. so the domain might still resolve assuming the email is sent within the 1 minute period before named is reloaded.. gambling a bit if you ask me
So, if you'd like me to do add the /etc/virtual/domains trick for a future release, let me know, it's not too much trouble (saves a 2nd exim.conf mess). But the dns MX problem will still be there.
John
This is a tricky issue. The solution I'd most likely do would be to not add the domain to the /etc/virtual/domains file until after the message is sent (not too hard).
The problem is that many hosts use 127.0.0.1 in their /etc/resolv.conf, so this would end up generating some problems. If we convince exim that the domain is external, ok great, but then exim does a lookup and it would resolve back to the same machine, again regardless of the settings in the exim or not (unless there is a way to tell exim to use an external dns lookup). One thing to note, is that named is added to the task.queue file.. so the domain might still resolve assuming the email is sent within the 1 minute period before named is reloaded.. gambling a bit if you ask me

So, if you'd like me to do add the /etc/virtual/domains trick for a future release, let me know, it's not too much trouble (saves a 2nd exim.conf mess). But the dns MX problem will still be there.
John