Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ignore_target_hosts #65

Open
mtucker502 opened this issue Apr 7, 2020 · 1 comment
Open

ignore_target_hosts #65

mtucker502 opened this issue Apr 7, 2020 · 1 comment

Comments

@mtucker502
Copy link

In a deployment I saw this error:

all relevant MX records point to non-existent hosts

After some research I discovered the ignore_target_hosts configuration option. This was configured in both:

/etc/exim4/conf.d/router/200_exim4-config_primary
/etc/exim4/exim4.conf.template

Since my MX server's A records record resolves to an address in the 10.0.0.0/8 it was being ignored as a viable host. I had to modify both configuration files and reload the service in order to send messages.

Can we add environment variables to allow modifying this configuration option?

@mtucker502
Copy link
Author

I did try to bind mount localmacros with the following:

.ifdef DCconfig_internet
dnslookup:
  debug_print = "R: dnslookup for $local_part@$domain"
  driver = dnslookup
  domains = ! +local_domains
  transport = remote_smtp
  same_domain_copy_routing = yes
  # ignore private rfc1918 and APIPA addresses
  ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8 : 192.168.0.0/16 :\
                        172.16.0.0/12 : 169.254.0.0/16 :\
			255.255.255.255
  dnssec_request_domains = *
  no_more

.endif

This does get added to /etc/exim4/exim4.conf.localmacros as expected however it does not override what is set in exim4.conf.template and in the router config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant