small bug when change suspended domain

jackc

Verified User
Joined
Jan 19, 2007
Messages
336
The email is off when the domain is suspended, if you change the domain when it's suspended, there will be a file not found error for /etc/virtual/domain.com, then the email will become unuseable.
 
When the domain is suspended, /etc/virtual/domain.com will changed to something like /etc/virtual/domain.com_off
 
What verson of DA are you talking about? It would be helpful to always specify.
 
I'm using Version 1.292, but I don't see any bugfix regarding this on 1.293 and 1.294.
You guys don't have this problem on your DA?
 
Last edited:
tested problem exists on 1.293 as well.
Just create a test domain in domain setup, suspend the domain then try to change the domain to something else there will be an error:
Unable to swap email: Error moving /etc/virtual/test1.com to /etc/virtual/test2.com : No such file or directory
 
Now I follow ... you're trying to change the domain name.

Since suspending a domain changes the name of the link (as the easy way to do the suspend), it's not there to change. You could of course easily enough log in through a shell and do:
Code:
# cd /etc/virtual
mv test1.com_off test2.com_off
Jeff
 
My question would be why would you try to change a domain that has been suspended? Why not just unsuspend the domain and then change it?
 
Well, if it's me running into this problem I would ofcouse able to fix it. but some of my clients don't know what they are doing and sometimes run into this error and I have to correct it, so if possible I would like to see this fixed since it's not hard to fix.
 
I'm going to add code that prevents a suspended domain from being renamed.
They'll have to unsuspend it first.

John
 
Back
Top