Tux Warrior: Email Server

Let’s take stock of where we are at. So far we have:

  • setup an IPv6 tunnel, using gogoc
  • setup a web server, using Apache

Our next steps include:

  • register a domain name
  • update the AAAA and MX records for our domain
  • setting up an email server / client

So let’s begin…

Registering your domain

Head to godaddy.com and register a new domain. A top-level domain like .info is relatively cheap ( < $ 5 NZD) and will also provide all the functionality that you will need to complete the Administrator Cert, and potentially move forwards to Sage.

Update DNS Records (AAAA, MX)

Once you have your own domain, open the GoDaddy’s DNS Manager. Cast your eyes over the various settings and options; for the Administrator Cert we will modify both the AAAA and MX records.

AAAA record


Find the AAAA record within the DNS Manager, and click ‘Quick Add’. Enter ‘@’ into the host field, and for ‘Points To’, enter your global IPv6 address. You can get your global IPv6 address by running the command:

$ ip -6 address show | grep global

MX Record


By default, there are two entries in the MX records. Modify the entry that has a Priority of ’10’, keep the priority as is, and enter ‘@’ into the Host and Points To fields (see pic above). You can delete the other entry.


Testing our AAAA and MX records

ImageOpen a terminal and enter ‘nslookup’ interactive mode. Set your query to the MX record, and enter your domain name (mine is nicknet6.info). If your settings are correct, you should see a single MX (mail exchange) entry and a AAAA record that corresponds to your global IPv6 address (see figure alongside)

To further test your AAAA record, head to http://ipv6-test.com/validate.php and enter your domain name. If you web server is properly installed, and your quad-A record is right, you should get a positive test for:

  • checking for AAAA DNS setting
  • checking for IPv6 web server

Congratulatios! You have successfully setup your IPv6 web server, and updated your DNS settings 🙂

Email server & email client

For this we will use dovecot-postfix as our email server, and thunderbird as our email client.

Head back to the terminal and install both:

$ sudo apt-get install dovecot-postfix && sudo apt-get install thunderbird

As postfix installs, you will be asked to enter a couple of settings, use the following:

general type of mail config:    Internet Site

System mail name:    yourdomain (i.e. nicknet6.info)

Configure Thunderbird

Start up thunderbird and create a new account. Try to configure the account manually and enter your own settings. For mine, I used the following:


Assuming everything is all good, hit ‘re-test’ and then Done. Thunderbird will pause with a security warning, click “I understand the risks” and finish the setup.


Test It!

It comes back to testing. Send yourself an email. Use any existing email account and send a test message to your new email. It should show up in Thunderbird. 


Congratulations – you have an IPv6 tunnel, a running web server and a functional mail server! All that is left now is to go through the HE Certificates. 

Explorer Test

This will test your IPv6 connectivity. Thanks so your good installation of gogoc (or miredo) you will pass with flying colours.

Enthusiast Test

This will test your web server. You will need to generate a user code, and then save a txt file in /var/www/. This is the root public folder for your web server, from which HE will attempt to download the text file. Assuming your Apache web server is up and running (and your firewall allows incoming requests) you should pass with ease.

Administrator Test

For this test, you will have to supply HE with the email you just setup. They will send you an email with a passcode in it. Copy and paste this pass code into HE’s test page and you are away laughing!


And that’s it, you are now officially a HE Administrator and on your way to IPv6 Sage status!


So why this long stream of blog posts? There are plenty of other blogs and run-throughs out there. I had issues with my home Windows 7 machine, and connectivity issues with the Windows Gogo Client. On top of all this, I felt that dumbly following Sam Bowne’s guide was not going to help me become familiar with IPv6 tunneling / web server / email server.

Ultimately, I can now rapidly setup an IPv6 tunnel on any linux-based machine (or Unix for that matter). I have dappled with setting up and troubleshooting an Apache web server. And I have setup and tested a number of email servers (postfix was a VERY simple one to use, and hence why I went with it in this blog).


#Victory is mine!


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s