ferm/services-eve/40-mail

18 lines
624 B
Plaintext
Raw Normal View History

2014-12-19 19:50:19 +00:00
&allow_service_for(ldap,mail);
&def_service(smtp, mail, tcp, 25);
&def_service(submission, mail, tcp, 587);
&def_service(imap, mail, tcp, 143);
&def_service(sieve, mail, tcp, 4190);
&def_service(dsync, mail, tcp, 4170);
&forward_to_service(smtp, tcp, 25);
&forward_to_service(submission, tcp, 587);
&forward_to_service(imap, tcp, 143);
&forward_to_service(sieve, tcp, 4190);
&forward_to_service(dsync, tcp, 4170);
@def $mail_ip4 = @resolve(mail, A);
@def $mail_ip6 = @resolve(mail, AAAA);
domain (ip ip6) table filter chain FORWARD interface $bridge saddr @ipfilter(($mail_ip4 $mail_ip6)) protocol tcp dport smtp ACCEPT;