add no reply prototype (not working), CI tag support
This commit is contained in:
7
confd/conf.d/noreply.toml.disabled
Normal file
7
confd/conf.d/noreply.toml.disabled
Normal file
@@ -0,0 +1,7 @@
|
||||
[template]
|
||||
src = "noreply.tmpl"
|
||||
dest = "/etc/postfix/noreply"
|
||||
keys = [
|
||||
"/noreply/aliases",
|
||||
"/virtual/mailbox/domains",
|
||||
]
|
||||
10
confd/templates/noreply.tmpl
Normal file
10
confd/templates/noreply.tmpl
Normal file
@@ -0,0 +1,10 @@
|
||||
# "no-reply" mail aliases.
|
||||
# DO NOT edit this file, it will be overwritten.
|
||||
# Instead, set the variable NOREPLY_ALIASES
|
||||
{{ range split (getv "/noreply/aliases") " " }}
|
||||
{{ if (strings.Contains . "@") }}
|
||||
{{.}} _dev_null
|
||||
{{ else }}
|
||||
{{.}}@{{ index (split (getv "/virtual/mailbox/domains") " ") 0 }} _dev_null
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user