smtpd: Initial server support

Still missing are TLS and authentication support.
This commit is contained in:
Ossi Salmi 2013-07-28 20:44:41 +03:00
parent 0b7dca59d3
commit ce5dd6a96d
4 changed files with 142 additions and 8 deletions

View file

@ -0,0 +1,21 @@
listen on egress
<% @domains.each do |domain| -%>
table aliases.<%= domain %> db:/etc/mail/aliases.<%= domain %>.db
<% end -%>
<% @virtual.each do |domain| -%>
table virtual.<%= domain %> db:/etc/mail/virtual.<%= domain %>.db
<% end if @virtual -%>
<% @domains.each do |domain| -%>
accept from any for domain <%= domain %> alias <aliases.<%= domain%>> \
deliver to mda "<%= @mda %>"
<% end -%>
<% @virtual.each do |domain| -%>
accept from any for domain <%= domain %> virtual <virtual.<%= domain%>> \
deliver to mda "<%= @mda %>"
<% end if @virtual -%>
accept from local for local alias <aliases> \
deliver to mda "<%= @mda %>"
accept from local for any relay<% if @mail_domain %> as "@<%= @mail_domain %>"<% end %>