The forwards are stored in the valias table in the vpopmail database in mysql. There are 3 fields: alias, domain, and valias_line. valias_line is formatted like: &[EMAIL PROTECTED]
You can use the mysql CLI to add the records. I don't know off hand the format for such query. phpMyAdmin (http://www.phpmyadmin.net/home_page/index.php) is a great web based mysql administration too. It's handy for browsing around the vpopmail database, and allows you to import data from a file formatted as CSV or SQL too. I think it would be a big help to you. Jim Shupert, Jr. wrote: > Friends, > > I am very interested in this matter of scripting forwards.. > my situation is ...simpler because I have a postfix server that I will > be replacing with the qmailtoaster. > > but ( alas ) my understanding of where to start with such a script is > fuzzy . > ( i have written a script to add users ) > > my Q would be > > where would such a thing as > groupname member1, member2, member3 > get written? > > when you create a forward via the GUI ... what text file / db is being > changed? > and can a mere mortal just VI that? how? where? > > thanks > > js > >> James F. Jarrett wrote: >>> I have a question regarding forwards. >>> >>> We currently have two e-mail systems in place (one legacy, that is going >>> away and our new toaster), when the legacy system goes away, it would be >>> advantageous to re-create its domain on the toaster and forward all mail >>> going to the old accounts to the new accounts. >>> >>> >>> The new accounts are not just the same old name at a new domain, but >>> completely different. To make this work, I would have to create a >>> forward for every old account on the old system to it's equiv. account >>> on the new. >>> >>> Is there a way to script this so I don't have to manually put in 300+ >>> forwards? >>> >>> >> With some scripting you could dump the old email addresses as a text >> file, create the old domain on the Toaster, and run your text file >> through a script to create the forwards for you. It'd be difficult, >> since the new email addresses are not similar to the old, but I guess >> you could create the text file like this: >> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]> >> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]> >> .... >> >> and have the script run that way. >> -- -Eric 'shubes' --------------------------------------------------------------------- QmailToaster hosted by: VR Hosted <http://www.vr.org> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
