[sudo-users] Bug#469526: Sudo: Support 'mailfrom' variable in /etc/sudoers.
justinpryzby at users.sourceforge.net
Wed Mar 5 14:04:55 EST 2008
The following feature request was received from a Debian user.
> The sudo() configuration file /etc/sudoers should accept a "mailfrom"
> variable to specify the "From:" header for warning and error mail
> generated by sudo(). Sudo already supports the "mailto" and "mailsub"
> 1) This would provide a system administrator the ability to specify the
> "From:" header in sudo() alert email using an address that does not
> reveal names of any machines on an internal LAN that are generating the
> 2) I found that sudo() placed the header "From: dduck" in email alerts
> when user dduck failed to provide a proper password for sudo(). Some
> SMTP servers may reject the email message with a 550 Error for not having
> a valid "From:" address, e.g. dduck at evilcorp.com. To fight spam, more
> SMTP servers are checking that the "From:" header at least includes a
> valid domain in the address. This would be also probably be more
> consistent with RFC2822.
> I am using Debian GNU/Linux 4.1.1-21, kernel linux-image-2.6.18-5-686,
> and libc6 version 2.3.6.ds1-13etch2.
More information about the sudo-users