smtpd: Update server config for OpenSMTPD 5.4
This commit is contained in:
parent
fbadf40c91
commit
8653c7d02d
3 changed files with 15 additions and 17 deletions
|
@ -1,6 +1,9 @@
|
|||
pki egress certificate "<%= scope.lookupvar('ssl::certs') %>/smtpd.crt"
|
||||
pki egress key "<%= scope.lookupvar('ssl::private') %>/smtpd.key"
|
||||
|
||||
listen on lo0
|
||||
listen on egress port smtp tls certificate server
|
||||
listen on egress port submission tls-require certificate server auth
|
||||
listen on egress port smtp tls pki egress
|
||||
listen on egress port submission auth tls-require pki egress
|
||||
|
||||
table aliases db:/etc/mail/aliases.db
|
||||
table clients db:/etc/mail/clients.db
|
||||
|
@ -36,5 +39,5 @@ accept from any for domain { "<%= domain %>", "*.<%= domain %>" } \
|
|||
<% end -%>
|
||||
|
||||
# relay for remote clients and local users
|
||||
accept from <clients> for any relay<% if @mail_domain %> as "@<%= @mail_domain %>"<% end %>
|
||||
accept from source <clients> for any relay<% if @mail_domain %> as "@<%= @mail_domain %>"<% end %>
|
||||
accept from local for any relay<% if @mail_domain %> as "@<%= @mail_domain %>"<% end %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue