1、 [hadoop@ruozedata001 hadoop]$ smtp-server: 501 mail from address must be same as authorization user
"/home/hadoop/dead.letter" 11/381
. . . message not sent.
^C
echo "send a mail"
echo -e "`date "+%Y-%m-%d %H:%M:%S"` : Please to check namenode log." | mail \
-r "From: alertAdmin <XXXXX@qq.com>" \
-s "Warn: CDH HDFS HA Failover!." ${EMAIL}
From: alertAdmin邮箱要和认证邮箱保持一致
2. [hadoop@ruozedata001 hadoop]$ smtp-server: 501 Bad address syntax
"/home/hadoop/dead.letter" 11/382
. . . message not sent.
## 邮箱格式错了