hosts = !+debianhosts
set acl_m_rprf = localonly
+<%- if nodeinfo['mailrelay'] -%>
+ warn local_parts = +local_only_users
+ domains = +mailhubdomains
+ hosts = !+debianhosts
+ set acl_m_rprf = localonly
+
+<%- end -%>
accept condition = ${if eq {$acl_m_rprf}{}{no}{yes}}
<%- if nodeinfo['rtmaster'] -%>
# Some people put from hostmaster@something.debian.org in the From
# header. Take their crack pipe away.
- drop condition = ${if match{${lc:$h_from:}}{\Npostmaster@(\[^.\].)?debian\.org\N}}
+ drop condition = ${if match{${lc:$h_From:}}{\Npostmaster@([^.]+\.)?debian\.org\N}}
<%- if nodeinfo['rtmaster'] -%>
deny condition = ${if eq {$acl_m_prf}{RTMail}}