|
From: Jamie C. <jca...@we...> - 2006-03-06 09:31:54
|
On Mon, 2006-03-06 at 12:38, John Hinton wrote: > Jamie Cameron wrote: > > On Sat, 2006-03-04 at 09:28, John Hinton wrote: > > > >> Jamie, > >> > >> Using the backup and restore functions to move hosting accounts.... > >> > >> I think I found one small bug that could be considered a bug in the > >> script as a whole. I have reproduced this problem a total of one time > >> and don't know yet if this was some sort of exception. > >> > >> If the domain being transferred has any aliased email addresses in the > >> aliases table, not the virtusertable, it seems that newaliases is not > >> run? Opening the 'Edit Mail Aliases' module within Virtualmin, selecting > >> the alias which is already written and saving it corrects the issue. I > >> would imagine doing the same from the Sendmail Aliases module would have > >> the same results but I haven't tried that.... yet. > >> > >> I suppose this could possibly even be an issue when restoring an account > >> on the same machine, if in fact the alias had been removed and > >> newaliases run? > >> > >> Reporting in on my successes as requested sir! > >> > > > > Hi John, > > That is quite surprising, as Virtualmin does run newaliases after every > > alias is created or modified. However, there was one thing I didn't > > understand about your bug report - all Virtualmin mail aliases have an > > entry in /etc/mail/virtusertable , and possibly one in /etc/aliases too > > in forwarding to multiple destinations. > > > > Did you create these aliases using only the Virtualmin module? > > > > - Jamie > > > > > They were created by using only the 'Restore' function. Does the > 'Restore' function run newaliases? This was where what appeared in the > aliases file was not activated. And yes, this was for mailboxes > forwarded to multiple accounts, so everything I'm talking about is with > regards to the aliases file/tables on a CentOS/Sendmail system. Yes, the restore function uses the same code as normal alias creation, both of which run 'newaliases'. At least, they do in the most recent version of Virtualmin (2.610). > Obviously, I have never had a problem when creating directly within > Virtualmin for an existing or new account. > > Again, this was while moving accounts from one server to another. You > had asked me to let you know if I found any surprises. But, one might > argue that even on the same machine, one could backup a virtuser, delete > everything to do with that account and then restore that backup. If it > were a complete delete, the aliases would be gone, upon restore it looks > like the aliases are created, but newaliases not run? > > Yeah, I know I'm outside of the scope of the intention of the > backup/restore functions.. but darn.. if it is so close to working > perfectly, this is a godsend. It really should work actually - so this is definately a bug. Perhaps I could login to your server myself to see what is happening? > Another question. Can you think of anything that would be broken within > Webmin when moving to an upgraded server? For instance CentOS 3.x to > CentOS 4.x, when I'm using the same basic directory/storage layouts. Are you just moving Virtualmin domains with the backup/restore function? If so, this should work fine. - Jamie |