type on master.cf.tmpl

This commit is contained in:
Sebastian Hugentobler 2016-07-06 11:47:13 +02:00
parent 0c2a47a79a
commit af0b9e3dac

View File

@ -1,5 +1,5 @@
{{range $mailhosts := split (getenv "MAILHOSTS") ";"}} {{range $mailhosts := split (getenv "MAILHOSTS") ";"}}
{{$values := split ($admin_value) ":"}} {{$values := split ($mailhosts) ":"}}
{{index $values 0}}:smtp inet n - - - - smtpd {{index $values 0}}:smtp inet n - - - - smtpd
-o myhostname={{index $values 1}} -o myhostname={{index $values 1}}
-o smtpd_tls_key_file=/etc/ssl/mail/{{index $values 1}}/privkey.pem -o smtpd_tls_key_file=/etc/ssl/mail/{{index $values 1}}/privkey.pem