EXIM: Can't send email in local networkThe default configuration for a Debian Sarge or Debian Etch system with Exim4 is to NOT allow MX records to point to internal IP addresses. This means, if you have a host inside your network and you want to send an email to someone inside your own network, you can't... at least by default. The error message you are likely to see in your Exim log (/var/log/exim4/mainlog) after trying to send an email is: all relevant MX records point to non-existent hostsIn order to fix this default configuration (problem), you must make a change to the exim4 configuration. In Debian, when you install exim, it gives you the choice for split configuration or... not-split configuration. Depending on what you picked at that point, you will have to make this change in the corresponding place. I will show both files you have to change, so if you are unsure, just make the change in both places. The setting we want to change is 'ignore_target_hosts' in the dnslookup section. By default in Debian this value is set to all private network IPs. We need to remove the private networks from this list. So the setting should be: ignore_target_hosts = 0.0.0.0 : 255.255.255.255 : 169.254.0.0/16If you have a split configuration, the file you need to change is: /etc/exim4/conf.d/router/200_exim4-config_primaryIf you do not have split configuration, the file you need to change is: /etc/exim4/exim4.conf.templateNow if you've done any kind of customization to exim or if you aren't using Debian Sarge or Etch, these files might not be the ones you need to change. In that case, find out where the "router" configuration file(s) for Exim are, and then update the ignore_target_hosts in that file as shown above. If you have any comments or suggestions regarding this fix, please share them using the comment system below. Author: DPAK Created: Jul 5 2006 Categories: Exim TechByte #141 Warning: By visiting this site and/or by using any information contained herein, you agree to the Techbytes.ca terms of use. Add a comment about this TechByteIf you wish to add a comment regarding this TechByte, please use the form below. Please note that by submitting comments using this form you are allowing all of the information submitted to be visible on this website. Any comments submitted using this form will only be shown on the website if they are approved by the administrators of this site. IF APPROVED, COMMENTS MAY TAKE SEVERAL DAYS TO BE POSTED. Other TechBytes: |
|

