diff --git a/CHANGELOG.md b/CHANGELOG.md index 50364d0..73766fb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # CHANGELOG +## 0.2.45 + +* added **relayport** variable to specify a port for **relayhost** when **relayhost_mx_lookup** is false + ## 0.2.44 * added postfix settings: diff --git a/manifests/init.pp b/manifests/init.pp index 58fef55..4531f24 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -38,6 +38,7 @@ $opportunistictls = false, $recipient_delimiter = undef, $relayhost = undef, + $relayport = undef, $relayhost_mx_lookup = false, $generatecert = false, $subjectselfsigned = undef, diff --git a/metadata.json b/metadata.json index b23b8fe..9bf4cca 100644 --- a/metadata.json +++ b/metadata.json @@ -1,6 +1,6 @@ { "name": "eyp-postfix", - "version": "0.2.44", + "version": "0.2.45", "author": "eyp", "summary": "postfix management - relay or multidomain mailserver", "license": "Apache-2.0", diff --git a/templates/main.cf.erb b/templates/main.cf.erb index 04cdc76..be0f5b3 100644 --- a/templates/main.cf.erb +++ b/templates/main.cf.erb @@ -343,7 +343,7 @@ mynetworks = <%= @mynetworks.join(",") %> #relayhost = uucphost #relayhost = [an.ip.add.ress] <% if defined?(@relayhost) -%> -relayhost = <% if ! @relayhost_mx_lookup %>[<% end %><%= @relayhost %><% if ! @relayhost_mx_lookup %>]<% end %> +relayhost = <% if ! @relayhost_mx_lookup %>[<% end %><%= @relayhost %><% if ! @relayhost_mx_lookup %>]<% end %><% if defined?(@relayport) -%>:<%= @relayport %><% end %> <% end -%> <% if @smtp_fallback_relay.any? -%>