diff --git a/check-postfix.sh b/check-postfix.sh index f6782e3..07d2599 100755 --- a/check-postfix.sh +++ b/check-postfix.sh @@ -64,6 +64,7 @@ do_emergency_email () { MAILSERVER=`dig $DOMAIN mx | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+' | head -n 1` ## Setting up coprocess to send commands to telnet session coproc TELNET { telnet $MAILSERVER 25; } + coproc TELNET { telnet $MAILSERVER 25; } ## Commands to send email manually local -a commands=(