mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-08-03 01:24:52 +02:00
change if style (#3361)
This commit is contained in:
parent
0e592aa911
commit
cf74127f78
58 changed files with 297 additions and 594 deletions
|
@ -71,14 +71,11 @@ function _generate_openssl_cmd() {
|
|||
local CMD_OPENSSL="timeout 1 openssl s_client -connect ${HOST}:${PORT}"
|
||||
|
||||
# STARTTLS ports need to add a hint:
|
||||
if [[ ${PORT} =~ ^(25|587)$ ]]
|
||||
then
|
||||
if [[ ${PORT} =~ ^(25|587)$ ]]; then
|
||||
CMD_OPENSSL="${CMD_OPENSSL} -starttls smtp"
|
||||
elif [[ ${PORT} == 143 ]]
|
||||
then
|
||||
elif [[ ${PORT} == 143 ]]; then
|
||||
CMD_OPENSSL="${CMD_OPENSSL} -starttls imap"
|
||||
elif [[ ${PORT} == 110 ]]
|
||||
then
|
||||
elif [[ ${PORT} == 110 ]]; then
|
||||
CMD_OPENSSL="${CMD_OPENSSL} -starttls pop3"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue