Sogo on YunoHost in DMZ with other maliservers

Hi,
i have two mailservers in a DMZ

and now a new SUGO on YunoHost

all hosts are configured to use dns server 10.10.10.1 from the firewall
and in the firewall : Unbound DNS Overrides : all mailservers are configured:

Test

  • On A ping B response from 10.10.10.20
  • On B ping A response from 10.10.10.10

On YunoHost

  • On C ping A response from public IP A
  • On C ping B response from public IP B

how can i configure YunoHost to use the firewalls DNS?
thanks in advance

I change the /etc/resolv.dnsmasq.conf and add a line on top of the file

  • nameserver 10.10.10.1

Now all mailservers A B C can send mails between their domains A B C
Also send and receive to and from external mailservers works.

The YunoHost diagnose is not so happy.
Says 10.10.10.10 should be public IP A

i hope that i dont found other side effects.

today
sending an email from C to A no longer works
sending from C to B works
/etc/resolv.dnsmasq.conf is unchanged with 10.10.10.1 in the first line
nslookup B shows 10.10.10.20 is okay
nslookup A shows public IP-A is wrong
nslookup A 10.10.10.1 shows 10.10.10.10 is okay


After a restart everything works as expected
It’s a nightmare, i don’t know what’s going on with the name resolution on the yunohost system

today

  1. I change /etc/resolv.dnsmasq.conf back to original and delete the first line

  2. I try something with NAT-Reflection without success.

    • The mailservers have to much restrictions like spf and reverse IP checks
  3. i put the other mailserver in

  4. I found that postfix use its own hosts, so i copy the hosts

    • cp /etc/hosts /var/spool/postfix/etc/hosts
      • but Postfix does not work
  5. I found that postfix ignores hosts and the config needs an additional entry

    • nano /etc/postfix/main.cf
      • smtp_host_lookup = native
  6. Now it works fine.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.