Below is a reply from postfix-users. Works perfectly for me.
--
Below is a patch. I find that the handling of this differs a lot among shell implementations, from terminating to ignoring.
Wietse
diff -ur /var/tmp/postfix-3.6-20200523/conf/postfix-tls-script conf/postfix-tls-script --- /var/tmp/postfix-3.6-20200523/conf/postfix-tls-script 2017-02-18 20:58:20.000000000 -0500 +++ conf/postfix-tls-script 2020-05-30 10:37:04.000000000 -0400 @@ -777,7 +777,7 @@ deploy_server_cert() { certfile=$1; shift keyfile=$1; shift - deploy=$1; shift + case $# in 0) deploy=;; *) deploy=$1; shift;; esac
# Sets key_algo, key_param and cert_param check_key "$keyfile" || return 1
Below is a reply from postfix-users. Works perfectly for me.
--
Below is a patch. I find that the handling of this differs a lot
among shell implementations, from terminating to ignoring.
Wietse
diff -ur /var/tmp/ postfix- 3.6-20200523/ conf/postfix- tls-script conf/postfix- tls-script postfix- 3.6-20200523/ conf/postfix- tls-script 2017-02-18 20:58:20.000000000 -0500 tls-script 2020-05-30 10:37:04.000000000 -0400 server_ cert() {
--- /var/tmp/
+++ conf/postfix-
@@ -777,7 +777,7 @@
deploy_
certfile=$1; shift
keyfile=$1; shift
- deploy=$1; shift
+ case $# in 0) deploy=;; *) deploy=$1; shift;; esac
# Sets key_algo, key_param and cert_param
check_key "$keyfile" || return 1