Replying to a message from: James

Hi Techs/ Devs,

Been a long time, hope your all well.

Quick one for you, I'm not too sure if it's by design or if there is an option to add to the server.properties file but I need a way to not have emails accumulate in users folders after the primary server is back up.   Let me explain further;

Primary Server = mx record highest priority

Secondary Server = mx record lowest priority

So as per the above all the emails are coming through to the primary server fine. Now if we stop the Xeams service on the primary server the second server handles mail fine - all good.

Now as the downstream server is the Primary server once the Primary server comes up all emails empty from the outbound queue back into the Primary server fine so all good there too.

That is as far as we need the setup to be.  Presently all emails remain stored in the user folders on the secondary server even if they all get delivered to the primary server when it is back up. 

I understand this is what makes the setup 'redundant' but this is not required once the Primary server back up. 
Having copies and copies of emails mounting up on the secondary server every time there is an outage even after they are all pushed downstream doesn't make any sense at all.

Is there a setting I can apply to simply delete all emails from user folders once the downstream (primary) server is back up and all the outbound queue has been flushed?

Many Thanks,

James