Cronjob Email Notifications For Unattended Upgrades

Hi HestiaCP Team, and Users,

I’m just learning the hestiacp control panel, and working great so far for my test wordpress website.

However, I have one problem that I am not sure to sort out.

System Background:

  • Ubuntu 22.04 LTS
  • 2GB RAM
  • HestiaCP: v1.8.11

The Background:

  • I have configured SMTP2GO as the email smtp relay for system email for hestiacp. I have followed the quick guide from this page → Email and mail server | Hestia Control Panel . I have ran the command bash /usr/local/hestia/install/upgrade/manual/configure-server-smtp.sh and gone through the process.
  • I have tested (and worked) the smtp relay by using the command: echo "This is the body" | /usr/local/hestia/web/inc/mail-wrapper.php -s "The subject" [email protected]
  • I have enabled unattended upgrades with the following config
Unattended-Upgrade::Allowed-Origins {
	"${distro_id}:${distro_codename}";
	"${distro_id}:${distro_codename}-security";
	"${distro_id}ESMApps:${distro_codename}-apps-security";
	"${distro_id}ESM:${distro_codename}-infra-security";
	"${distro_id}:${distro_codename}-updates";
	"${distro_id}:${distro_codename}-backports";
};


Unattended-Upgrade::Package-Blacklist {
  "linux-";

};

Acquire::http::Dl-Limit "50000";
Unattended-Upgrade::DevRelease "false";
Unattended-Upgrade::AutoFixInterruptedDpkg "true";
Unattended-Upgrade::Mail "[email protected]"; #redacted
Unattended-Upgrade::MailReport "on-change";
Unattended-Upgrade::Remove-New-Unused-Dependencies "true";
Unattended-Upgrade::SyslogFacility "daemon";
Unattended-Upgrade::Allow-APT-Mark-Fallback "true";

  • I have configured cronjob as root
# added this, just to test email sending off, via cron
0 3 * * * echo "This is the body" | /usr/local/hestia/web/inc/mail-wrapper.php -s "The subject" [email protected]

My Issue:

  • Over 1-week had passed, I don’t received any email.
  • I also did a cronjob via admin panel, set to every minute just to test out, but still no email notifications. Notifications toggle button is enabled.

Can anyone please help how to debug or investigate further on the issue, so we can come up with a possible solution?