ElastAlert Error smtplib.SMTPSenderRefused: (530, b'5.7.0 Authentication Required. Learn more at\n5.7.0

I am trying to configure elastalert 2 to read from elasticsearch index and send alert according to configured rule, i am using gmail smtp and app password to achieve this. Every thing is running fine but when i try to test it, its giving me the authentication error however i have changed app password multiple time but nothing did work.
First i gave the smtp_auth_file location to read the creds but that didn't work and Elastalert won'tstart then i have define the user and pass in file then its get start but giving authentication error
Here is my elastalert config file.

rules_folder: /opt/elastalert/rules
run_every:
  seconds: 10

buffer_time:
  minutes: 15

es_host: x.x.x.x
es_port: 9200

es_username: elastic
es_password: upmFVKkXXgaLONnUzhp

writeback_index: elastalerting
writeback_alias: elastalerting

alert_time_limit:
  days: 2

  #smtp_user: elk-noti@gmail.com
  #smtp_password: fsdp gwvm emyo jdiq
smtp_host: "smtp.gmail.com"
smtp_port: 587
smtp_ssl: false
from_addr: "elk-noti@gmail.com"
#smtp_auth_file: "/opt/elastalert/authen.yaml"
user: elk-noti@gmail.com
password: fsdojdipgwvmemyq

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.