Re: [vchkpw] make alias domain the main domain?
At 02:23 PM 6/28/2006, Tom Collins wrote: On Jun 28, 2006, at 1:26 PM, Paul Theodoropoulos wrote: so how the heck can i do that? i'm baffled how to change the name of an existing domain. i don't see any options in vqadmin or in the command line interface to accomplish this. Edit /var/qmail/users/assign. You'll find two entries related to the domain, like this: +rfpowerdevices.com-:rfpowerdevices.com:89:89:/home/vpopmail/domains/ rfpowerdevices.com:-:: +hvvi.com-:rfpowerdevices.com:89:89:/home/vpopmail/domains/ rfpowerdevices.com:-:: Change the second field from rfpowerdevices.com to hvvi.com: +rfpowerdevices.com-:hvvi.com:89:89:/home/vpopmail/domains/ rfpowerdevices.com:-:: +hvvi.com-:hvvi.com:89:89:/home/vpopmail/domains/rfpowerdevices.com:-:: Run qmail-newu, HUP qmail-send (you may not need to do that step), and you should be all set. unfortunately, this doesn't work. or at least, i made the change as specified, i created a new user at hvvi.com, then tried setting up an autoresponder in qmailadmin as the user would do - it spits out the 'internal server error' when you click 'modify user' to write the changes. i changed the field back, and it then is able to create the vacation dir etc. Paul Theodoropoulos http://www.anastrophe.com http://www.smileglobal.com http://www.forumgarden.com
Re: [vchkpw] make alias domain the main domain?
just add an alias with valiasdomain and you are set... Ciao Paul Theodoropoulos wrote: At 02:23 PM 6/28/2006, Tom Collins wrote: unfortunately, this doesn't work. or at least, i made the change as specified, i created a new user at hvvi.com, then tried setting up an autoresponder in qmailadmin as the user would do - it spits out the 'internal server error' when you click 'modify user' to write the changes. i changed the field back, and it then is able to create the vacation dir etc. Paul Theodoropoulos http://www.anastrophe.com http://www.smileglobal.com http://www.forumgarden.com
Re: [vchkpw] make alias domain the main domain?
At 01:15 PM 6/29/2006, you wrote: just add an alias with valiasdomain and you are set... there's already an alias domain in place - that's the whole issue. Paul Theodoropoulos http://www.anastrophe.com http://www.smileglobal.com http://www.forumgarden.com
Re: [vchkpw] make alias domain the main domain?
you can have more than one alias per domain. Paul Theodoropoulos wrote: At 01:15 PM 6/29/2006, you wrote: there's already an alias domain in place - that's the whole issue. Paul Theodoropoulos http://www.anastrophe.com http://www.smileglobal.com http://www.forumgarden.com
Re: [vchkpw] make alias domain the main domain?
At 01:25 PM 6/29/2006, you wrote: you can have more than one alias per domain. that's irrelevant to the issue as far as i can tell. existing main domain - rfpowerdevices.com existing alias domain - hvvi.com customer wants to drop appearance of rfpowerdevices.com when users create autoresponders. performed steps specified by tom collins. no go. what, exactly, are you suggesting? i'm baffled. Paul Theodoropoulos wrote: At 01:15 PM 6/29/2006, you wrote: there's already an alias domain in place - that's the whole issue. Paul Theodoropoulos http://www.anastrophe.com http://www.smileglobal.com http://www.forumgarden.com Paul Theodoropoulos http://www.anastrophe.com http://www.smileglobal.com http://www.forumgarden.com
Re: [vchkpw] make alias domain the main domain?
then the way I would do it this: copy the users from the location under the old dir domain rfpowerdevices.com delete the domain create a script that will recreate all the users you can do this very easily by doing an ls -l |grep etc... the run vadduser -n is you have the option in vpopmail to learn passwd then add the new domain and all the users then copy back the users dir with the right permission and you should be fine. You can also just copy the email to their location without any problems. Just my 2 cents. Remo Paul Theodoropoulos wrote: At 01:25 PM 6/29/2006, you wrote: that's irrelevant to the issue as far as i can tell. existing main domain - rfpowerdevices.com existing alias domain - hvvi.com customer wants to drop appearance of rfpowerdevices.com when users create autoresponders. performed steps specified by tom collins. no go. what, exactly, are you suggesting? i'm baffled. Paul Theodoropoulos http://www.anastrophe.com http://www.smileglobal.com http://www.forumgarden.com
Re: [vchkpw] make alias domain the main domain?
At 01:57 PM 6/29/2006, you wrote: then the way I would do it this: copy the users from the location under the old dir domain rfpowerdevices.com delete the domain create a script that will recreate all the users you can do this very easily by doing an ls -l |grep etc... the run vadduser -n is you have the option in vpopmail to learn passwd then add the new domain and all the users then copy back the users dir with the right permission and you should be fine. You can also just copy the email to their location without any problems. thanks. but that's what i was trying to avoid when i originally asked the question. however, i suspect it's the only real option. Paul Theodoropoulos http://www.anastrophe.com http://www.smileglobal.com http://www.forumgarden.com
Re: [vchkpw] make alias domain the main domain?
On Jun 29, 2006, at 1:57 PM, Remo Mattei wrote: copy the users from the location under the old dir domain rfpowerdevices.com delete the domain create a script that will recreate all the users you can do this very easily by doing an ls -l |grep etc... the run vadduser -n is you have the option in vpopmail to learn passwd then add the new domain and all the users then copy back the users dir with the right permission and you should be fine. You can also just copy the email to their location without any problems. But if you have mailing lists or autoresponders you won't be fine, because their files will reference the old directory name. -- Tom Collins - [EMAIL PROTECTED] Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/ QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/
Re: [vchkpw] make alias domain the main domain?
At 03:09 PM 6/29/2006, Tom Collins wrote: On Jun 29, 2006, at 1:07 PM, Paul Theodoropoulos wrote: unfortunately, this doesn't work. or at least, i made the change as specified, i created a new user at hvvi.com, then tried setting up an autoresponder in qmailadmin as the user would do - it spits out the 'internal server error' when you click 'modify user' to write the changes. i changed the field back, and it then is able to create the vacation dir etc. After the change, and running qmail-newu, did vdominfo look correct for the domain? Are you saying that you were able to add a user in QmailAdmin but not add a vacation message for that user? I wonder where it failed. Did the user end up with a .qmail file? Was the autorespond program-deliver line in it? Was the autorespond directory structure set up? If you just changed +hvvi.com-:rfpowerdevices.com: to +hvvi.com-:hvvi.com:, I don't readily see where it would fail. now that i see that i'm a dumbass, i don't see how it could fail either! i completely overlooked the update to the second line for hvvi.com - i only updated the first. so lemme try again and maybe there will be less dumbass involved. Paul Theodoropoulos http://www.anastrophe.com http://www.smileglobal.com http://www.forumgarden.com
Re: [vchkpw] make alias domain the main domain?
At 03:29 PM 6/29/2006, you wrote: At 03:09 PM 6/29/2006, Tom Collins wrote: If you just changed +hvvi.com-:rfpowerdevices.com: to +hvvi.com-:hvvi.com:, I don't readily see where it would fail. now that i see that i'm a dumbass, i don't see how it could fail either! i completely overlooked the update to the second line for hvvi.com - i only updated the first. so lemme try again and maybe there will be less dumbass involved. well, i did it, and it still didn't work. this time, with both lines changed, vqadmin saw hvvi.com as the 'real' domain, and rfpowerdevices as the alias - and showed no users for either. so i had to rapidly switch back for fear of disrupting the account's access. so i'm confused. maybe a confused dumbass, but confused nonetheless. Paul Theodoropoulos http://www.anastrophe.com http://www.smileglobal.com http://www.forumgarden.com
Re: [vchkpw] make alias domain the main domain?
On Jun 29, 2006, at 3:35 PM, Paul Theodoropoulos wrote: well, i did it, and it still didn't work. this time, with both lines changed, vqadmin saw hvvi.com as the 'real' domain, and rfpowerdevices as the alias - and showed no users for either. so i had to rapidly switch back for fear of disrupting the account's access. so i'm confused. maybe a confused dumbass, but confused nonetheless. vqadmin hasn't been maintained in a long time... And before you ask, I have NO plans to even try using it. I just blew about 4-5 hours last night and today working on the vpopmail 5.4.17 release. The last thing I need to do is get sucked into another open source project. ;-) I'd be curious to hear whether the domain worked correctly in qmailadmin or not after making the change. I just ran a test, and it worked fine. Note that I had problems because I forgot to run qmail-newu after making the changes to users/assign. Once I made that change, it was OK. -- Tom Collins - [EMAIL PROTECTED] Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/ QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/
Re: [vchkpw] make alias domain the main domain?
At 03:52 PM 6/29/2006, you wrote: On Jun 29, 2006, at 3:35 PM, Paul Theodoropoulos wrote: well, i did it, and it still didn't work. this time, with both lines changed, vqadmin saw hvvi.com as the 'real' domain, and rfpowerdevices as the alias - and showed no users for either. so i had to rapidly switch back for fear of disrupting the account's access. so i'm confused. maybe a confused dumbass, but confused nonetheless. vqadmin hasn't been maintained in a long time... And before you ask, I have NO plans to even try using it. I just blew about 4-5 hours last night and today working on the vpopmail 5.4.17 release. The last thing I need to do is get sucked into another open source project. ;-) I'd be curious to hear whether the domain worked correctly in qmailadmin or not after making the change. I just ran a test, and it worked fine. Note that I had problems because I forgot to run qmail-newu after making the changes to users/assign. Once I made that change, it was OK. gotcha. since i need to keep vqadmin consistent for various reasons, i think i'll try doing a complete overhaul of the domain the 'old fashioned way'. Paul Theodoropoulos http://www.anastrophe.com http://www.smileglobal.com http://www.forumgarden.com
Re: [vchkpw] make alias domain the main domain?
On Jun 29, 2006, at 3:59 PM, Paul Theodoropoulos wrote: gotcha. since i need to keep vqadmin consistent for various reasons, i think i'll try doing a complete overhaul of the domain the 'old fashioned way'. If you're using cdb, here's a sneaky way to do it... First, backup the domain on the off chance that deleting the alias domain messes something up. Stop qmail until you're done making the changes. We'll call the domains old.com and new.com for this process. # delete the old domain ~vpopmail/bin/vdeldomain new.com # add it back, as it's own domain (not an alias) ~vpopmail/bin/vadddomain new.com xyz # use the old domain's files instead rm -rf ~vpopmail/domains/new.com mv ~vpopmail/domains/old.com ~vpopmail/domains/new.com # make an link from the old name to the new name so mailing lists work cd ~vpopmail/domains ln -s new.com old.com Start qmail back up, and you should be in business. Now you can search through the various .qmail files and mailing list configuration files, looking for references to old.com and changing them to new.com. Eventually, you can ditch the link from old.com to new.com in the domains directory. -- Tom Collins - [EMAIL PROTECTED] Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/ QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/
Re: [vchkpw] make alias domain the main domain?
At 04:34 PM 6/29/2006, Tom Collins wrote: If you're using cdb, here's a sneaky way to do it... mysql db backend here. thanks for the writeup though - and i'm certain someone on the list will find it useful at some point, so good to have it out there. what i'm going to do is just write down their user info (i have cleartext pw enabled), tar up the directory, delete both domains in vqadmin, add back the domain we want, then untar back into the dir. something like that. Paul Theodoropoulos http://www.anastrophe.com http://www.smileglobal.com http://www.forumgarden.com
[vchkpw] make alias domain the main domain?
vpopmail 5.4.10 vqadmin 2.3.5 i have a customer that began a new business using one domain - rfpowerdevices.com - and shortly thereafter decided to use hvvi.com as their domain. since rfpowerdevices.com was in place with users and mail, i just added hvvi.com as an alias domain. a year later, and they are definitely not going to use rfpowerdevices.com any longer, so they want to drop it completely. 'so what?' you may ask. indeed. the reason this came up is because just the other day, one of their users set up an out-of-office autoreply - and the autoreply gives no option to specify the 'from' address - it uses the 'main' domain, in this case rfpowerdevices.com. So their 'i'm out of the office until xyz' message was being sent out with a return address that none of their current customers even recognize. thus i believe, their desire to truly drop rfpowerdevices.com from the equation. so how the heck can i do that? i'm baffled how to change the name of an existing domain. i don't see any options in vqadmin or in the command line interface to accomplish this. clues for the clueless? Paul Theodoropoulos http://www.anastrophe.com http://www.smileglobal.com http://www.forumgarden.com
Re: [vchkpw] make alias domain the main domain?
On Jun 28, 2006, at 1:26 PM, Paul Theodoropoulos wrote: so how the heck can i do that? i'm baffled how to change the name of an existing domain. i don't see any options in vqadmin or in the command line interface to accomplish this. Edit /var/qmail/users/assign. You'll find two entries related to the domain, like this: +rfpowerdevices.com-:rfpowerdevices.com:89:89:/home/vpopmail/domains/ rfpowerdevices.com:-:: +hvvi.com-:rfpowerdevices.com:89:89:/home/vpopmail/domains/ rfpowerdevices.com:-:: Change the second field from rfpowerdevices.com to hvvi.com: +rfpowerdevices.com-:hvvi.com:89:89:/home/vpopmail/domains/ rfpowerdevices.com:-:: +hvvi.com-:hvvi.com:89:89:/home/vpopmail/domains/rfpowerdevices.com:-:: Run qmail-newu, HUP qmail-send (you may not need to do that step), and you should be all set. If you want to change the directory for the domain, that gets a bit more tricky. You have to change it in /var/qmail/users/assign, the vpasswd file (for CDB) or database table (for the DB backends), .qmail files that have a hard-path to a maildir, mailing list configurations, etc. Believe me, it's easier to just keep the old directory name. You (the server admin) should be the only person who will se it. -- Tom Collins - [EMAIL PROTECTED] Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/ QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/
Re: [vchkpw] make alias domain the main domain?
At 02:23 PM 6/28/2006, Tom Collins wrote: Believe me, it's easier to just keep the old directory name. You (the server admin) should be the only person who will se it. excellent - thanks very much, that makes sense and is a heck of a lot easier than what i was thinking i'd have to do (tar up the existing accounts, delete main and alias, create new main, untar, etc) Paul Theodoropoulos http://www.anastrophe.com http://www.smileglobal.com http://www.forumgarden.com