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

@ -1,10 +1,6 @@
listen on lo0
<% if @smtpd_relay -%>
accept from local for any relay via <%= @smtpd_relay %><% if @mail_domain %> as "@<%= @mail_domain %>"<% end %>
<% if @relay -%>
accept from local for any relay via <%= @relay %><% if @mail_domain %> as "@<%= @mail_domain %>"<% end %>
<% else -%>
table aliases db:/etc/mail/aliases.db
accept from local for local alias <aliases> deliver to mbox
accept from local for any relay<% if @mail_domain %> as "@<%= @mail_domain %>"<% end %>
<% end -%>