Skip to content

Commit

Permalink
added relayport variable
Browse files Browse the repository at this point in the history
  • Loading branch information
s-ntt committed Jan 10, 2022
1 parent 8ed418d commit 01aeca9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
1 change: 1 addition & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
$opportunistictls = false,
$recipient_delimiter = undef,
$relayhost = undef,
$relayport = undef,
$relayhost_mx_lookup = false,
$generatecert = false,
$subjectselfsigned = undef,
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion templates/main.cf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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? -%>
Expand Down

0 comments on commit 01aeca9

Please sign in to comment.