• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Email notifications fail - Service Watchdog

pfSense Packages
2
6
1.7k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M
    Mateh
    last edited by Apr 16, 2018, 5:08 AM

    Hello.

    I'm not sure if this is specific to the package or a wider problem with pfSense… I have emails successfully set up via System -> Advanced -> Notifications tab (with working test emails received)
    In the log is the following:.

    notify_monitor.php: Could not send the message to my@email.com – Error: Failed to add recipient: my@email.com [SMTP: Invalid response code received from server (code: 550, response: 5.7.1 Relaying denied)]

    Any idea what would cause this?

    1 Reply Last reply Reply Quote 0
    • G
      Gertjan
      last edited by Apr 16, 2018, 9:08 AM

      @Mateh:

      …. (code: 550, response: 5.7.1 Relaying denied)]

      Any idea what would cause this?

      Yep.
      "You" send a mail without identifying first. Your mail server said 5.7.1 (their language for"sorry, no free ride here, ID or get l*st").

      I never used "Service_Watchdog", because didn't know I needed it. Never sw a serveice go down if it was not me stopping it - anyway, I installed it - make it monitor a service, Avahi, and I 'killed' Avahi.
      I received the mail, my own postfix mail server - very picky about syntax - using TLS - own domaine name) :

      Notifications in this message: 1

      10:55:00 Service Watchdog detected service avahi stopped. Restarting avahi (Avahi
      Zeroconf/mDNS Daemon)

      Btw : Notifications also works if I use a mail from my ISP - or gmail - or yahoo or hot/look/msn/play mail server.

      No "help me" PM's please. Use the forum, the community will thank you.
      Edit : and where are the logs ??

      1 Reply Last reply Reply Quote 0
      • M
        Mateh
        last edited by Apr 18, 2018, 12:07 AM

        @Gertjan:

        Yep.
        "You" send a mail without identifying

        I just can't figure out why it would be saying this if the SMTP settings are correct and can send emails successfully from there. They're supposod to be using the same settings?

        1 Reply Last reply Reply Quote 0
        • G
          Gertjan
          last edited by Apr 18, 2018, 10:26 AM

          The Service_Watchdog package uses the function notify_via_smtp(), and this function is the one that sends mails as per your instructions.
          Service_Watchdog doesn't send mails on it own - I just checked.

          Btw : we are talking latest version of pfSense and the Service_Watchdog ( 1.8.4 ), right ?

          edit : What are your mail settings ?

          No "help me" PM's please. Use the forum, the community will thank you.
          Edit : and where are the logs ??

          1 Reply Last reply Reply Quote 0
          • M
            Mateh
            last edited by Apr 19, 2018, 8:14 AM

            Indeed.

            pfSense 2.4.3 running Service_Watchdogs 1.8.4.

            Settings from Notifications:

            E-Mail server: smtp.mailgun.org
            SMTP Port of e-Mail server: 465
            Secure SMTP Connection: [tick]
            From e-mail address: my@email.com
            Notification E-mail address: my@email.com
            Notification E-Mail auth username: my@login.email
            Notification E-Mail auth password: mypass
            Notification E-Mail auth mechanism: PLAIN

            1 Reply Last reply Reply Quote 0
            • G
              Gertjan
              last edited by Apr 20, 2018, 8:07 AM

              @Mateh:

              Indeed.

              pfSense 2.4.3 running Service_Watchdogs 1.8.4.

              Settings from Notifications:

              E-Mail server: smtp.mailgun.org
              SMTP Port of e-Mail server: 465
              Secure SMTP Connection: [tick]
              From e-mail address: my@email.com
              Notification E-mail address: my@email.com
              Notification E-Mail auth username: my@login.email
              Notification E-Mail auth password: mypass
              Notification E-Mail auth mechanism: PLAIN

              Looks fine to me.
              I have exactly the same thing, with one difference : I'm not using some mail supplier, but my own mail server on a delicate server on the Internet (so I have full control on both sides).

              You are using the right port (465 - which uses TLS from start) and you are identifying yourself correctly.
              If this goes wrong ones in a while, answers should by found by the one running "smtp.mailgun.com".

              No "help me" PM's please. Use the forum, the community will thank you.
              Edit : and where are the logs ??

              1 Reply Last reply Reply Quote 0
              3 out of 6
              • First post
                3/6
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.