login community faq

I have the records from when my domain was hosted at Dreamhost. I'm trying to enter them in the Webfaction panel.

1
2
3
4
RECORD        TYPE        VALUE
              MX       0 aspmx.l.google.com.
calendar      CNAME    ghs.google.com.
docs         CNAME    ghs.google.com.

I'm not sure how to do this. The form has the following fields:

A ip:

Cname:

Mx name:

Mx priority:

TXT Record:

SRV Record:

What would I fill in for each of the records listed above?

asked Jan 02 '11 at 22:58

milesmeow's gravatar image

milesmeow
169


Hi,

You could use the following guide, to do the above setup: http://docs.webfaction.com/user-guide/email.html#using-google-apps-for-email

Hope that helps!

answered Jan 02 '11 at 23:07

neeravk's gravatar image

neeravk ♦♦
14061311

This automates the process. I've added a bit to include the verify sub-domain.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
**Code:**

#!/usr/bin/env python2.5
import xmlrpclib

# EDIT: webfaction credentials
username = "YOUR USERNAME"
password = "YOUR PASSWORD"

# no need to edit below this line
server = xmlrpclib.Server('https://api.webfaction.com/')
session_id, account = server.login(username, password)

domain = raw_input("Please enter your domain name (no www, etc): ")
mail = raw_input("Please enter the mail subdomain (mail): ")
cal = raw_input("Please enter the mail subdomain (calendar): ")
doc = raw_input("Please enter the mail subdomain (docs): ")
start = raw_input("Please enter the mail subdomain (start): ")
gstring = raw_input("Please enter the verefication string (gstring ): ")

# mx info
mx_info = (
            ('ASPMX.L.GOOGLE.COM','10'),
            ('ALT1.ASPMX.L.GOOGLE.COM','20'),
            ('ALT2.ASPMX.L.GOOGLE.COM','20'),
            ('ASPMX2.GOOGLEMAIL.COM','30'),
            ('ASPMX3.GOOGLEMAIL.COM','30'),
            ('ASPMX4.GOOGLEMAIL.COM','30'),
            ('ASPMX5.GOOGLEMAIL.COM','30'),
          )

# create mx records
for mx in mx_info:
    server.create_dns_override(session_id,
                               domain,
                               '',
                               '',
                               mx[0],
                               mx[1],
                               '')

# create CNAME record
try:
    server.create_domain(session_id, domain, mail)
except:
    pass

server.create_dns_override(session_id,
                           mail + "." + domain,
                           '',
                           'ghs.google.com',
                           '',
                           '',
                           '')

if cal:
    try:
        server.create_domain(session_id, domain, cal)
    except:
        pass

    server.create_dns_override(session_id,
                           cal + "." + domain,
                           '',
                           'ghs.google.com',
                           '',
                           '',
                           '')

if doc:
    try:
        server.create_domain(session_id, domain, doc)
    except:
        pass

    server.create_dns_override(session_id,
                           doc + "." + domain,
                           '',
                           'ghs.google.com',
                           '',
                           '',
                           '')

if start:
    try:
        server.create_domain(session_id, domain, start)
    except:
        pass

    server.create_dns_override(session_id,
                           start + "." + domain,
                           '',
                           'ghs.google.com',
                           '',
                           '',
                           '')

if start:
    try:
        server.create_domain(session_id, domain, gstring)
    except:
        pass

    server.create_dns_override(session_id,
                           gstring+ "." + domain,
                           '',
                           'google.com',
                           '',
                           '',
                           '')

answered Jan 19 '11 at 23:51

nwcell's gravatar image

nwcell
161

That looks like a cool script. I haven't tried it out yet but from I've been using a script similar to script based on something that I found in the answer that I marked as accepted above. This is a link on the page referenced in the answer above. http://forum.webfaction.com/viewtopic.php?pid=9647

(Jan 22 '11 at 22:53) milesmeow milesmeow's gravatar image
Your answer
If you have an answer to the above question, then use the form below. Otherwise, use the appropriate 'add new comment' button above to post your feedback.
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

×57

Asked: Jan 02 '11 at 22:58

Seen: 1,601 times

Last updated: Jan 22 '11 at 22:54

Plans & prices    Sign up    Why WebFaction?    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
Powered by OSQA
© Copyright 2003-2012 Swarma Limited - WebFaction is a service of Swarma Limited