WebFaction
Community site: login faq

Following this advice, would the following be a correct configuration?

alt text

asked 25 Nov '10, 05:37

Jonathan
281813
accept rate: 0%


Yep, that should work fine :)

I've noticed recently that google seem to change the recommended servers and priorities fairly often as it's different to our own documentation on setting this up. If I log into my own personal account, they are different again. Very odd.

permanent link

answered 25 Nov '10, 05:46

David L ♦♦
1.4k13
accept rate: 45%

Here is a script you can use to automate everything. I got it from the old forums, but I've added a bit to it... mainly the verify string.

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 verification 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, start)
    except:
        pass

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

answered 19 Jan '11, 23:45

nwcell
161
accept rate: 0%

edited 17 Mar '11, 01:05

ryans ♦♦
5.0k93360

Your answer
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

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×261
×104
×10

question asked: 25 Nov '10, 05:37

question was seen: 5,285 times

last updated: 17 Mar '11, 01:05

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM