Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error "[..] send-mail: /usr/sbin/sendmail not found [..]" on 2.4.5-RELEASE-p1 #27

Closed
bhenstra opened this issue Jun 4, 2021 · 5 comments

Comments

@bhenstra
Copy link

bhenstra commented Jun 4, 2021

Zeek does not start on 2.4.5-RELEASE-p1 as sendmail was not found.

Please advise how to proceed.

Jun 4 20:20:36 php-fpm 50102 /pkg_edit.php: The command '/usr/local/etc/rc.d/zeek.sh start' returned exit code '1', the output was 'Error: error occurred while trying to send mail: send-mail: /usr/sbin/sendmail not found Error: zeek terminated immediately after starting; check output with "diag" Hint: Run the zeekctl "deploy" command to get started. starting zeek ... creating crash report for previously crashed nodes: zeek'

[2.4.5-RELEASE][admin@secure.nova.inet]/: find / -name "sendmail" -print
/usr/libexec/sendmail
/usr/lib/debug/usr/libexec/sendmail
/usr/share/sendmail

[2.4.5-RELEASE][admin@secure.nova.inet]/: pkg search sendmail
geany-plugin-sendmail-1.37 Geany plugin: send a document as attachment
geany-plugin-sendmail-gtk2-1.37 Geany plugin: send a document as attachment
mini_sendmail-1.3.9 Tiny MTA with only smart relay capability
p5-Mail-Sendmail-0.80 Perl module implementing a simple, platform-independent mailer
p5-Sendmail-AccessDB-1.04 Perl5 interface to the Sendmail access.db list
p5-Sendmail-Milter-0.18_2 Module to write mail filters in Perl using sendmail's mail filter API
popa3d-before-sendmail-1.0.3 Secure, performance, tiny POP3 daemon
sendmail+tls+sasl2-8.16.1_4 Reliable, highly configurable mail transfer agent with utilities
sendmail-devel-8.16.0.50_2 Reliable, highly configurable mail transfer agent with utilities
usendmail-0.1.6_2 Replacement for qmail's sendmail drop-in

@bhenstra
Copy link
Author

bhenstra commented Jun 4, 2021

Jun 4 20:35:00 php-fpm 98285 /pkg_edit.php: [zeek] Adding cronjobs ...
Jun 4 20:34:57 php-fpm 98285 /pkg_edit.php: The command '/usr/local/etc/rc.d/zeek.sh start' returned exit code '1', the output was 'Error: error occurred while trying to send mail: send-mail: /usr/sbin/sendmail not found Error: zeek terminated immediately after starting; check output with "diag" Hint: Run the zeekctl "deploy" command to get started. starting zeek ... creating crash report for previously crashed nodes: zeek'
Jun 4 20:34:55 php-fpm 98285 /pkg_edit.php: [zeek] Starting service...

@bhenstra
Copy link
Author

bhenstra commented Jun 4, 2021

Installed zeek version:

pkg search zeek
zeek-4.0.1 System for detecting network intruders in real-time

@bhenstra
Copy link
Author

bhenstra commented Jun 4, 2021

zeek deploy complains about local.zeek

zeekctl deploy
checking configurations ...
zeek scripts failed.
fatal error: can't find local.zeek

@shadonet
Copy link
Owner

shadonet commented Jun 6, 2021

The issue is due by the Sendmail path that has been changed from /usr/sbin/sendmail to /usr/libexec/sendmail. It will be fixed in the new release soon.
You can change it manually in the zeekctl.cfg file.

shadonet added a commit that referenced this issue Jun 27, 2021
@shadonet
Copy link
Owner

It has been fixed now.

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

No branches or pull requests

2 participants