[SOLVED] Pmgmirror sync time interval

luthfiset

New Member
Feb 3, 2020
7
1
3
26
Hello everybody,

I found this log on my slave server inside cluster.

Feb 3 16:00:31 smtp2-swh postfix/postfix-script[6807]: stopping the Postfix mail system
Feb 3 16:00:32 smtp2-swh postfix/postfix-script[6967]: starting the Postfix mail system
Feb 3 16:02:31 smtp2-swh postfix/postfix-script[7126]: stopping the Postfix mail system
Feb 3 16:02:32 smtp2-swh postfix/postfix-script[7285]: starting the Postfix mail system
Feb 3 16:04:30 smtp2-swh postfix/postfix-script[7475]: stopping the Postfix mail system
Feb 3 16:04:30 smtp2-swh postfix/postfix-script[7637]: starting the Postfix mail system
Feb 3 16:06:31 smtp2-swh postfix/postfix-script[7787]: stopping the Postfix mail system
Feb 3 16:06:31 smtp2-swh postfix/postfix-script[7949]: starting the Postfix mail system
Feb 3 16:08:35 smtp2-swh postfix/postfix-script[8114]: stopping the Postfix mail system
Feb 3 16:08:35 smtp2-swh postfix/postfix-script[8277]: starting the Postfix mail system
Feb 3 16:10:35 smtp2-swh postfix/postfix-script[8517]: stopping the Postfix mail system
Feb 3 16:10:36 smtp2-swh postfix/postfix-script[8677]: starting the Postfix mail system
Feb 3 16:12:35 smtp2-swh postfix/postfix-script[8943]: stopping the Postfix mail system
Feb 3 16:12:36 smtp2-swh postfix/postfix-script[9107]: starting the Postfix mail system
Feb 3 16:14:35 smtp2-swh postfix/postfix-script[9385]: stopping the Postfix mail system
Feb 3 16:14:35 smtp2-swh postfix/postfix-script[9388]: waiting for the Postfix mail system to terminate
Feb 3 16:14:36 smtp2-swh postfix/postfix-script[9549]: starting the Postfix mail system
Feb 3 16:16:35 smtp2-swh postfix/postfix-script[9838]: stopping the Postfix mail system
Feb 3 16:16:35 smtp2-swh postfix/postfix-script[10000]: starting the Postfix mail system
Feb 3 16:18:35 smtp2-swh postfix/postfix-script[10220]: stopping the Postfix mail system
Feb 3 16:18:35 smtp2-swh postfix/postfix-script[10381]: starting the Postfix mail system
Feb 3 16:20:36 smtp2-swh postfix/postfix-script[10629]: stopping the Postfix mail system
Feb 3 16:20:36 smtp2-swh postfix/postfix-script[10789]: starting the Postfix mail system
Feb 3 16:22:36 smtp2-swh postfix/postfix-script[11000]: stopping the Postfix mail system
Feb 3 16:22:36 smtp2-swh postfix/postfix-script[11161]: starting the Postfix mail system
Feb 3 16:24:36 smtp2-swh postfix/postfix-script[11378]: stopping the Postfix mail system
Feb 3 16:24:37 smtp2-swh postfix/postfix-script[11540]: starting the Postfix mail system
Feb 3 16:26:35 smtp2-swh postfix/postfix-script[11747]: stopping the Postfix mail system
Feb 3 16:26:36 smtp2-swh postfix/postfix-script[11910]: starting the Postfix mail system
Feb 3 16:28:35 smtp2-swh postfix/postfix-script[12117]: stopping the Postfix mail system
Feb 3 16:28:35 smtp2-swh postfix/postfix-script[12276]: starting the Postfix mail system
Feb 3 16:30:36 smtp2-swh postfix/postfix-script[12470]: stopping the Postfix mail system
Feb 3 16:30:36 smtp2-swh postfix/postfix-script[12631]: starting the Postfix mail system
Feb 3 16:32:36 smtp2-swh postfix/postfix-script[12841]: stopping the Postfix mail system
Feb 3 16:32:36 smtp2-swh postfix/postfix-script[13004]: starting the Postfix mail system
Feb 3 16:34:35 smtp2-swh postfix/postfix-script[13231]: stopping the Postfix mail system
Feb 3 16:34:35 smtp2-swh postfix/postfix-script[13391]: starting the Postfix mail system
Feb 3 16:36:39 smtp2-swh postfix/postfix-script[13589]: stopping the Postfix mail system
Feb 3 16:36:40 smtp2-swh postfix/postfix-script[13751]: starting the Postfix mail system
Feb 3 16:38:38 smtp2-swh postfix/postfix-script[14006]: stopping the Postfix mail system
Feb 3 16:38:38 smtp2-swh postfix/postfix-script[14166]: starting the Postfix mail system
Feb 3 16:40:39 smtp2-swh postfix/postfix-script[14436]: stopping the Postfix mail system
Feb 3 16:40:39 smtp2-swh postfix/postfix-script[14599]: starting the Postfix mail system
Feb 3 16:42:38 smtp2-swh postfix/postfix-script[14826]: stopping the Postfix mail system
Feb 3 16:42:38 smtp2-swh postfix/postfix-script[14987]: starting the Postfix mail system

I think this is normal, because of pmgmirror service updating configuration in cluster.
But because of this interval, I always found connection refused from our cPanel server (Exim) when try to connect to this smtp.
Connection refused always happen when there is a huge traffic goes to this smtp and sometimes Exim won't retry to sent email and only give retry time not reached for any host error.

is there any way to change this interval? or maybe exclude postfix from pmgmirror and only update when there is a change in master configuration?
 

dcsapak

Proxmox Staff Member
Staff member
Feb 1, 2016
6,518
735
133
33
Vienna
we had a bug that could behave like that, what is the output of your 'pmgversion -v' ?
 

luthfiset

New Member
Feb 3, 2020
7
1
3
26
we had a bug that could behave like that, what is the output of your 'pmgversion -v' ?

Thx for your reply, here is my pmgversion.

# pmgversion -v
proxmox-mailgateway: 5.2-1 (API: 5.2-1/f3cf441a, running kernel: 4.15.18-12-pve)
pmg-api: 5.2-1
pmg-gui: 1.0-45
pve-kernel-4.15: 5.3-3
pve-kernel-4.15.18-12-pve: 4.15.18-35
libarchive-perl: 3.2.1-1
libpve-apiclient-perl: 2.0-5
libpve-common-perl: 5.0-48
libpve-http-server-perl: 2.0-12
libxdgmime-perl: 0.01-3
lvm2: 2.02.168-2
pmg-docs: 5.2-1
proxmox-spamassassin: 3.4.2-2
proxmox-widget-toolkit: 1.0-24
pve-firmware: 2.0-5
pve-xtermjs: 3.10.1-2
zfsutils-linux: 0.7.13-pve1~bpo1
 

luthfiset

New Member
Feb 3, 2020
7
1
3
26
Want to update for this threads.

After upgrade to PMG 6 there is no more restarting Postfix service every 2 minutes. Now only restarting when it detect change in configuration.

Feb 10 17:48:21 smtp4-swh pmgmirror[1470]: configuration change detected for 'postfix', restarting
Feb 10 17:48:21 smtp4-swh systemd[1]: Reloading Postfix Mail Transport Agent (instance -).
Feb 10 17:48:21 smtp4-swh postfix/postfix-script[1883]: refreshing the Postfix mail system
Feb 10 17:48:21 smtp4-swh postfix/master[953]: reload -- version 3.4.8, configuration /etc/postfix
Feb 10 17:48:21 smtp4-swh postfix/master[953]: warning: service 25: ignoring inet_interfaces change
Feb 10 17:48:21 smtp4-swh postfix/master[953]: warning: to change inet_interfaces, stop and start Postfix
Feb 10 17:48:21 smtp4-swh postfix/master[953]: warning: service 2525: ignoring inet_interfaces change
Feb 10 17:48:21 smtp4-swh systemd[1]: Reloaded Postfix Mail Transport Agent (instance -).
Feb 10 17:48:21 smtp4-swh postfix/master[953]: warning: to change inet_interfaces, stop and start Postfix
Feb 10 17:48:21 smtp4-swh postfix/master[953]: warning: service 127.0.0.1:10025: ignoring inet_interfaces change
Feb 10 17:48:21 smtp4-swh postfix/master[953]: warning: to change inet_interfaces, stop and start Postfix
Feb 10 17:48:22 smtp4-swh pmgmirror[1470]: cluster syncronization finished (0 errors, 3.74 seconds (files 0.15, database 3.41, config 0.17))

I'll mark this thread as solved.
 

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 your own in 60 seconds.

Buy now!