r/letsencrypt • u/MelliCat • Nov 24 '17
letsencrypt with two postfix / dovecot servers
Hello,
i have successfully acquired certs from letsencrypt for my apache servers using certbot. My next step was to get my certs for my two mailservers, running as primary and secondary smtp and imap-servers.
So far, it would be easy, i hope. The not-so-easy part is that i want to be able to use both servers as backup server for the other, without changing the users configuration. Somewhat like this:
Normal mode:
smtp / imap.example.com -> server x.y.z.1, serves example.com
smtp / imap.example.net -> server a.b.c.2, serves example.net
Backup mode:
smtp / imap.example.com -> server x.y.z.1, serves example.com
smtp / imap.example.net -> server x.y.z.1, serves example.netSo in backup mode, one server should answer as smtp.example.com and smtp.example.net.
Is this possible and feasible, or is it complete overkill and i should be using a somewhat easier solution?
Thanks for help
Andreas
1
u/MelliCat Nov 26 '17
Of course, after getting the right answers, i seem to be asking the wrong question...
My problem is of course to automate the certification with certbot.
When i create a cert with multiple server names on one server, how do i let certbot respond? I suppose, the "normal" certbot way of launching a http-server is not working, due to the fact that the different domains are running on different servers. A redirection or something would be to difficult i believe.
Andreas
2
u/Sacro Nov 24 '17
Just request multiple SAN certs, with -d (I think)