Skip to content

Conversation

leres
Copy link
Contributor

@leres leres commented Feb 5, 2025

I saw arpwatch notices where the hostname was missing a dot:

[hostname=pear, domain=example.com]
Subject: pearexample.com - Arpwatch Notification : changed ethernet address

The bug is in sendmail_proxy.php was surprisingly resistant to local patching. Today I tracked down that it's created at run time by pfSense-pkg-arpwatch. I tracked it to 99368e3:

- $send_subject = "{$config['system']['hostname']}.{$config['system']['domain']} - Arpwatch Notification : {$subject[1]}";
+ $send_subject = config_get_path('system/hostname') . config_get_path('system/domain') . " - Arpwatch Notification : {$subject[1]}";

This fix for this regression is to add a string with the dot.

…omain

I saw arpwatch notices here the hostname was missing a dot:

    [hostname=pear, domain=example.com]
    Subject: pearexample.com - Arpwatch Notification : changed ethernet address

The bug is in sendmail_proxy.php is was surprisingly resistent
to local patching. Today I tracked down that it's created at run
time by pfSense-pkg-arpwatch. I tracked it to 99368e3:

 -       $send_subject = "{$config['system']['hostname']}.{$config['system']['domain']} - Arpwatch Notification : {$subject[1]}";
 +       $send_subject = config_get_path('system/hostname') . config_get_path('system/domain') . " - Arpwatch Notification : {$subject[1]}";

This fix for this regression is to add a string with the dot.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant