Code Monkey home page Code Monkey logo

Comments (9)

titusjaka avatar titusjaka commented on May 18, 2024

Hi Bulat,

Thank you for reaching out!
Could you please format your config file? YAML files demand whitespaces, but it's not properly formatted. It will facilitate understanding of config and speed up the solution of your issue.

from moira.

usbulat avatar usbulat commented on May 18, 2024

@titusjaka Hi Denis, thank you. I've fixed formatting.

from moira.

titusjaka avatar titusjaka commented on May 18, 2024

I tried to reproduce this issue but didn't succeed. I assume, it's your config is the reason of problem.

Please, try to change it this way and tell me, if it works for you:

  senders:
    - type: mail
      mail_from: <your-gmail-login>@gmail.com
      smtp_host: smtp.gmail.com
      smtp_port: 587
      insecure_tls: false
      smtp_user: "<your-gmail-login>@gmail.com"
      smtp_pass: "<your-super-secure-password>"

Most likely, you will not succeed and Google will return you an error like this:

2018-05-11 15:07:50.463 notifier        CRITICAL        Can not register sender mail: Don't initialize sender [mail], err [534 5.7.14 <bla-bla-bla> Please log in via your web browser and
5.7.14 then try again.
5.7.14  Learn more at
5.7.14  https://support.google.com/mail/answer/78754 m18-v6sm578567lfj.34 - gsmtp]

In this way, please go to this page: less secure apps and toggle the switch.

--
Please, let me know if this works for you :)

from moira.

usbulat avatar usbulat commented on May 18, 2024

Tried your config, but no success. Still same message:
WARNING Can't send message after 6 try: Unknown contact type 'mail' [package of 1 notifications to [email protected]]. Retry again after 1 min.

What else can be the reason of this problem?

from moira.

titusjaka avatar titusjaka commented on May 18, 2024

Any other log messages out there? Could you please attach log file from notifier startup to error?

from moira.

usbulat avatar usbulat commented on May 18, 2024

Thank you so much @titusjaka. I've managed to configure notifier, I was using wrong config.

from moira.

titusjaka avatar titusjaka commented on May 18, 2024

Happy to know, you solved your problem :)

You also wrote that message: #42 (comment) is it related to this issue?

from moira.

titusjaka avatar titusjaka commented on May 18, 2024

@usbulat the other question is how did you fix your issue? Would you mind me asking you to describe the solution?

It would help us to improve documentation :)

from moira.

usbulat avatar usbulat commented on May 18, 2024

Yes, comment in https://github.com/moira-alert/moira/issues/42#issuecomment-388018750 was related to my problem. It is all ok in documentation, just my automation bug.

from moira.

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.