Had to replace camtel.net with
This commit is contained in:
parent
f334b8d66e
commit
0911f7b134
@ -12,6 +12,7 @@ TEST=0
|
|||||||
## Email addresses
|
## Email addresses
|
||||||
NOTIFY_EMAIL=recipient@domain.com
|
NOTIFY_EMAIL=recipient@domain.com
|
||||||
MAIL_FROM=username@domain.net
|
MAIL_FROM=username@domain.net
|
||||||
|
FROM_DOMAIN=` echo $FROM_EMAIL | cut -d @ -f 2 `
|
||||||
DAMAIN=` echo $NOTIFY_EMAIL | cut -d @ -f 2 `
|
DAMAIN=` echo $NOTIFY_EMAIL | cut -d @ -f 2 `
|
||||||
|
|
||||||
# END: Variables
|
# END: Variables
|
||||||
@ -38,7 +39,7 @@ do_emergency_email () {
|
|||||||
|
|
||||||
## Commands to send email manually
|
## Commands to send email manually
|
||||||
local -a commands=(
|
local -a commands=(
|
||||||
"ehlo camtel.net\n"
|
"ehlo $FROM_DOMAIN\n"
|
||||||
"mail from: <$MAIL_FROM>\n"
|
"mail from: <$MAIL_FROM>\n"
|
||||||
"rcpt to: <$NOTIFY_EMAIL>\n"
|
"rcpt to: <$NOTIFY_EMAIL>\n"
|
||||||
"data\n"
|
"data\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user