[SOLVED] Cron keep flooding mail

Alfagek

New Member
Aug 8, 2021
2
0
1
42
I did used a contab to get the cpu temp.
But when i did used it, i did get flooded with mails from the "postfix" that the crontab was running.
I did try to use the next things in crontab to stop the flooding, but nothing did work:
Code:
* * * * * /root/cpu_temp.sh > /dev/null 2>&1
Code:
MAILTO= ""
used at the beginning of the crontab, put it behind the line, put it as last line in crontab.

So i changed to a systemctl timer.

So i removed the crontab with crontab -r
But still i get flooded by the postfix with mails:
(
Code:
Cron <root@proxmox> /root/cpu_temp.sh > /dev/null

I prefer the contab option, because it works also when my system reboots.

Now i have killed the postfix, so i don't get flooded with mails. But how can i adjust it, so i can use the postfix again without getting flooded with crontab mails.

thanks in advanced.

edit: working version PVE 7.0

This is in my journal, get this every second! (when postfix is enabled)
Code:
Aug 08 12:16:23 proxmox postfix/smtp[1201]: F24373C0ECD: to=<MYMAIL@hotmail.com>, relay=hotmail-com.olc.protection.outlook.com[104.47.4.33]:25, conn_use=71, delay=0.2, delays=0/0/0.02/0.17, dsn=2.6.0, status=sent (250 2.6.0 <20210808100434.2A9973C1678@proxmox.local> [InternalId=127990025426440, Hostname=AM5EUR02HT102.eop-EUR02.prod.protection.outlook.com] 7754 bytes in 0.139, 54.281 KB/sec Queued mail for delivery -> 250 2.1.5)
Aug 08 12:16:23 proxmox postfix/qmgr[964]: F24373C0ECD: removed
Aug 08 12:16:23 proxmox pvemailforward[2686]: forward mail to <MYMAIL@hotmail.com>
Aug 08 12:16:23 proxmox pvemailforward[2685]: forward mail to <MYMAIL@hotmail.com>
Aug 08 12:16:23 proxmox postfix/pickup[2478]: 3888E3C0ECD: uid=65534 from=<root>
Aug 08 12:16:23 proxmox postfix/cleanup[2485]: 3888E3C0ECD: message-id=<20210808100435.82DA23C1F5A@proxmox.local>
Aug 08 12:16:23 proxmox postfix/qmgr[964]: 3888E3C0ECD: from=<root@proxmox.local>, size=1031, nrcpt=1 (queue active)
Aug 08 12:16:23 proxmox postfix/pickup[2478]: 38F873C0EB2: uid=65534 from=<root>
Aug 08 12:16:23 proxmox postfix/cleanup[2486]: 38F873C0EB2: message-id=<20210808100431.9BD353C119F@proxmox.local>
Aug 08 12:16:23 proxmox postfix/qmgr[964]: 38F873C0EB2: from=<root@proxmox.local>, size=1031, nrcpt=1 (queue active)
Aug 08 12:16:23 proxmox postfix/local[2161]: 82DA23C1F5A: to=<root@proxmox.local>, orig_to=<root>, relay=local, delay=55462, delays=55407/54/0/0.24, dsn=2.0.0, status=sent (delivered to command: /usr/bin/pvemailforward)
Aug 08 12:16:23 proxmox postfix/qmgr[964]: 82DA23C1F5A: removed
Aug 08 12:16:23 proxmox postfix/local[2109]: 9BD353C119F: to=<root@proxmox.local>, orig_to=<root>, relay=local, delay=12741, delays=12687/54/0/0.24, dsn=2.0.0, status=sent (delivered to command: /usr/bin/pvemailforward)
Aug 08 12:16:23 proxmox postfix/qmgr[964]: 9BD353C119F: removed
Aug 08 12:16:23 proxmox postfix/smtp[971]: F2BFD3C0E88: to=<MYMAIL@hotmail.com>, relay=hotmail-com.olc.protection.outlook.com[104.47.4.33]:25, conn_use=68, delay=0.28, delays=0.01/0/0.02/0.25, dsn=2.6.0, status=sent (250 2.6.0 <20210808100435.268D53C195C@proxmox.local> [InternalId=18107582125413, Hostname=AM5EUR02HT119.eop-EUR02.prod.protection.outlook.com] 7766 bytes in 0.211, 35.863 KB/sec Queued mail for delivery -> 250 2.1.5)
Aug 08 12:16:23 proxmox postfix/qmgr[964]: F2BFD3C0E88: removed
Aug 08 12:16:23 proxmox postfix/smtp[1233]: 38F873C0EB2: to=<MYMAIL@hotmail.com>, relay=hotmail-com.olc.protection.outlook.com[104.47.4.33]:25, conn_use=72, delay=0.13, delays=0.01/0/0.02/0.1, dsn=2.6.0, status=sent (250 2.6.0 <20210808100431.9BD353C119F@proxmox.local> [InternalId=93282394707238, Hostname=AM5EUR02HT128.eop-EUR02.prod.protection.outlook.com] 7754 bytes in 0.065, 116.380 KB/sec Queued mail for delivery -> 250 2.1.5)
Aug 08 12:16:23 proxmox postfix/qmgr[964]: 38F873C0EB2: removed
Aug 08 12:16:23 proxmox pvemailforward[2692]: forward mail to <MYMAIL@hotmail.com>
Aug 08 12:16:23 proxmox pvemailforward[2691]: forward mail to <MYMAIL@hotmail.com>
Aug 08 12:16:23 proxmox postfix/pickup[2478]: 734C03C0E88: uid=65534 from=<root>
Aug 08 12:16:23 proxmox postfix/cleanup[2485]: 734C03C0E88: message-id=<20210808100434.3A3093C1C94@proxmox.local>
Aug 08 12:16:23 proxmox postfix/qmgr[964]: 734C03C0E88: from=<root@proxmox.local>, size=1043, nrcpt=1 (queue active)
Aug 08 12:16:23 proxmox postfix/pickup[2478]: 741FD3C0DF6: uid=65534 from=<root>
Aug 08 12:16:23 proxmox postfix/cleanup[2486]: 741FD3C0DF6: message-id=<20210808100434.C6E3E3C1EE0@proxmox.local>
Aug 08 12:16:23 proxmox postfix/local[2109]: 3A3093C1C94: to=<root@proxmox.local>, orig_to=<root>, relay=local, delay=52672, delays=52618/54/0/0.24, dsn=2.0.0, status=sent (delivered to command: /usr/bin/pvemailforward)
Aug 08 12:16:23 proxmox postfix/qmgr[964]: 3A3093C1C94: removed
Aug 08 12:16:23 proxmox postfix/qmgr[964]: 741FD3C0DF6: from=<root@proxmox.local>, size=1043, nrcpt=1 (queue active)
Aug 08 12:16:23 proxmox postfix/local[2105]: C6E3E3C1EE0: to=<root@proxmox.local>, orig_to=<root>, relay=local, delay=34372, delays=34318/54/0/0.24, dsn=2.0.0, status=sent (delivered to command: /usr/bin/pvemailforward)
Aug 08 12:16:23 proxmox postfix/qmgr[964]: C6E3E3C1EE0: removed
Aug 08 12:16:23 proxmox postfix/smtp[972]: 3888E3C0ECD: to=<MYMAIL@hotmail.com>, relay=hotmail-com.olc.protection.outlook.com[104.47.4.33]:25, conn_use=26, delay=0.47, delays=0/0/0.02/0.44, dsn=2.6.0, status=sent (250 2.6.0 <20210808100435.82DA23C1F5A@proxmox.local> [InternalId=92642444580296, Hostname=AM5EUR02HT228.eop-EUR02.prod.protection.outlook.com] 7754 bytes in 0.406, 18.629 KB/sec Queued mail for delivery -> 250 2.1.5)
Aug 08 12:16:23 proxmox postfix/qmgr[964]: 3888E3C0ECD: removed
Aug 08 12:16:23 proxmox postfix/smtp[1212]: 734C03C0E88: to=<MYMAIL@hotmail.com>, relay=hotmail-com.olc.protection.outlook.com[104.47.4.33]:25, conn_use=69, delay=0.23, delays=0/0/0.02/0.2, dsn=2.6.0, status=sent (250 2.6.0 <20210808100434.3A3093C1C94@proxmox.local> [InternalId=127590593467855, Hostname=AM5EUR02HT136.eop-EUR02.prod.protection.outlook.com] 7766 bytes in 0.168, 44.982 KB/sec Queued mail for delivery -> 250 2.1.5)
Aug 08 12:16:23 proxmox postfix/qmgr[964]: 734C03C0E88: removed
Aug 08 12:16:23 proxmox pvemailforward[2703]: forward mail to <MYMAIL@hotmail.com>
Aug 08 12:16:23 proxmox pvemailforward[2704]: forward mail to <MYMAIL@hotmail.com>
Aug 08 12:16:23 proxmox postfix/pickup[2478]: AEFEE3C0EB2: uid=65534 from=<root>
Aug 08 12:16:23 proxmox postfix/cleanup[2485]: AEFEE3C0EB2: message-id=<20210808100433.CA7F73C1267@proxmox.local>
Aug 08 12:16:23 proxmox postfix/smtp[1222]: 741FD3C0DF6: to=<MYMAIL@hotmail.com>, relay=hotmail-com.olc.protection.outlook.com[104.47.4.33]:25, conn_use=73, delay=0.24, delays=0.01/0/0.02/0.21, dsn=2.6.0, status=sent (250 2.6.0 <20210808100434.C6E3E3C1EE0@proxmox.local> [InternalId=93282394707241, Hostname=AM5EUR02HT128.eop-EUR02.prod.protection.outlook.com] 7766 bytes in 0.177, 42.622 KB/sec Queued mail for delivery -> 250 2.1.5)
Aug 08 12:16:23 proxmox postfix/qmgr[964]: 741FD3C0DF6: removed
Aug 08 12:16:23 proxmox postfix/qmgr[964]: AEFEE3C0EB2: from=<root@proxmox.local>, size=1043, nrcpt=1 (queue active)
Aug 08 12:16:23 proxmox postfix/pickup[2478]: AFEA83C0DF6: uid=65534 from=<root>
Aug 08 12:16:23 proxmox postfix/cleanup[2486]: AFEA83C0DF6: message-id=<20210808100435.BBA5B3C1B40@proxmox.local>
Aug 08 12:16:23 proxmox postfix/qmgr[964]: AFEA83C0DF6: from=<root@proxmox.local>, size=1031, nrcpt=1 (queue active)
Aug 08 12:16:23 proxmox postfix/local[2380]: CA7F73C1267: to=<root@proxmox.local>, orig_to=<root>, relay=local, delay=27472, delays=27417/54/0/0.24, dsn=2.0.0, status=sent (delivered to command: /usr/bin/pvemailforward)
Aug 08 12:16:23 proxmox postfix/qmgr[964]: CA7F73C1267: removed
Aug 08 12:16:23 proxmox postfix/local[2161]: BBA5B3C1B40: to=<root@proxmox.local>, orig_to=<root>, relay=local, delay=16702, delays=16647/54/0/0.24, dsn=2.0.0, status=sent (delivered to command: /usr/bin/pvemailforward)
Aug 08 12:16:23 proxmox postfix/qmgr[964]: BBA5B3C1B40: removed
Aug 08 12:16:23 proxmox pvemailforward[2721]: forward mail to <MYMAIL@hotmail.com>
Aug 08 12:16:23 proxmox pvemailforward[2722]: forward mail to <MYMAIL@hotmail.com>
Aug 08 12:16:23 proxmox postfix/pickup[2478]: E827A3C0F11: uid=65534 from=<root>
Aug 08 12:16:23 proxmox postfix/cleanup[2485]: E827A3C0F11: message-id=<20210808100433.4564C3C1973@proxmox.local>
Aug 08 12:16:23 proxmox postfix/qmgr[964]: E827A3C0F11: from=<root@proxmox.local>, size=1043, nrcpt=1 (queue active)
Aug 08 12:16:23 proxmox postfix/pickup[2478]: E8A1C3C0ECD: uid=65534 from=<root>
Aug 08 12:16:23 proxmox postfix/cleanup[2486]: E8A1C3C0ECD: message-id=<20210808100432.23BED3C1AEC@proxmox.local>
Aug 08 12:16:23 proxmox postfix/qmgr[964]: E8A1C3C0ECD: from=<root@proxmox.local>, size=1031, nrcpt=1 (queue active)
Aug 08 12:16:23 proxmox postfix/local[2109]: 23BED3C1AEC: to=<root@proxmox.local>, orig_to=<root>, relay=local, delay=81622, delays=81567/55/0/0.23, dsn=2.0.0, status=sent (delivered to command: /usr/bin/pvemailforward)
Aug 08 12:16:23 proxmox postfix/local[2105]: 4564C3C1973: to=<root@proxmox.local>, orig_to=<root>, relay=local, delay=24052, delays=23997/55/0/0.23, dsn=2.0.0, status=sent (delivered to command: /usr/bin/pvemailforward)
Aug 08 12:16:23 proxmox postfix/qmgr[964]: 23BED3C1AEC: removed
Aug 08 12:16:23 proxmox postfix/qmgr[964]: 4564C3C1973: removed
Aug 08 12:16:23 proxmox postfix/smtp[1211]: AEFEE3C0EB2: to=<MYMAIL@hotmail.com>, relay=hotmail-com.olc.protection.outlook.com[104.47.17.97]:25, delay=0.25, delays=0.01/0/0.08/0.16, dsn=2.6.0, status=sent (250 2.6.0 <20210808100433.CA7F73C1267@proxmox.local> [InternalId=68921340213108, Hostname=DB8EUR05HT209.eop-eur05.prod.protection.outlook.com] 7789 bytes in 0.089, 84.567 KB/sec Queued mail for delivery -> 250 2.1.5)
Aug 08 12:16:23 proxmox postfix/qmgr[964]: AEFEE3C0EB2: removed

Output in SSH for crontab:
Code:
root@proxmox:~# crontab -l
no crontab for root
 
Last edited:
false forum. search the internet for help
Why false forum. It’s proxmox related.

But problem is all ready fix.

don’t know for sure what it was. But did make a new crontab and it did work. Only 3 mails, for starting the first time crontab.
 

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!