Part four of my IPv6 certification walkthrough for Hurricane Electric: Become an IPv6 Sage!
IPv6: Administrator Level Certification
Need help on a different IPv6 certification level? I have walkthroughs for all of them! These walkthroughs are for OS X.
Conceptual Overview of Earning the Administrator-Level Certification
Your task at this level is to set up a functioning email server, create an MX DNS record, and then ask Hurricane Electric to send you an email--all over IPv6.
- Set up a basic SMTP server on your Mac
- Create an MX record on dns.he.net
- Ask HE to email you at your IPv6 mail server
- Check your mail and enter the code on the HE site
Edit the Postfix Config File
Luckily, OS X is essentially a server operation system, but by default the server-like features are disabled. We have already enabled the Web server and now it is time to turn on the mail server. To do this, you will need to adjust some settings in a config file and then turn the service on with a Terminal command.
- Open /etc/postfix/main.cf in a text editor
- Make the following changes:
#myhostname = host.domain.tld #myhostname = virtual.domain.tld myhostname = mx.jakesalmela.com #mydomain = domain.tld mydomain = jakesalmela.com mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, inet_protocols = ipv6 inet_interfaces = all
Start Postfix (Your New Mail Server) from Terminal
sudo postfix start
Test that you Can Connect to Port 25 from Terminal
telnet localhost 25
If you see output saying …connected to host … you should be good to go. Then exit out.
As an alternative, you can also try typing
netstat -an | grep LISTEN | grep ".25"
to verify functionally. If you get a result withLISTENING , it should be working.
Forward SMTP Traffic to your Computer
Your mail server is working now, but no one will be able to reach it over IPv6 until you make it available to the Internet. This is done via port forwarding, just like when the Web server was set up, except this time, it needs to be a different port number.
- Log into your router
- Search for a setting called Port Forwarding or Virtual Server
- Enter your private IPv4 address
- Enter or choose port 25 (smtp traffic)
- Some routers will have common services in a list, which will populate the fields for you. See the options on my router below:
- Choose TCP if there is an option for it
- Click Save or Enable
Create An MX Record So HE Can Find Your New Mail Server
Now that your server is up and running, we need to tell HE how to find it. This is done by creating an MX DNS record.
- Navigate to dns.he.net
- Click the button next to your domain to edit the DNS records
- Click New MX
- Enter your domain information
There should now be a AAAA and an MX record in the zone
Ask HE to Email You At Your New IPv6 Server
DNS can sometimes take a little time to replicate across the Internet, so if it doesn’t work right away, just wait a little bit before trying again.
- Navigate to ipv6.he.net
- Enter your firstname.lastname@example.org (find your username by typingwhoami in the Terminal)
- Click Send it!
Check Your Email To Find the Verification Code
There should be a line reading:
N 1 email@example.com Sun Nov 3 09:41 26/893 "IPv6 Certification Administrator Mail Test"
Type 1 and press Enter to read the mail. Copy the code from the body of the email to your clipboard.
Paste the Verification Code Into the Field on HE’s Site to Verify That You Are Running the Server They Just Sent An Email To
- Navigate back to ipv6.he.net
- Paste the code into the field and click Submit
- Answer the test questions to complete the level and earn the certification