Skip to content

Commit

Permalink
Merge pull request #230 from SUNET/richir-message-size-limit
Browse files Browse the repository at this point in the history
adding ability to use message_size_limit in main.cf
  • Loading branch information
richir-sunet authored Dec 19, 2024
2 parents be81ef8 + a4ce1f6 commit d51f27f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions manifests/mail/postfix.pp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
String $alias_domains,
String $environment,
String $imap_domain,
Optional[Integer] $message_size_limit,
Array[String] $relaying_servers,
String $short_domain,
String $smtp_domain,
Expand Down
3 changes: 3 additions & 0 deletions templates/mail/postfix/main.erb.cf
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,6 @@ smtpd_sasl_path = inet:<%= @imap_domain %>:12346
smtpd_sasl_auth_enable = yes

virtual_transport = lmtp:<%= @imap_domain %>:24
<% if @message_size_limit -%>
message_size_limit = <%= @message_size_limit %>
<% end -%>

0 comments on commit d51f27f

Please sign in to comment.