use image for multiple hosts

This commit is contained in:
Sebastian Hugentobler 2016-07-11 10:30:57 +02:00
parent 4e68d2fa39
commit 71c8f5eb86
2 changed files with 8 additions and 4 deletions

View File

@ -1,6 +1,8 @@
{{getenv "MYDOMAIN"}}-out unix - - - - - smtp
-o smtp_helo_name={{getenv "MYHOSTNAME"}}
-o syslog_name=postfix/smtp-{{getenv "MYHOSTNAME"}}
{{range $mailhost := split (getenv "MAILHOSTS") ","}}
{{$mailhost}}-out unix - - - - - smtp
-o smtp_helo_name={{$mailhost}}
-o syslog_name=postfix-{{$mailhost}}
{{end}}
submission inet n - - - - smtpd
-o syslog_name=postfix/submission

View File

@ -1 +1,3 @@
@{{getenv "MYDOMAIN"}} {{getenv "MYDOMAIN"}}-out
{{range $mailhost := split (getenv "MAILHOSTS") ","}}
@{{$mailhost}} {{$mailhost}}-out
{{end}}