Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 456 Vote(s) - 3.51 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to resolve ‘530 5.7.0 Must issue a STARTTLS command first. o63-v6sm4041934ywc.36 - gsmtp\n’ for elasticsearch?

#1
I am creating an application where I need to send an email alert for my logs.
Here is input to create a watcher:

PUT _xpack/watcher/watch/log_error_watch
{
"trigger" : {
"schedule" : { "interval" : "10s" }
},
"input" : {
"search" : {
"request" : {
"indices" : [ "testindexv4" ],
"body" : {
"query" : {
"match" : { "log_level": "ERROR" }
}
}
}
}
}
,
"actions" : {
"send_email" : {
"email" : {
"to" : "<mailId>@gmail.com",
"subject" : "Watcher Notification",
"body" : "error logs found"
}
}
}
}

Here is configuration for elasticsearch.yml

xpack.security.enabled: false
xpack.notification.email.account:
standard_account:
profile: standard
smtp:
auth: false
starttls.enable: false
starttls.required: false
host: smtp.gmail.com
port: 587

When I try to run my watcher, I get the error as:

`reason": "530 5.7.0 Must issue a STARTTLS command first. o63-v6sm4041934ywc.36 - gsmtp\n`

any solution on the same please?
Reply

#2
It's solved now, all I need to do is enable TLS authentication.

Here is my updated content of **elasticsearch.yml**:

xpack.security.enabled: false
xpack.notification.email.account:
standard_account:
profile: standard
smtp:
auth: true
starttls.enable: true
starttls.required: true
host: smtp.gmail.com
port: 587
user: <mailId>
password: <passowrd>

Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through