linuxserver / docker-healthchecks

GNU General Public License v3.0
177 stars 37 forks source link

Sendgrid Emails don't work #90

Closed rajeshisnepali closed 2 years ago

rajeshisnepali commented 2 years ago

linuxserver.io


Expected Behavior

The email integration should work.

Current Behavior

Email notification is not working. While it works in my local machine using same environments.

Steps to Reproduce

  1. Setup docker environment in cloud (using yetiapp.cloud)
  2. Go to the integrations, email & hit Send Test! Email
  3. You don't get an email
  4. I'm using Sendgrid to send email. using SSL:465

Here is my smtp creds for local_settings.py:

DEFAULT_FROM_EMAIL = "noreply@domain.com"
EMAIL_HOST = "smtp.sendgrid.net"
EMAIL_HOST_PASSWORD = "my random password"
EMAIL_HOST_USER = "apikey"
EMAIL_PORT = "465"
EMAIL_USE_TLS = False
EMAIL_USE_SSL = True

Environment

OS: Ubuntu 20.04.4 LTS CPU architecture: x86_64 How docker service was installed: sudo apt install docker.io

Command used to create docker container (run/create/compose/screenshot)

docker-compose up -d

CONTAINER ID   IMAGE                                     COMMAND   CREATED        STATUS        PORTS                      NAMES
bf66ab9af796   lscr.io/linuxserver/healthchecks:latest   "/init"   17 hours ago   Up 17 hours   127.0.0.1:8080->8000/tcp   healthchecks

Docker logs

image Full Log: healthchecks_docker_log.log

github-actions[bot] commented 2 years ago

Thanks for opening your first issue here! Be sure to follow the bug or feature issue templates!

khatriamit commented 2 years ago

first check if the docker container can access the smtp. Use ping smtp.sendgrid.net and check if it pings.

try rebooting your docker service/ server