Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

puppet: Be more restrictive about mm addresses.

Alex Vandiverab035f76de0e
diff --git a/puppet/zulip/files/postfix/access b/puppet/zulip/files/postfix/access
index 265bcf70cee..0f4450aea28 100644
--- a/puppet/zulip/files/postfix/access
+++ b/puppet/zulip/files/postfix/access
@@ -4,6 +4,6 @@
/\+.*@/ OK
/\..*@/ OK
-/^mm/ OK
+/^mm.{32}@/ OK
/^postmaster@/ OK
diff --git a/puppet/zulip/templates/postfix/virtual.erb b/puppet/zulip/templates/postfix/virtual.erb
index 09c8db7d930..d2585476325 100644
--- a/puppet/zulip/templates/postfix/virtual.erb
+++ b/puppet/zulip/templates/postfix/virtual.erb
@@ -1,7 +1,7 @@
if /@<%= Regexp.escape(@postfix_mailname) %>\.?$/
# Changes to this list require a corresponding change to `access` as
# well.
-/\+.*@/ zulip@localhost
-/\..*@/ zulip@localhost
-/^mm/ zulip@localhost
+/\+.*@/ zulip@localhost
+/\..*@/ zulip@localhost
+/^mm.{32}@/ zulip@localhost
endif