watchtower
watchtower copied to clipboard
SMTP timeout error with Outlook email notifications
Describe the bug
A timeout error is raised for shoutrrr when using Outlook for smtp notifications
Steps to reproduce
- Configure email notification settings using smtp with Outlook settings. Filling in your own details. Settings used:
- WATCHTOWER_NOTIFICATIONS=email
- WATCHTOWER_NOTIFICATION_EMAIL_FROM=emailaddress
- WATCHTOWER_NOTIFICATION_EMAIL_TO=emailaddress
- WATCHTOWER_NOTIFICATION_EMAIL_SERVER=smtp-mail.outlook.com
- WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT=587
- WATCHTOWER_NOTIFICATION_EMAIL_SERVER_USER=username
- WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD=app_password
- WATCHTOWER_NOTIFICATION_EMAIL_DELAY=300
- WATCHTOWER_NOTIFICATION_EMAIL_SUBJECTTAG=Watchtower
- Start container.
- Check logs to find error time="2024-01-11T10:16:17-06:00" level=error msg="Failed to send shoutrrr notification" error="failed to send using smtp: timed out" index=0 notify=no service=smtp
Expected behavior
An email is sent and no error is raised.
Screenshots
No response
Environment
- Docker using Portainer and run from a Compose file
- amd64
- 20.10.23 (API: 1.41)
Your logs
time="2024-01-11T10:29:54-06:00" level=debug msg="Sleeping for a second to ensure the docker api client has been properly initialized."
time="2024-01-11T10:29:55-06:00" level=debug msg="Making sure everything is sane before starting"
time="2024-01-11T10:29:55-06:00" level=debug msg="Retrieving running and restarting containers"
time="2024-01-11T10:29:55-06:00" level=debug msg="Retrieving running and restarting containers"
time="2024-01-11T10:29:55-06:00" level=debug msg="There are no additional watchtower containers"
time="2024-01-11T10:29:55-06:00" level=debug msg="Watchtower HTTP API skipped."
time="2024-01-11T10:29:55-06:00" level=info msg="Watchtower 1.7.1"
time="2024-01-11T10:29:55-06:00" level=info msg="Using notifications: smtp"
time="2024-01-11T10:29:55-06:00" level=info msg="Checking all containers (except explicitly disabled with label)"
time="2024-01-11T10:29:55-06:00" level=info msg="Scheduling first run: 2024-01-12 00:00:00 -0600 CST"
time="2024-01-11T10:29:55-06:00" level=info msg="Note that the first check will be performed in 13 hours, 30 minutes, 4 seconds"
time="2024-01-11T10:35:05-06:00" level=error msg="Failed to send shoutrrr notification" error="failed to send using smtp: timed out" index=0 notify=no service=smtp
Additional context
No response
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! 🙏
Looks like this is an upstream issue in shoutrrr.