ARPWatch typo in subject of email notifications
-
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 -
@bfloeagle Yes! I just checked and my notifications are missing the first dot too.
-
Must be a 2.8.0 thing, not seeing this with 2.7.2.
-
Hmm, odd. Do you also see that logged locally?
-
Oh I see only in the first part of the subject line:
fw1stevew.lan - Arpwatch Notification : new station (fw1.stevew.lan)
-
I see the problem. I think it's always been like that, nothing has changed there. For a while at least.
Patch incoming....
-
@stephenw10 Thank you!
-
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