{% for domain in lmtp.server_lmtp %}
{% set name=domain|normalize_family %}
{% for lst in lmtp['lmtp_' + name]['criteria_' + name] %}
{% if '@' not in lst %}
{% set lst = '.*@' + lst %}
{% endif %}
/^{{ lst }}$/ lmtp:[{{ domain }}]:8024
{% endfor %}