PDA

View Full Version : New account email bug



webquarry
03-16-2005, 12:36 PM
Here is something that DA does that is most annoying:

Let's say the client@domain.com wants to open a hosting account and that he wants to move domain.com to that account.

DA cannot send the account access info to client@domain.com because as soon as it creates the account, the server believes that domain.com is local to itself.

Is there any elegant way around this chicken-and-egg problem now?

What about changing the order that DA creates and account in? Could it first do a dry run to check to see if the account CAN be created, then send the email, THEN actually create the account?

Chrysalis
03-16-2005, 01:36 PM
look here

I had the same issue myself, someone did before me and they found the solution, I strongly reccomend DA to implement this change as the default.

go down to where it says 'begin routers' in /etc/exim.conf

(in mine around like 660)

edit these lines so they look like this

OLD

lookuphost:
driver = dnslookup
domains = ! +local_domains
ignore_target_hosts = 127.0.0.0/8
transport = remote_smtp
no_more

NEW


lookuphost:
driver = dnslookup
ignore_target_hosts = 127.0.0.0/8
self = pass
same_domain_copy_routing = true
transport = remote_smtp
no_more


this makes it do a proper mx lookup instead of assuming the local server is the correct one.

webquarry
03-16-2005, 02:50 PM
Hmm. my exim.conf looks like this:

lookuphost:
driver = dnslookup
domains = ! +local_domains
ignore_target_hosts = 127.0.0.0/8
condition = "${perl{check_limits}}"
transport = remote_smtp
no_more


That is a tad different than what you have.

I'm no exim expert. is changing that to:

lookuphost:
driver = dnslookup
ignore_target_hosts = 127.0.0.0/8
condition = "${perl{check_limits}}"
self = pass
same_domain_copy_routing = true
transport = remote_smtp
no_more

Going to be ok?

Chrysalis
03-17-2005, 07:27 AM
should be ok I think, backup old config restart exim and run tests if all is well then you done it correct.

DamnSkippy
03-17-2005, 04:33 PM
So, this is from August of last year, is this still an issue or has it been changed in an update to DA?

Chrysalis
03-17-2005, 04:43 PM
this isnt from august, its from this month and it is still an issue yes.

nobaloney
03-22-2005, 01:21 PM
I'm considering making this change to the exim.conf file.

I've asked on the exim forum to see if there are any good reasons to not do it.

Jeff

webquarry
03-22-2005, 02:43 PM
That would be great Jeff. I like your exim.conf file but this really is a problem.

Chrysalis
03-24-2005, 10:54 AM
There is one downside to this change jeff, for local domains it does a MX lookup instead of just instantly sending the email, so this will create a higher load and delay for sending emails. But I think this is a lot better then sending emails to the wrong destination.

webquarry
03-24-2005, 11:18 AM
I've been running for a while here on a server that hosts 350 domains. So far no noticable load level increases.