Google Apps mail, formmail and missing emails!

Sometime ago I signed up with Google Apps to have them handle all my email. Initially everything went very smoothly and I was pleased with the decision. However, I soon noticed that I wasn't getting any emails from the contact form on my web site.

After many hours of searching I finally found the cause. The 'contact us' page used a fairly standard formmail type script. This sends email out using the server's MTA, in my case, Postfix. My out of the box Postfix was actually setup to deliver any email addressed to locally, rather than sending it out to my remotely hosted email service, in this case Google Apps Mail.

The solution was pretty simple and I eventually found it here. All I had to do was edit the /etc/postfix/ file and change the mydestination variable to:

mydestination = localhost

Then I restarted the Postfix service and tested my contact form... and it worked! I hope this helps anyone else in the same situation. Remember to backup config files before making any changes though, in case this solution isn't the right one for you :)



YUM - Repository base is listed more than once

PayPal UK telephone number

"PC Not Listed" XBox 360 - Solution

Including random number (timestamp) in vBulletin

Hiding Thunderbird "Sending Messages" dialogue