Skip to content

Commit d51f27f

Browse files
authored
Merge pull request #230 from SUNET/richir-message-size-limit
adding ability to use message_size_limit in main.cf
2 parents be81ef8 + a4ce1f6 commit d51f27f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

manifests/mail/postfix.pp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
String $alias_domains,
55
String $environment,
66
String $imap_domain,
7+
Optional[Integer] $message_size_limit,
78
Array[String] $relaying_servers,
89
String $short_domain,
910
String $smtp_domain,

templates/mail/postfix/main.erb.cf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,6 @@ smtpd_sasl_path = inet:<%= @imap_domain %>:12346
5656
smtpd_sasl_auth_enable = yes
5757

5858
virtual_transport = lmtp:<%= @imap_domain %>:24
59+
<% if @message_size_limit -%>
60+
message_size_limit = <%= @message_size_limit %>
61+
<% end -%>

0 commit comments

Comments
 (0)