[SOLVED] Is there a way to suspend emails temporarly in the mail queue

velocity08

Active Member
May 25, 2019
246
16
38
48
Hi All

We would like PMG to suspend email delivery temporary to back end servers while maintenance is carried out.

Is there a way to pause the mail queue from delivering emails in/out during a back end mail server maintenance window?

if PMG can hold the emails for a given amount of time then deliver once the server is restored.

if not what other options are there?

""Cheers
G
 
depending on how long the downstream/back end servers are down and if you need to stop delivery to them before shutting them down it can be as simple as doing nothing.

SMTP servers usually do defer delivery if a destination server is not configurable and they queue the mail and try delivery after a certain time has passed. PMG would do the same (and has a default maximal_queue_lifetime of 5 days).

if you need to stop delivery before the server is shut down or becomes unrechable I would probably simply insert a firewall rule (on PMG, or some firewall inbetween, or the destination server) preventing PMG from reaching the server.

once the server is back up PMG would eventually send the mails in one of it's queue runs. You should be able to trigger one by running `postqueue -f` on the command line

I hope this helps!
 
  • Like
Reactions: velocity08

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!