Skip to content

Commit

Permalink
WIP: update common template
Browse files Browse the repository at this point in the history
  • Loading branch information
jay7x committed Jul 21, 2023
1 parent 409a649 commit c0f4ba6
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions templates/mailhost/mailhost_common.epp
Original file line number Diff line number Diff line change
Expand Up @@ -32,30 +32,32 @@

proxy_pass_error_message <%= $proxy_pass_error_message %>;

<%- if $protocol == 'imap' { -%>
<%- if $imap_auth { -%>
<%- case $protocol { -%>
<%- 'imap': { -%>
<%- if $imap_auth { -%>
imap_auth <%= $imap_auth %>;
<%- } -%>
<%- if $imap_capabilities { -%>
<%- } -%>
<%- if $imap_capabilities { -%>
imap_capabilities <%= $imap_capabilities.join(" ") %>;
<%- } -%>
<%- if $imap_client_buffer { -%>
<%- } -%>
<%- if $imap_client_buffer { -%>
imap_client_buffer <%= $imap_client_buffer %>;
<%- } -%>
<%- } -%>
<%- } -%>
<%- if $protocol == 'pop3' { -%>
<%- if $pop3_auth { -%>
<%- 'pop3': { -%>
<%- if $pop3_auth { -%>
pop3_auth <%= $pop3_auth %>;
<%- } -%>
<%- if $pop3_capabilities { -%>
<%- } -%>
<%- if $pop3_capabilities { -%>
pop3_capabilities <%= $pop3_capabilities.join(" ") %>;
<%- } -%>
<%- } -%>
<%- } -%>
<%- if $protocol == 'smtp' { -%>
<%- if $smtp_auth { -%>
<%- 'smtp': { -%>
<%- if $smtp_auth { -%>
smtp_auth <%= $smtp_auth %>;
<%- } -%>
<%- if $smtp_capabilities { -%>
<%- } -%>
<%- if $smtp_capabilities { -%>
smtp_capabilities <%= $smtp_capabilities.join(" ") %>;
<%- } -%>
<%- } -%>
<%- } -%>

0 comments on commit c0f4ba6

Please sign in to comment.