[SOLVED] Proxmox send email every one minutes

Brentz

New Member
Jul 12, 2024
4
1
3
Hi all

i receive on system log the below report every minutes:

Aug 28 16:44:02 HV postfix/qmgr[3755]: 28747140F33: from=<root@HV.xxx.lcl>, size=3028, nrcpt=1 (queue active)
Aug 28 16:44:02 HV postfix/smtp[2603050]: 28747140F33: to=<root@HV.xxx.lcl>, orig_to=<root>, relay=authsmtp.securemail.pro[81.88.48.66]:465, delay=0.17, delays=0/0/0.15/0.02, dsn=5.1.0, status=bounced (host authsmtp.securemail.pro[81.88.48.66] said: 550 5.1.0 <root@hv.xxx.lcl> sender rejected (in reply to MAIL FROM command))
Aug 28 16:44:02 HV postfix/cleanup[2602507]: 59AFF140F40: message-id=<20240828144402.59AFF140F40@HV.xxx.lcl>
Aug 28 16:44:02 HV postfix/bounce[2618385]: 28747140F33: sender non-delivery notification: 59AFF140F40
Aug 28 16:44:02 HV postfix/qmgr[3755]: 59AFF140F40: from=<>, size=5195, nrcpt=1 (queue active)
Aug 28 16:44:02 HV postfix/qmgr[3755]: 28747140F33: removed

Now if I check the postfix queue it's empty and the mail service is up and running.
Is there a way to know what it's trying to send emails?

thanks in advance
 
It's right in the logs, it's trying to send a message to "root@HV.xxx.lcl" (and also from that same address) which you probably set as the email-address for the root-account during setup and might just not exist.
Go to the cluster -> users, edit the root user and change their email to an existing email that you can receive these warnings and such on.
 
It's right in the logs, it's trying to send a message to "root@HV.xxx.lcl" (and also from that same address) which you probably set as the email-address for the root-account during setup and might just not exist.
Go to the cluster -> users, edit the root user and change their email to an existing email that you can receive these warnings and such on.
Hi @sw-omit and thanks for your reply, but unfortunately it's not that simple. The user is configured correctly and the emails (e.g. backup results) are delivered correctly
 
Do you see any messages in syslog from the proxmox-mail-forward process?
 
Code:
Aug 29 04:59:01 HV CRON[3011885]: pam_unix(cron:session): session opened for user root(uid=0) by (uid=0)
Aug 29 04:59:01 HV CRON[3011883]: pam_unix(cron:session): session opened for user root(uid=0) by (uid=0)
Aug 29 04:59:01 HV CRON[3011884]: pam_unix(cron:session): session opened for user root(uid=0) by (uid=0)
Aug 29 04:59:01 HV CRON[3011886]: (root) CMD (/root/ha_post_temp.sh)
Aug 29 04:59:01 HV CRON[3011887]: (root) CMD (/home/scripts/pve_temp_stats_to_influxdb2.sh >/dev/null 2>&1)
Aug 29 04:59:01 HV CRON[3011888]: (root) CMD (/home/scripts/pve_disks_stats_to_influxdb2.sh >/dev/null 2>&1)

You have a cronjob running every minute. By default, cron sends you the commands output via email - see man cron and search for MAILTO :)

Hope this helps!
 
Code:
Aug 29 04:59:01 HV CRON[3011885]: pam_unix(cron:session): session opened for user root(uid=0) by (uid=0)
Aug 29 04:59:01 HV CRON[3011883]: pam_unix(cron:session): session opened for user root(uid=0) by (uid=0)
Aug 29 04:59:01 HV CRON[3011884]: pam_unix(cron:session): session opened for user root(uid=0) by (uid=0)
Aug 29 04:59:01 HV CRON[3011886]: (root) CMD (/root/ha_post_temp.sh)
Aug 29 04:59:01 HV CRON[3011887]: (root) CMD (/home/scripts/pve_temp_stats_to_influxdb2.sh >/dev/null 2>&1)
Aug 29 04:59:01 HV CRON[3011888]: (root) CMD (/home/scripts/pve_disks_stats_to_influxdb2.sh >/dev/null 2>&1)

You have a cronjob running every minute. By default, cron sends you the commands output via email - see man cron and search for MAILTO :)

Hope this helps!
you're my hero! ;-) thanks a lot
 
  • Like
Reactions: Lukas Wagner

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!