> On Feb 4, 2026, at 8:43 AM, Dr Rainer Woitok <[email protected]> wrote:
> 
> Greetings,

Hi!

> 
> 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.   


This page[0] briefly describes how to setup email logging for sudo. ‘man 5 
sudoers’ is more comprehensive, but also more difficult to parse the relevant 
information from.


> 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.


As I understand it, despite the name, the sendmail USE flag just ensures that 
virtual/mta is satisfied. So if you have Sendmail, Postfix, Exim or any other 
MTA configured and running it will use it for mail transport if ’sendmail’ USE 
flag is set. If sendmail USE flag is NOT set, then sudo will not be built with 
the ability to do email logging.

> 
> Any pointers and clarifications welcome :-)
> 
> Sincerely,
>  Rainer
> 


Regards,
D


[0] https://www.cyberciti.biz/faq/sudo-send-e-mail-sudo-log-file/


Reply via email to