Im trying to set up email notifications using mailx on Centos 7.5. However, test mail failed to send due to AUTH LOGIN error as shown below. Please help!
[nagios@nagioscore objects]$ mailx -v -s "test email" john.smith@company.com
.
EOT
Null message body; hope that's ok
Password:
Resolving host mailrelay.int.company.com . . . done.
Connecting to 10.13.158.21:smtp . . . connected.
220 fihe3nok0734.emar.snn-net.net ESMTP Sat, 15 Dec 2018 00:05:38 GMT
>>> EHLO nagioscore
250-fihe3nok0734.emea.nsn-net.net Hello [10.3.17.130], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE 36700160
250-DSN
250-ETRN
250-AUTH GSSAPI
250-STARTTLS
250-DELIVERBY
250 HELP
>>> AUTH LOGIN
504 5.3.3 AUTH mechanism LOGIN not available
smtp-server: 504 5.3.3 AUTH mechanism LOGIN not available
"/home/nagios/dead.letter" 11/337
. . . message not sent.
[nagios@nagioscore objects]$