mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
arpwatch: Fix the evelope sender
commit c2eba600d753df95a81707f7da0ab172ed864ab0 Author: Michael Tremer <michael.tremer@ipfire.org> Date: Sat Sep 20 14:02:01 2025 +0000 arpwatch: Fix the envelope sender arpwatch invokes sendmail without passing the envelope sender explicitely. This causes that mails can get rejected if the From: header does not match the envelope sender. This patch passes the correct address as the envelope sender. Signed-off-by: Michael Tremer <michael.tremer@ipfire.org> Signed-off-by: Vincent Li <vincent.mc.li@gmail.com>
This commit is contained in:
11
src/patches/arpwatch/fix-envelope-sender.patch
Normal file
11
src/patches/arpwatch/fix-envelope-sender.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
--- arpwatch-3.8/report.c~ 2025-09-20 13:57:16.351246657 +0000
|
||||
+++ arpwatch-3.8/report.c 2025-09-20 13:43:47.777995101 +0000
|
||||
@@ -390,7 +390,7 @@
|
||||
close(fd);
|
||||
|
||||
/* Always Deliver interactively (pause when child depth gets large) */
|
||||
- execl(sendmail, "sendmail", "-odi", watcher, NULL);
|
||||
+ execl(sendmail, "sendmail", "-odi", watcher, "-f", watchee, NULL);
|
||||
lg(LOG_ERR, "execl: %s: %s", sendmail, strerror(errno));
|
||||
exit(1);
|
||||
}
|
||||
Reference in New Issue
Block a user