Comments (6)
We can successfully close this assistance!
Solution:
- NOTIFICATION_URLS=smtp://prefix%5Cusername%40example.com:PassWd@hostname:port/?auth=None&encryption=None&fromAddress=[email protected]&starttls=No&toAddresses=[email protected]
from docker-volume-backup.
Your configuration as is looks correct and I'm using email notifications in the very same manner myself, so it's probably about that URL itself.
I could not do any troubleshooting cause there is no outputs to the console about emails from the container .
In case sending the email returns an error you should see a message like this in your log output:
Backup procedure ran successfully, but an error ocurred calling the registered hooks: ...
In case this is not present it means that the email client is able to send out the notification, but it's likely not being sent to the correct address.
I'm not entirely sure about the meaning of that double backslash in your email. Could you maybe try using this tool containrrr/shoutrrr#103 (comment) to encode the URL and see if it produces the same result?
from docker-volume-backup.
Thanks for the quick response!
i will try that
from docker-volume-backup.
Actually, this param: BACKUP_PRUNING_LEEWAY=5m, block me of viewing the error log (i didn't wait 5 min ), error msg shows after 5min of sleep :-)
I got this error without touching the previous setup, then i replace all @ signs with %40 in username, fromAddress and toAddress, did not replace @ prefix to the hostname. Also in username i have a prefix to a username in form of a backslash () which replaced with %5C.
- NOTIFICATION_URLS=smtp://prefix%5Cusername%40example.com:PassWd@hostname:port/[email protected]&[email protected]
Every try resulted with same error >
level=error msg="Backup procedure ran successfully, but an error occurred calling the registered hooks: runHooks: error running hook: notifySuccess: error notifying: sendNotification: error sending message: error enabling StartTLS: x509: cannot validate certificate for *myhostname* because it doesn't contain any IP SANs"
Is TLS/SSL security necessary?
I'm already sending emails from Spring Boot to that server with just following setup (no SSL/TLS, just simple smtp auth)
spring.mail.host=hostIpAddress
spring.mail.port=25
spring.mail.username=prefix\[email protected]
spring.mail.password=PaSswD
spring.mail.properties.mail.smtp.auth=true
Thanks!!
from docker-volume-backup.
Reading this: https://containrrr.dev/shoutrrr/v0.5/services/email/ I think passing useStartTLS=no
might work for you but I'm not sure about other options that need to be set. In any case you should be able to get the setup you need using the parameters described in the shoutrrr
documentation.
from docker-volume-backup.
Finally!
got thiis working, here [(https://containrrr.dev/shoutrrr/v0.5/services/email/)] they said the key is: useStartTLS, but it is actually a StartTLS in lowercase. beside that i added two more : auth=None&encryption=None
And it is working!
Thank you very much for the assistance !!
from docker-volume-backup.
Related Issues (20)
- "Page not found" error when using with balena HOT 9
- Hard to understand error message during exec HOT 3
- archive-pre is triggered on each container backup instead of just container with exec-label HOT 3
- Health Check HOT 6
- Notifications Delay HOT 1
- Replace Log line feeds with HTML <br> tag HOT 3
- Backup the entire content without directory HOT 4
- Backup to subfolders HOT 2
- Resolve date in AWS_S3_PATH HOT 1
- Can't get stop during backup working HOT 2
- Remove local backup after upload to S3 HOT 3
- Invalid memory address crash when running a backup HOT 16
- Fail to configure cron schedule HOT 3
- Docker swarm error HOT 5
- "swarm exec" support HOT 1
- "input/output error" when copying file to NFS mount HOT 4
- Azure storage: Support access tier HOT 2
- schedule the docker-volume-backup? HOT 1
- [Feature] Automated backups of all named volumes HOT 6
- [FR] upgrade `shoutrrr` to v0.8.0 to support custom fields in calls to Generic Webhooks HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-volume-backup.