Outgoing Deferred Mail

cehau37

Member
Apr 6, 2021
1
0
6
43
Hi,

At the moment we have quite a few amount of outgoing emails in the deferred queue due to connection timeout with the receiving mail server.

Is there a way to set a limit, lets say 24hours, for those deferred outgoing emails to stay in the queue before being purged?

Please advise.

Best Regards,

H
 
The default for deferred mails being purged is 5 days.
This is controlled by the postfix setting for 'maximal_queue_lifetime' - see `man 5 postconf`

If you want to reduce this - keep in mind that this limit is also used for downstream delivery - so if your downstream server is offline for more than 24h you will lose mail

I would suggest to keep the setting at its default - if you want to remove some particular mails you can do so with `postsuper` (see its manpage)

if you really want to adapt the postfix config setting you need to use the templateing system:
https://pmg.proxmox.com/pmg-docs/pmg-admin-guide.html#pmgconfig_template_engine
 
The default for deferred mails being purged is 5 days.
This is controlled by the postfix setting for 'maximal_queue_lifetime' - see `man 5 postconf`

If you want to reduce this - keep in mind that this limit is also used for downstream delivery - so if your downstream server is offline for more than 24h you will lose mail

I would suggest to keep the setting at its default - if you want to remove some particular mails you can do so with `postsuper` (see its manpage)

if you really want to adapt the postfix config setting you need to use the templateing system:
https://pmg.proxmox.com/pmg-docs/pmg-admin-guide.html#pmgconfig_template_engine
Hi Stoiko,

I ran "pmgconfig dump" to find the setting to put in the template file, but could not find anything related to "maximal_queue_lifetime" like you mentioned. Can you perhaps advise?

Cheers,
Curt
 
I ran "pmgconfig dump" to find the setting to put in the template file, but could not find anything related to "maximal_queue_lifetime" like you mentioned.
`pmgconfig dump` just prints the variables that PMG uses in various places of the templates:

https://pmg.proxmox.com/pmg-docs/pmg-admin-guide.html#pmgconfig_template_engine

* since PMG does not expose queue_lifetime (and most other postfix options) in the API or GUI there is no variable for this.
* you still can (and need to for this) adapt the main.cf.in template - you just hardcode the desired value (e.g. 10d for 10 days instead of 5)...

I hope this explains it!
 
`pmgconfig dump` just prints the variables that PMG uses in various places of the templates:

https://pmg.proxmox.com/pmg-docs/pmg-admin-guide.html#pmgconfig_template_engine

* since PMG does not expose queue_lifetime (and most other postfix options) in the API or GUI there is no variable for this.
* you still can (and need to for this) adapt the main.cf.in template - you just hardcode the desired value (e.g. 10d for 10 days instead of 5)...

I hope this explains it!
Hi Stoiko,

Ah I see what you're saying. Thank you so much for this, I really appreciate it!

Cheers,
Curt
 
  • Like
Reactions: Stoiko Ivanov

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!