diff options
| author | Paul Buetow <paul@buetow.org> | 2022-07-23 10:47:16 +0100 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2022-07-23 10:47:16 +0100 |
| commit | d32a317172229c7cad21d93dbc287716fb993a1b (patch) | |
| tree | 33568d1b3ede343cbd3ffb3c23d590b9fa4db28b /frontends/etc/mail | |
| parent | c14126bdb3cebec42e9e8216d360b724228df222 (diff) | |
also add smtpd to use acme
Diffstat (limited to 'frontends/etc/mail')
| -rw-r--r-- | frontends/etc/mail/smtpd.conf.tpl | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/frontends/etc/mail/smtpd.conf.tpl b/frontends/etc/mail/smtpd.conf.tpl index 2fb68e3..a3c324b 100644 --- a/frontends/etc/mail/smtpd.conf.tpl +++ b/frontends/etc/mail/smtpd.conf.tpl @@ -2,16 +2,21 @@ # See smtpd.conf(5) for more information. # I used https://www.checktls.com/TestReceiver for testing. +# +<% + our $primary = $is_primary->($vio0_ip); + our $prefix = $primary ? '' : 'www.'; +%> -pki "buetow_org_tls" cert "/etc/ssl/buetow.org.fullchain.pem" -pki "buetow_org_tls" key "/etc/ssl/private/buetow.org.key" +pki "buetow_org_tls" cert "/etc/ssl/<%= $prefix %>buetow.org.fullchain.pem" +pki "buetow_org_tls" key "/etc/ssl/private/<%= $prefix %>buetow.org.key" table aliases file:/etc/mail/aliases table virtualdomains file:/etc/mail/virtualdomains table virtualusers file:/etc/mail/virtualusers listen on socket -listen on all tls pki "buetow_org_tls" hostname "<%= $mail_hostname->($hostname) %>" +listen on all tls pki "buetow_org_tls" hostname "<%= $prefix %>buetow.org" #listen on all action localmail mbox alias <aliases> |
