Il 04/02/26 17:43, Dr Rainer Woitok ha scritto:
Greetings,
by default package "app-admin/sudo" is built with USE flag "+sendmail",
and this USE flag is described as "Allow sudo to send emails with send-
mail". Up to now I tried in vain to find information in the Gentoo Wiki
where to configure target mail addresses and conditions triggering mails
to be sent. It's also unclear whether building "app-admin/sudo" with
USE flag "-sendmail" will cause it to just use another programme for
sending mails or won't send any mails at all.
Any pointers and clarifications welcome :-)
USE=-sendmail forces the sudo build configuration "--without-sendmail"
which, according to [1]:
"--with-sendmail=no, --without-sendmail
Do not use sendmail to mail messages to the "mailto" user.
Use only if you don't run sendmail or the equivalent."
Does that disable email for sudo? I guess so, although the above is a
bit ambiguous. Also, the second sentence above suggests that sudo only
supports sendmail or equivalent. There are some sendmail alternatives
listed in https://wiki.gentoo.org/wiki/Email.
For the sendmail configuration I cannot help, for local emails I use
nullmailer which is not easy to configure and probably completely
different from sendmail.
raf
[1] https://github.com/sudo-project/sudo/blob/main/INSTALL.md