I have a strange error that I cannot figure out myself. I want unattended upgrades to send a status e-mail to a certain address. But somehow it always changes the "to" field in that email to something else. No matter what I configure.
/etc/apt/apt.conf.d/50unattended-upgrades:
Unattended-Upgrade::Allowed-Origins {
"${distro_id}:${distro_codename}-security";
};
Unattended-Upgrade::Package-Blacklist {
};
Unattended-Upgrade::AutoFixInterruptedDpkg "true";
Unattended-Upgrade::Mail "myname@mydomain.com";
Unattended-Upgrade::MailReport "always";
When I check the postfix mail log (setup as a smart relay) it shows the following output.
/var/log/mail.log:
Jul 4 12:49:06 T3CPSRPI01 postfix/local[32055]: 360533F9BA: to=<root@hostname.mydomain.com>, orig_to=<root>, relay=local, delay=0.09, delays=0.05/0/0/0.04, dsn=2.0.0, status=sent (delivered to command: procmail -a "$EXTENSION")
I have no idea why it tries to send a status email to root@hostname.mydomain.com instead of myname@mydomain.com. I use the same configuration (postfix, unattended-upgrades) on all my debian machines and it works flawlessly. Only on this raspberry pi it doesnt work.
The sendmail command works without problems:
echo "Subject: sendmail test" | sendmail -v myname@mydomain.com
Do you have any ideas?