I recently noticed that I wasn’t receiving any comment email notifications from Movable Type so I decided to dive into the system to figure out what was going wrong. Running mt-check.cgi reported back that sendmail was installed so I thought it might be a permissions issue between the the apache user process and sendmail. I typed in ’sendmail’ at the prompt and received back a message talking about “Exim“. Well, I’m not a Linux guru, but I do know that Sendmail!=Exim. So I turned to google to tell me what the heck Exim is and how do I figure out what’s going wrong. Google pointed me to the exim log file on the system which I watched as I sent test emails from Movable Type. The exim.log showed that it could not resolve the email addresses and was failing. A second thing I noticed was the ton of spam it was successfully blocking. So I went back to google to find out more info. I tried searching on keywords “exim movabletype”, “exim configuration” and couldn’t find anything useful. Then after staring at the exim.conf file for 10min, the lines “domainlist local_domains=” hit me. Google had told me that Exim was used for transferring and relaying local mail. My mail is being hosted at google through google apps. So I did a new google search for “exim google apps“. That search gave up a clue that got me one step further: If you are using a linux server, don’t forget to edit the /etc/remotedomains file to delete your domain. Well after poking around the file system I knew that I didn’t have a “remotedomains” file, but it did sound very similar to my “/etc/virtual/domains” file mentioned in my exim.conf. So I googled “/etc/virtual/domains“. And saw my final clue titled: Disable SMTP to certain local domains? That article did not have the exact answer but gave me enough information for me to solve the problem. To disable SMTP/mail service for specific domains just copy “/etc/virtual/domains” to some other file such as “/etc/virtual/domains_with_smtp”, edit the file and delete all the domains which use google mail, then point exim.conf “domainlist local_domains=” and “domainlist relay_domains=” to use this new file.
Voila! Email notifications now work!