[SOLVED] How do I shutdown all the 'no route to host' and 'network is unreachable' Syslog messages?

thusband

Member
Jun 30, 2022
146
6
23
I was having trouble setting up notification emails for backups. Something about port 25. It has been sorted out and emails can now get through via the Notifications feature in Proxmox. However Proxmox continues to try to send emails from my, I assume, previous gmail-smtp attempts. I'd like to stop that and eliminate all the error messages that come through every 10 minutes or so. I can't figure out how to turn it off. Is there a setting I need to change or command that will shut it down?

Code:
Jan 04 19:36:14 pve postfix/smtp[696857]: connect to gmail-smtp-in.l.google.com[66.102.1.27]:25: No route to host
Jan 04 19:36:14 pve postfix/smtp[696857]: connect to gmail-smtp-in.l.google.com[2a00:1450:400c:c0c::1b]:25: Network is unreachable
Jan 04 19:36:14 pve postfix/smtp[696857]: connect to alt1.gmail-smtp-in.l.google.com[2a00:1450:4013:c16::1a]:25: Network is unreachable
Jan 04 19:36:14 pve postfix/smtp[696857]: connect to alt1.gmail-smtp-in.l.google.com[142.250.153.27]:25: No route to host
Jan 04 19:36:14 pve postfix/smtp[696857]: connect to alt2.gmail-smtp-in.l.google.com[142.251.9.27]:25: No route to host
Jan 04 19:36:14 pve postfix/smtp[696857]: 86B9D4C0C7E: to=<my.email@gmail.com>, relay=none, delay=197666, delays=197661/0.01/5.1/0, dsn=4.4.1, status=deferred (connect to alt2.gmail-smtp-in.l.google.com[142.251.9.27]:25: No route to host)
Jan 04 19:40:30 pve pvedaemon[562536]: <root@pam> successful auth for user 'root@pam'
Jan 04 19:51:09 pve postfix/qmgr[993]: 532044C0C47: from=<root@pve.home>, size=882, nrcpt=1 (queue active)
Jan 04 19:51:09 pve postfix/smtp[700239]: connect to gmail-smtp-in.l.google.com[2a00:1450:400c:c0c::1b]:25: Network is unreachable
Jan 04 19:51:09 pve postfix/smtp[700239]: connect to gmail-smtp-in.l.google.com[66.102.1.27]:25: No route to host
Jan 04 19:51:09 pve postfix/smtp[700239]: connect to alt1.gmail-smtp-in.l.google.com[2a00:1450:4013:c16::1a]:25: Network is unreachable
Jan 04 19:51:09 pve postfix/smtp[700239]: connect to alt1.gmail-smtp-in.l.google.com[142.250.153.27]:25: No route to host
Jan 04 19:51:09 pve postfix/smtp[700239]: connect to alt2.gmail-smtp-in.l.google.com[2a00:1450:4025:c03::1a]:25: Network is unreachable
Jan 04 19:51:09 pve postfix/smtp[700239]: 532044C0C47: to=<my.email@gmail.com>, relay=none, delay=139029, delays=139029/0.01/0.04/0, dsn=4.4.1, status=deferred (connect to alt2.gmail-smtp-in.l.google.com[2a00:1450:4025:c03::1a
 
Hi,

postfix defers messages which failed to send and tries them again later, as you can see.

Code:
find /var/spool/postfix/{defer,deferred}/ -type f
will display a list of all these messages and their metadata.
To check them, use cat /var/spool/postfix/defer/<file> to display the metadata/error, cat /var/spool/postfix/deferred/<file> for the actual message.

To delete them, you can use
Code:
find /var/spool/postfix/{defer,deferred}/ -type f -delete
which will clear them all.

-delete must be at the end, due to the evaluation order of find.
 
Great to hear that this solved the problem!

Please just mark the thread as SOLVED by editing the first post, so that others with the same problem can find it more easily in the future! :)
 

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!