Email notification SMTP failover?

Nov 27, 2023
175
40
28
Netherlands
daniel-dog.com
Hello everyone,

I recently added a SMTP notification target to my Proxmox VE server and has worked perfectly.

I would however prefer to do a SMTP target failover.
This is so that it first tries SMTP1 and if it fails it tries SMTP2.

I want to do this since SMTP1 will run inside of a VM (with DirectAdmin installed) on the Proxmox VE server itself.
SMTP2 will be an external VPS (also with DirectAdmin installed) that I use for failover and reduncancy for my DNS/Email.

Has anyone else done/tried this and if so how?
 
Has anyone else done/tried this and if so how?
I simply ensure that my Proxmox mail gateways are and remain available.
Otherwise I still rely on my checkmk, which also sends push messages in Mattermost. In addition, I have some check instances running outside that can also send to Mattermost.

I want to do this since SMTP1 will run inside of a VM (with DirectAdmin installed) on the Proxmox VE server itself.
SMTP2 will be an external VPS (also with DirectAdmin installed) that I use for failover and reduncancy for my DNS/Email.
How did you implement this solution? Isn't it perhaps possible to use these too?

Redundancy in mail servers is often achieved through multiple MX/A records, which point to different destinations. Of course, this is not a query as to whether the server can be pinged or not, but the sending mail server also tries the backup MX.
 
I simply ensure that my Proxmox mail gateways are and remain available.
Otherwise I still rely on my checkmk, which also sends push messages in Mattermost. In addition, I have some check instances running outside that can also send to Mattermost.


How did you implement this solution? Isn't it perhaps possible to use these too?

Redundancy in mail servers is often achieved through multiple MX/A records, which point to different destinations. Of course, this is not a query as to whether the server can be pinged or not, but the sending mail server also tries the backup MX.
The way I planning it is to have all my websites/domains on the Proxmox VE server VM and a extra VPS for DNS redundancy / Email redundancy.

Unfortunatly DirectAdmin does not support multiple mail servers linked as one. (Of course having multiple MX record is no problem.)
And I cannot add the domain to both the VM and VPS and create the same SMTP user on both, due to them being linked for DNS sync and thus be required to only have a domain name on one of the two.

So the way I need to do it is:

try mail.example.com and if it fails try mail2.example.com
Where the domains for the SMTP will be unique and the username/password will be unique.
 

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!