Google Apps doesn’t allow wildcards for a subdomain which we need to be able to handle replies coming into The Mentor Center.
This tutorial is developed for Ubuntu 12.10 but may work for earlier versions.
First, setup DNS to handle the subdomain MX record. We use DNS Made Easy because their features, price and performance are pretty much perfect. Adjust the following to work with your DNS provider.
```sub.domain.com. MX 10 aliasingservername.
sub.domain.com. MX 20 mx1.dnsmadeeasy.com.```
The second entry is a backup spool. You’ll need to be paying for that.
Then setup postfix. We set it up to only allow relaying for specified domains so we don’t get blacklisted.
You’ll want the following lines in /etc/postfix/main.cf
```virtual_alias_domains = sub.domain.com```
```virtual_alias_maps = hash:/etc/postfix/virtual```
Edit the virtual file with the subdomain and catch-all address.
```vi /etc/postfix/virtual```
```@sub.domain.com [email protected]```
When you are done, run
```postmap /etc/postfix/virtual```
Restart postfix.
```service postfix restart```
Sheldon is Julie's husband and the father of Kristin, Ava & Jamie. His dog Boston takes him for walks. His wife and kids have 2 cats that just lay there and a kitten that Satan created.
Sheldon is the Director of Digital Strategies for Power to Change. He serves a team of more than 20 dedicated staff and hundreds of online missionaries.
In his spare time, Sheldon provides web services such as web design and development, SEO, strategic planning and marketing through Abigah Co.