how long does EFA keep the mail when the mail server is down.

Questions and answers about how to do stuff
Post Reply
fodil1
Posts: 5
Joined: 02 Dec 2015 21:50

how long does EFA keep the mail when the mail server is down.

Post by fodil1 »

Hi,

My EFA server is connected with a MS Exchange 2013 server between a ipsec tunnel.The EFA server is an edge server.

Sometime,My internet connection goes down(Exchange side only) and i would like to know if the EFA server keeps all the mails and it will send them after the connection is restored?

Thank you,
User avatar
pdwalker
Posts: 1553
Joined: 18 Mar 2015 09:16

Re: how long does EFA keep the mail when the mail server is down.

Post by pdwalker »

That behaviour is controlled entirely by postfix. See http://www.postfix.org/postconf.5.html for a list of the configuration options.

Specifically, look for maximal_queue_lifetime and read up on that parameter.

By default, postfix will keep retrying message delivery for 5 days before giving up. Your configuration may be difference, so check your /etc/postfix/main.cf and see how it is configured for your system.
Odon Garma
Posts: 33
Joined: 08 May 2017 14:10

Re: how long does EFA keep the mail when the mail server is down.

Post by Odon Garma »

in my setup this setting in main.cf is untouched but very different from the default. it's set to 8h only, this could be rather short in some setups. U better double check this (u need to restart postfix after changing this setting)

Greetz
fodil1
Posts: 5
Joined: 02 Dec 2015 21:50

Re: how long does EFA keep the mail when the mail server is down.

Post by fodil1 »

thank you for your help!

I changed the value from 6h to 5d in my postfix config.

it should be enough.
Post Reply