Exim not sending email to our own email addresses

emailemail-serverexim

Here is a situation.

We use google app for our emails. Our application is hosted at another host and this application sends out emails. The emails from the application are being sent fine to every email except our own email addresses.

Lets say our domain name is example.com, the emails to abc@examle.com is not getting delivered, but they are getting stored locally on the box only.

We are using exim as a mail server on the box where the application is deployed. We have also set up dc_relay_domains.

What could be missing? How do we make sure that the email to email addresses of our own domain names get delivered?

Best Answer

man update-exim4.conf
   dc_other_hostnames
          is  used to build the local_domains list, together with "localhost".  This is the list of domains
          for which this machine should consider itself the final destination. The local_domains list  ends
          up in the macro MAIN_LOCAL_DOMAINS.

check in autogenerated exim.conf for smth like this:

dnslookup:
  driver = dnslookup
  domains = ! +local_domains
  transport = remote_smtp
  ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
  no_more

This means that message is routed through remote delivery (remote_smtp transport) if domain in rcpt address is different than local_domains. If not, message goes to another router, some router accepts it and in your case it ends up in local delivery transport.

I'm sorry, but in your case you should go full hog on Exim and learn configuring Exim manually. update-exim4.conf is for typical cases.

Related Topic