0

I have a senario in mind but I'm not sure how it should be implemented:

I have a mail service with an mx record and an IP address. This mail server could be down sometimes. The incoming mails to this server will be lost in the duration of the down time. Now, I want to implement a service where if the primary mail server is down a second MX record exists and those mails are sent to the secondary mail server. So far it's easy to do. But the problem is that I don't want the mail received to the second mail server to stay there. I want the mail server to periodically check the primary mail server and when it's available, send them to the primary mail server. I know websites like dnsmadeeasy.com provide such services.

But I want to know what the best way to implement this method is? Any guidance would be very much appreciated.

Saman Hamidi
  • 101
  • 2
  • I believe what you are looking for is the default behavior. https://www.howtoforge.com/postfix_backup_mx – Greg Askew Jul 05 '18 at 16:57
  • "_incoming mails to this server will be lost in the duration of the down time_" ... why do you think that? – roaima Jul 05 '18 at 19:28
  • This happens all the time on our receiving side. Could it be that a server sending the emails is not complying by RFC 1123 5.3.1.1? I'm sorry. I'm very new to this. – Saman Hamidi Jul 06 '18 at 11:20

1 Answers1

0

The incoming mails to this server will be lost in the duration of the down time.

Sending SMTP server will retry delivery attempts. RFC-1123 5.3.1.1 Sending Strategy suggests+ retrying delivery for 4-5 days.

AnFi
  • 6,103
  • 1
  • 14
  • 27