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

    notifications via SMTP - every 10 seconds

    Scheduled Pinned Locked Moved General pfSense Questions
    3 Posts 3 Posters 462 Views
    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.
    • O
      osalj
      last edited by

      Hey,

      I have a router with Pfsense 2.6.0

      At the beginning, during the configuration, I set notifications via SMTP.

      Everything worked fine.

      A few days ago I changed ISP and now I have a dynamic IP address.

      I have set up Dynamic DNS (No-IP Free) so that I can access through the domain even after changing the IP address.

      Unfortunately, now Pfsense sends me an email every 10 seconds with information about the DDNS:

      Log:

      Jan  8 22:22:24 pfSense php[24604]: notify_monitor.php: Message sent to myemail@mydomain.com OK
      Jan  8 22:22:34 pfSense php[24604]: notify_monitor.php: Message sent to myemail@mydomain.com OK
      Jan  8 22:22:44 pfSense php[24604]: notify_monitor.php: Message sent to myemail@mydomain.com OK
      Jan  8 22:22:54 pfSense php[24604]: notify_monitor.php: Message sent to myemail@mydomain.com OK
      Jan  8 22:23:05 pfSense php[24604]: notify_monitor.php: Message sent to myemail@mydomain.com OK
      Jan  8 22:23:15 pfSense php[24604]: notify_monitor.php: Message sent to myemail@mydomain.com OK
      Jan  8 22:23:25 pfSense php[24604]: notify_monitor.php: Message sent to myemail@mydomain.com OK
      Jan  8 22:23:35 pfSense php[24604]: notify_monitor.php: Message sent to myemail@mydomain.com OK
      Jan  8 22:23:45 pfSense php[24604]: notify_monitor.php: Message sent to myemail@mydomain.com OK
      Jan  8 22:23:56 pfSense php[24604]: notify_monitor.php: Message sent to myemail@mydomain.com OK
      Jan  8 22:24:06 pfSense php[24604]: notify_monitor.php: Message sent to myemail@mydomain.com OK
      Jan  8 22:24:16 pfSense php[24604]: notify_monitor.php: Message sent to myemail@mydomain.com OK
      Jan  8 22:24:26 pfSense php[24604]: notify_monitor.php: Message sent to myemail@mydomain.com OK
      Jan  8 22:24:36 pfSense php[24604]: notify_monitor.php: Message sent to myemail@mydomain.com OK
      Jan  8 22:24:47 pfSense php[24604]: notify_monitor.php: Message sent to myemail@mydomain.com OK
      Jan  8 22:24:57 pfSense php[24604]: notify_monitor.php: Message sent to myemail@mydomain.com OK
      Jan  8 22:25:07 pfSense php[24604]: notify_monitor.php: Message sent to myemail@mydomain.com OK
      Jan  8 22:25:18 pfSense php[24604]: notify_monitor.php: Message sent to myemail@mydomain.com OK
      Jan  8 22:25:28 pfSense php[24604]: notify_monitor.php: Message sent to myemail@mydomain.com OK
      Jan  8 22:25:38 pfSense php[24604]: notify_monitor.php: Message sent to myemail@mydomain.com OK
      Jan  8 22:25:48 pfSense php[24604]: notify_monitor.php: Message sent to myemail@mydomain.com OK
      Jan  8 22:25:58 pfSense php[24604]: notify_monitor.php: Message sent to myemail@mydomain.com OK
      

      Email content:

      Notifications in this message: 1
      ================================
      
      14:33:23 DynDNS updated IP Address on WAN (igb0) to xxx.xxx.xxx.xxx
      

      Even when I disable SMTP notifications, Pfsense still sends this email.

      What can I do to stop Pfsense from sending emails at all or not to send me an email about DDNS every 10 seconds?

      S GertjanG 2 Replies Last reply Reply Quote 0
      • S
        SteveITS Galactic Empire @osalj
        last edited by

        @osalj Normally it's once a month unless the IP changes. Is your WAN going down maybe? Though, 10 seconds seems awfully specific.

        Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
        When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
        Upvote 👍 helpful posts!

        1 Reply Last reply Reply Quote 0
        • GertjanG
          Gertjan @osalj
          last edited by

          @osalj said in notifications via SMTP - every 10 seconds:

          What can I do to stop Pfsense from sending emails at all or not to send me an email about DDNS every 10 seconds?

          When a message is send, it's paced in file, the message queue, and a "smtp mail send" process is created that reads the file, sends the message, and passes on to the next one if there are still messages to send. If non, the queue is deleted, the process stops.
          I guess this is your issue : the message file (on disk) isn't emptied, the "smtp mail send" keep on sending the message.

          [22.05-RELEASE][admin@pfSense.local.net]/var/db: ls -al noti*.*
          -rw-r--r--  1 root  wheel  131 Jan  7 01:01 notices_lastmsg.txt
          -rw-r--r--  1 root  wheel   41 Jan  7 01:02 notifyqueue.messages
          

          Do you have these two files ?
          What is their date time stamp ?
          Content ?

          And empty queue file (notifyqueue.messages) should contain :

          a:1:{s:5:"mails";a:1:{s:4:"item";a:0:{}}}
          

          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
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.