Giter Club home page Giter Club logo

Comments (6)

MarkoArsic avatar MarkoArsic commented on August 23, 2024 1

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.

m90 avatar m90 commented on August 23, 2024

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.

MarkoArsic avatar MarkoArsic commented on August 23, 2024

Thanks for the quick response!
i will try that

from docker-volume-backup.

MarkoArsic avatar MarkoArsic commented on August 23, 2024

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.

m90 avatar m90 commented on August 23, 2024

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.

MarkoArsic avatar MarkoArsic commented on August 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.