Easily add a domain alias to Google Apps (without the sent via)

The domain alias feature of Google Apps for domains allows you to manage different email adresses from one single inbox. It´s easy to set up and makes managing multiple accounts so much more effective.

One issue that often comes up though, is that your primary domain is shown next to the domain alias in the emails from-field:

From: user@domainalias.com via primarydomain.com

Luckily it´s quite easy to get rid of the via link by adding authenticating keys to your email headers. Follow the steps below to set up domain aliases without the via-link.

  1. Add domain alias – Follow these instructions to add the domain alias to your account.
  2. Set MX records – Configure the MX records of your domain. Detailed instructions here.
  3. Add authentication records – To prevent Gmail from showing your primary domain, you need to set up SPF and DKIM email authentication headers.
  4. Wait for propagation – It may take a while before your DNS records are updated on all servers. I my case it took about 30 minutes. Use Google Apps Toolbox to check for any issues.
  5. Verify domain alias to primary email account – Login to your primary email account and configure it for sending mail from your domain alias. Use the username of your primary domain (eg if your username is info@primarydomain you should now use info@secondarydomain.com). Important: select the option Send through domainalias.com SMTP servers. Set smtp.gmail.com as SMTP server and select port 465. Use your primary domain´s username and password.