%for %%domain in %%lmtp.server_lmtp
  %set %%name=%%normalize_family(%%domain)
  %for %%lst in %%lmtp['lmtp_' + name]['criteria_' + %%name]
%if '@' not in %%lst
%set %%lst = '.*@' + %%lst
%end if
/^%%lst$/                       lmtp:[%%domain]:8024
  %end for
%end for
