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

    ARPWatch typo in subject of email notifications

    Scheduled Pinned Locked Moved General pfSense Questions
    8 Posts 4 Posters 771 Views 4 Watching
    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.
    • B Offline
      bfloeagle
      last edited by

      Is anyone else getting APRWatch notifications that are missing a dot between their pfSense hostname and domain name?? After an upgrade (unfortunately, I don't recall which one, maybe two or three versions ago), I started getting emails from vaultXXXXXX.com instead of vault.XXXXXX.com...

      Supporting Data:

      • Obviously XXXXXX is not my domain name.
      • I'm currently running CE 2.8.0.
      • If it's worth anything, this does NOT happen for other notifications like UPS status messages, shutdown and bootup email notifications... Only with ARPWatch emails...

      Here is an example of the email I receive:

      Subject: vaultXXXXXX.com - Arpwatch Notification : new station
      September 4, 2025 at 10:57 PM
      To: XXXX
      Body:
      hostname: <unknown>
      ip address: 192.168.70.107
      ethernet address: ce:33:2f:ae:b0:75
      ethernet vendor: <unknown>
      timestamp: Thursday, September 4, 2025 22:57:17 -0400

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sirbitsalot @bfloeagle
        last edited by

        @bfloeagle Yes! I just checked and my notifications are missing the first dot too.

        1 Reply Last reply Reply Quote 0
        • P Online
          Popolou
          last edited by

          Must be a 2.8.0 thing, not seeing this with 2.7.2.

          1 Reply Last reply Reply Quote 0
          • stephenw10S Online
            stephenw10 Netgate Administrator
            last edited by

            Hmm, odd. Do you also see that logged locally?

            1 Reply Last reply Reply Quote 0
            • stephenw10S Online
              stephenw10 Netgate Administrator
              last edited by

              Oh I see only in the first part of the subject line:

              fw1stevew.lan - Arpwatch Notification : new station (fw1.stevew.lan)
              
              1 Reply Last reply Reply Quote 0
              • stephenw10S Online
                stephenw10 Netgate Administrator
                last edited by stephenw10

                I see the problem. I think it's always been like that, nothing has changed there. For a while at least.

                Patch incoming....

                B 1 Reply Last reply Reply Quote 0
                • B Offline
                  bfloeagle @stephenw10
                  last edited by

                  @stephenw10 Thank you!

                  1 Reply Last reply Reply Quote 0
                  • stephenw10S Online
                    stephenw10 Netgate Administrator
                    last edited by stephenw10

                    It's a one line patch so should be safe enough to add manually if anyone wants to try it:

                    diff --git a/net-mgmt/pfSense-pkg-arpwatch/files/usr/local/pkg/arpwatch.inc b/net-mgmt/pfSense-pkg-arpwatch/files/usr/local/pkg/arpwatch.inc
                    index 247cc3c4e1f4baf6325c22ab778d64c3bdf8afc2..e4c2f2b9e72d96a573c7ebb3ce52c01c278265ab 100644
                    --- a/net-mgmt/pfSense-pkg-arpwatch/files/usr/local/pkg/arpwatch.inc
                    +++ b/net-mgmt/pfSense-pkg-arpwatch/files/usr/local/pkg/arpwatch.inc
                    @@ -239,7 +239,7 @@ if ((false !== $message) && ((false === strpos($message, ': Cron ')) ||
                     	$message = preg_replace('/^To: .*$/m', '', $message);
                     	$message = preg_replace('/^Subject: .*$/m', '', $message);
                     	$message = preg_replace("/^(\n){4}/", '', $message);
                    -	$send_subject = config_get_path('system/hostname') . config_get_path('system/domain') . " - Arpwatch Notification : {$subject[1]}";
                    +	$send_subject = config_get_path('system/hostname') . "." . config_get_path('system/domain') . " - Arpwatch Notification : {$subject[1]}";
                     
                     	send_smtp_message($message, $send_subject);
                     	if (function_exists('notify_via_telegram')) {
                    

                    https://redmine.pfsense.org/issues/16410

                    1 Reply Last reply Reply Quote 1
                    • First post
                      Last post
                    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.