You are hereMigration to Google Apps for your domain

Migration to Google Apps for your domain


By chri - Posted on 01 March 2007

I took the decision to migrate my mails to Google Apps for your domain.
Some nice things are already activated and working fine and documented.
As expected similar migrations always bring some issues with them, but this time I wanted to do everything just right.
That's why I started working on a Q & A section. When writing questions I came across a 'I was only using webmail. How do I migrate the mails from the old webmail to the new system?' question.
I immediately starting writing instructions to setup gmail to download pop messages from another server to the gmail account. (you can find this in the 'Settings' > 'Account' page)
Unfortunately this option is not available with the 'apps for your domain' system. I thus had to find a way to transfer all the mails from server A to server B (google).
Using imap to transfer mails was not possible as Google does not support this. A guess brought me on a fetchmail documentation quest. Browsing the website I became more and more excited when I came across this phrase in the FAQ: "Q: How can I forward mail to another host? A:To forward mail to a host other than the one you are running fetchmail on, use the smtphost or smtpname option. See the manual page for details."

After a few minutes I created this little script to do the work for me:
#!/bin/bash
PROTO="POP3"
SMTPHOST="ASPMX.L.GOOGLE.COM"
SERVER="vandeplas.com"
USERS="christophe familymember2 familymember3"
for user in ${USERS}; do
  fetchmail -v  -p ${PROTO} --smtphost ${SMTPHOST}\
     --smtpname ${user}@${SERVER}.test-google-a.com   -u ${user}@${SERVER} ${SERVER}
done;
Migration, here I come :-)

Edit: added links below
Usefull links are: Edit: It is now possible to configure the 'add POP account' in the GAFYD gmail settings. Your GUI language should be English to see this. http://christophe.vandeplas.com/2007/03/17/migration-google-apps-finished










Hi, can Google Apps for domains provide me with an offline copy of all mail *sent* with gmail ?
If you activate POP, all mails you send with gmail will arrive to your pop inbox.
Strange, since i have pop activated for about a year now (normal gmail account), but i don't get the "sent mails" in my inbox. Maybe this feature only works for google apps for domains... This is also the only thing that keeps me from migrating to gmail completely, i want an offline copy of everything, otherwise i don't trust it.
I didn't test it with gmail apps, but that functionality works with my normal gmail account.
From: http://mail.google.com/support/bin/answer.py?answer=56449
Why does my 'Sent Mail' get downloaded to my POP inbox?
When you enable POP, all messages are downloaded to your client, except for Spam, Trash, and Chats. If you don't want messages that you send from the web interface downloaded to your mail client's inbox, we suggest creating a filter within your client.


stom seg, ik had forwarding aangezet ipv pop...sorry

Google Apps really seems like an interesting proposition -- if you can live with the fact that all your mail will be stored on the servers of a giant American corporation (which I can, btw :-) -- and handled by a large stack of non-free software on top of Linux.

I read news some time ago that Google Apps would cease to be free, but as usual it was more hype than fact. They only offer a "Premier Edition" with larger inboxes and a SLA for money.

Good luck with the transfer!

Could you elaborate some more on how to use this script? More in particular, I would like to know if it could be of any use during my migration from Dreamhost (shared) mailhosting (where I have shell access) to GAfyD....
Just fill in the USERS variable with a space separated list of usernames. The stupid script will just fill in the fields for you. The generated output will be like this:
fetchmail -v  -p POP3 --smtphost ASPMX.L.GOOGLE.COM     --smtpname christophe@vandeplas.com.test-google-a.com   -u christophe@vandeplas.com vandeplas.com
fetchmail -v  -p POP3 --smtphost ASPMX.L.GOOGLE.COM     --smtpname familymember2@vandeplas.com.test-google-a.com   -u familymember2@vandeplas.com vandeplas.com
fetchmail -v  -p POP3 --smtphost ASPMX.L.GOOGLE.COM     --smtpname familymember3@vandeplas.com.test-google-a.com   -u familymember3@vandeplas.com vandeplas.com
For each entry in the USERS variable the script will run the fetchmail command with the right arguments. Of course you still need to type in the password.
The script can be run on any machine having fetchmail installed. It will connect using POP3 to the old server and then forward the mail to the google servers. That's all.
Correct me if I'm wrong (and I hope I'm wrong....) but won't this then log EVERY email on your Google Apps account as having arrived the day you forwarded it there through fetchmail? I was thinking about doing this but I have about 8000 emails in gmail and if I migrated them to my google apps account, it would flood the inbox. Unless I set up a TON of labels. Thoughts? Thanks!
indeed, I didn't notice that. When clicking on the mail the date is set to the date of the header of the mail. But in the list the date is set to the date gmail got the mail.
After browsing the web a bit more I discovered it is not possible to disable this behavior.

Usefull links are: