diff --git a/src/hostinfo/named.py b/src/hostinfo/named.py
index a83ef2e11f38c6d5f9913da2431fac313765aa7e..34cf055b83e53ce5dfc4013bbff83dc20a81d33b 100755
--- a/src/hostinfo/named.py
+++ b/src/hostinfo/named.py
@@ -232,6 +232,12 @@ def generate_forward(tree, hosts):
     for c in tree._subnet_._cname_:
         result[c.domain[1]].add_host(c.alias[0], c.ttl[0], 'CNAME', c.name[0])
         pass
+    # Add mx hosts
+    for m in tree._host_._interface_._mailhost_:
+        # Force generation of domain file even if only mailhost present
+        result[m.domain[0]]
+        pass
+
     # Add numbered hosts
     def add_host(domain, name, ttl, address):
         if address.version == 4: