Skip to content

WATCHTOWER_NOTIFICATIONS=email; Does not appear to be working #2106

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

Closed
bh56 opened this issue May 12, 2025 · 2 comments
Closed

WATCHTOWER_NOTIFICATIONS=email; Does not appear to be working #2106

bh56 opened this issue May 12, 2025 · 2 comments

Comments

@bh56
Copy link

bh56 commented May 12, 2025

Describe the bug

I'm trying to use WATCHTOWER_NOTIFICATIONS=email with gmail using an app password.
Configuration appears to be working with some occasional timeout errors. But I never receive any notifications at all. Appreciate any insight or let me know if this is a bug I'm experiencing.

Steps to reproduce

I have the following docker compose file:
version: "3.7"
services:
watchtower:
image: containrrr/watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- WATCHTOWER_NOTIFICATIONS=email
- WATCHTOWER_NOTIFICATION_EMAIL_TO=my.to.email@gmail.com
- WATCHTOWER_NOTIFICATION_EMAIL_FROM=my.from.email@gmail.com
- WATCHTOWER_NOTIFICATION_EMAIL_SERVER=smtp.gmail.com
- WATCHTOWER_NOTIFICATION_EMAIL_SERVER_TLS_SKIP_VERIFY=false
- WATCHTOWER_NOTIFICATION_EMAIL_PORT=587
- WATCHTOWER_NOTIFICATION_EMAIL_SERVER_USER=my.outbound.email@gmail.com
- WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD=mayapppassword
- WATCHTOWER_NOTIFICATION_EMAIL_DELAY=300
- WATCHTOWER_NOTIFICATION_EMAIL_SUBJECTTAG=Watchtower-Updates
hostname: watchtower
command: --cleanup --interval 21600 # every 6 hours
restart: always

Expected behavior

I believe I have the correct configurations. I expect to see an email on start up and when I have any updates.

Screenshots

No response

Environment

  • Platform = Raspberry PI 5
  • Architecture = linux aarch64 Debian GNU/Linux 12 (bookworm) - RPIOS
  • Docker Version = 28.1.1; Using Portainer to configure

Your logs

time="2025-05-12T16:33:33Z" level=info msg="Watchtower 1.7.1"
time="2025-05-12T16:33:33Z" level=info msg="Using notifications: smtp"
time="2025-05-12T16:33:33Z" level=info msg="Checking all containers (except explicitly disabled with label)"
time="2025-05-12T16:33:33Z" level=info msg="Scheduling first run: 2025-05-12 16:34:33 +0000 UTC"
time="2025-05-12T16:33:33Z" level=info msg="Note that the first check will be performed in 59 seconds"
time="2025-05-12T16:34:36Z" level=info msg="Session done" Failed=0 Scanned=5 Updated=0 notify=no
time="2025-05-12T16:35:35Z" level=info msg="Session done" Failed=0 Scanned=5 Updated=0 notify=no
time="2025-05-12T16:36:35Z" level=info msg="Session done" Failed=0 Scanned=5 Updated=0 notify=no
time="2025-05-12T16:37:35Z" level=info msg="Session done" Failed=0 Scanned=5 Updated=0 notify=no
time="2025-05-12T16:38:35Z" level=info msg="Session done" Failed=0 Scanned=5 Updated=0 notify=no
time="2025-05-12T16:38:43Z" level=error msg="Failed to send shoutrrr notification" error="failed to send using smtp: timed out" index=0 notify=no service=smtp
time="2025-05-12T16:39:35Z" level=info msg="Session done" Failed=0 Scanned=5 Updated=0 notify=no
time="2025-05-12T16:40:35Z" level=info msg="Session done" Failed=0 Scanned=5 Updated=0 notify=no

Additional context

No response

Copy link

Hi there! 👋🏼 As you're new to this repo, we'd like to suggest that you read our code of conduct as well as our contribution guidelines. Thanks a bunch for opening your first issue! 🙏

@bh56
Copy link
Author

bh56 commented May 16, 2025

I figured it out. - WATCHTOWER_NOTIFICATION_EMAIL_PORT=587 should be - WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT=587

@bh56 bh56 closed this as completed May 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant