-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Praeco Docker smtp settings error #245
Comments
Have you tried nslookup/curl inside elastalert-server container? please check permission and configurations on your |
Got it working, the smtp settings given in config/elastalert.yaml not working. SMTP settings working after inputing the following inside rules/BaseRule.config smtp_host: "smtp.gmail.com" |
It works according to Praeco's specifications. |
Google account in advance → Apps that can access the account → Allow less secure apps: Disable → Enable
Dockerfiles/Dockerfile.elastalert
docker-compose.yml
es/config/elasticsearch.yml
kibana/config/kibana.yml
praeco/bin/elastalert-start.sh
praeco/bin/elastic_search_status.sh
praeco/config/api.config.json Default settings
praeco/config/elastalert.yaml Default settings
praeco/public/praeco.config.json Default settings
praeco/pass/smtp_auth_user.yaml "xxxx" in the email address and password part is not the value actually set
praeco/rules/BaseRule.config
praeco/rules/a.yaml "xxxx" in the email address and password part is not the value actually set
setting
|
When I set from_addr to a non-gmail address (in this case, set it to yahoo.co.jp) and to to the gmail address, an email arrived at the gmail address.
Dockerfiles/Dockerfile.elastalert
docker-compose.yml
es/config/elasticsearch.yml
kibana/config/kibana.yml
praeco/bin/elastalert-start.sh
praeco/bin/elastic_search_status.sh
praeco/config/api.config.json Default settings
praeco/config/elastalert.yaml Default settings
praeco/public/praeco.config.json Default settings
praeco/pass/smtp_auth_user.yaml "xxxx" in the email address and password part is not the value actually set
praeco/rules/BaseRule.config
praeco/rules/a.yaml "xxxx" in the email address and password part is not the value actually set
setting
|
As far as I can see from the ElastAlert docs, it should be like this ... If the specified Gmail account uses the two-step authentication process, you need to enter the app password generated in Google's account settings in the password field for SMTP authentication.
smtp_auth_user.yaml
If your Gmail account doesn't use two-step verification, you'll need to enable insecure app access in your Google account settings.
smtp_auth_user.yaml
|
I got the same error in AWS SES smtp settings, so it's not related to gmail insecure app. As I said earlier I got it working when I moved the smtp settings to the praeco/rules/BaseRule.config insted of praeco/config/elastalert.yaml. If the BaseRule.config is where the smtp settings is required please update the document accordingly, as I couldn't find any relavent documentation for the email smtp configuration. |
Is that so. I don't know anymore so I won't investigate for you |
elastalert is not compatible with AWS SES. Therefore, praeco does not support it either. |
Did you try remove smtp options in BaseRule.config, I believe those in elastalert.yml got overrode |
Is this issue still going on? |
Close. Reopens when communication resumes |
It was necessary to enable Gmail's insecure app permissions. Please understand it even if you do not understand it because it is an actual movement. |
Hi, I am getting the following error when setting up email alerts using praeco docker setup.
ERROR elastalert-server: ProcessController: ERROR:root:Error while running alert email: Error connecting to SMTP host:[Errno -2] Name does not resolve
config/elastalert.yaml
is this how the smtp settings are configured ?.
From inside the praeco_elastalter container curl smtp.gmail.com return results so something else is the error, or the above config is not using by the server. Any solution to this issue.
The text was updated successfully, but these errors were encountered: