I am getting authentication error while sending mail throug logstash.
below is my Email configuration I set
email {
debug => true
authentication => "login"
address => "**my mail server IP**"
port => 25
username => "**service account name**"
password => "**service account password**"
body => "text mail to check notification"
from => "**my mail id**"
subject => "Test mail to check notification"
to => "**my mail id**"
}
I am getting below error
[2017-02-08T09:39:02,129][ERROR][logstash.outputs.email ] Something happen while delivering an email {:exception=>#<Net::SMTPSyntaxError: 504 5.7.4 Unrecognized authentication type
}
am I missing any mail parameter which is causing this error or I have to set different value for authentication?
Try setting authentication to "plain". If that doesn't help, please telnet to port 25 of your email server, type EHLO yourhostname (insert your hostname) and report the response. It should look similar to this but hopefully with an AUTH line:
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.