Is there any way to customize the unattended-upgrades results mail in ubuntu?
The current configuration in /etc/apt/apt.conf.d/50unattended-upgrades
file -
// Send email to this address for problems or packages upgrades
// If empty or unset then no email is sent, make sure that you
// have a working mail setup on your system. The package 'mailx'
// must be installed or anything that provides /usr/bin/mail.
//Unattended-Upgrade::Mail "root@localhost";
sends an email on every run. Instead, I would like to customize it to send only on error. Is there any way I can configure that?
Unattended-Upgrade::MailOnlyOnError "true";
is back in/etc/apt/apt.conf.d/50unattended-upgrades
. It's commented out by default. – azimut Oct 15 '14 at 09:06Unattended-Upgrade::Mail "root,someuser,your@email.com,others@somewhere.com";
– jimmont Oct 10 '16 at 18:17--dry-run
is specified – lily Oct 01 '19 at 03:51