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

sendmail problem with crond on CentOS 8 #8

Open
zhavranek opened this issue Jan 9, 2020 · 0 comments
Open

sendmail problem with crond on CentOS 8 #8

zhavranek opened this issue Jan 9, 2020 · 0 comments

Comments

@zhavranek
Copy link

rbme invoked from crond does not send e-mail. When invoked from interactive shell it works ok.

The problem is with the changed behavior of the shell built-in type statement. With PATH=/usr/bin:/bin (when invoked from crond) it will not find /usr/sbin/sendmail on CentOS 8 (it worked on CentOS 6).

Solution: set `SENDMAIL=/usr/sbin/sendmail' in rbme.conf or patch rbme file:

diff rbme.OLD rbme
164c164
< SENDMAIL="${SENDMAIL:=$(type -p sendmail)}"
---
> SENDMAIL="${SENDMAIL:=$(type -p sendmail || echo /usr/sbin/sendmail)}"
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

1 participant