Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Arpwatch not sending emails
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Perdignus
n00b
n00b


Joined: 29 Mar 2013
Posts: 42

PostPosted: Sat Sep 26, 2020 11:18 pm    Post subject: Arpwatch not sending emails Reply with quote

Hi,

I've discovered that arpwatch is no longer alerting me of new MAC addresses via email.

I see this in the logs:

Code:
Sep 26 17:22:32 myhost arpwatch: reaper: pid 14772, exit status 1
Sep 26 17:22:39 myhost arpwatch: new station 192.168.1.64 xx:xx:xx:xx:xx:xx
Sep 26 17:22:39 myhost arpwatch: new station 192.168.1.64 xx:xx:xx:xx:xx:xx
Sep 26 17:22:39 myhost arpwatch: execl: sendmail: No such file or directory
Sep 26 17:22:39 myhost arpwatch: reaper: pid 14776, exit status 1
Sep 26 17:22:39 myhost arpwatch: execl: sendmail: No such file or directory
Sep 26 17:22:39 myhost arpwatch: reaper: pid 14776, exit status 1



I do have sendmail on my system and email is otherwise working fine on this host:

Code:
# which sendmail
/usr/sbin/sendmail


Code:
# ls -asclht /usr/sbin/sendmail
32K -rwxr-xr-x 1 root root 31K 2020-09-13 12:29 /usr/sbin/sendmail



Running arpwatch as root or the arpwatch user has no effect on the problem. I was not receiving emails using version 2.1.15-r11 so I upgraded to 3.1. I didn't notice the line "execl: sendmail: No such file or directory" when I was on version 2.1.15-r11 but I suspect it was the same issue and I just hadn't noticed it in the logs.

Thanks for any assistance or insight.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23097

PostPosted: Sun Sep 27, 2020 4:26 am    Post subject: Reply with quote

Is arpwatch running in a chroot, or otherwise using a different view of the filesystem than your shell?

You said e-mail is otherwise working fine. Did you specifically check that sendmail can be started successfully?
Back to top
View user's profile Send private message
Perdignus
n00b
n00b


Joined: 29 Mar 2013
Posts: 42

PostPosted: Sun Sep 27, 2020 4:04 pm    Post subject: Reply with quote

Arpwatch isn't running in a chroot environment.

I was able to send and receive a test successful email using sendmail with this command:

Code:
echo "Subject: sendmail test" | sendmail -v myusername
Back to top
View user's profile Send private message
Perdignus
n00b
n00b


Joined: 29 Mar 2013
Posts: 42

PostPosted: Wed Sep 30, 2020 12:50 am    Post subject: Reply with quote

I've also noticed this in the logs when I startup arpwatch:

Code:
chdir(/usr/arpwatch): No such file or directory


I'm guessing it's trying to run in a chroot environment but there are no use flags for the package or directions to create the /usr/arpwatch. I did create it and ran arpwatch again but it still complains that it can't find sendmail with this:

Code:
arpwatch: execl: sendmail: No such file or directory


I downloaded version 2.1a15 from ee.lbl.gov, compiled it and ran it from the source directory and it worked fine, immediately started sending emails about discovered MAC addresses. I'm guessing something is wrong the Gentoo ebuild but I'll purge and reinstall it to be sure before submitting a bug report.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum