On 03/06/2020 11:06, Andrea Miconi wrote:
My mailboxes are on a Dovecot (IMAP) server.
On DNS there is an MX record pointing to the server.
To read the mail I use Roundcube.
If the server is down, I lose the new mail.
I would like to do two things, alternatively.
First option.
1) I keeep the mail on the provider's server, restoring the original MX
record.
2) Dovecot does not receive the mail, but should go to download it.
3) I can access the server with Roundcube to read the downloaded mail,
but if the server is down I can always go to read the mail on the
provider's server with its webmail
This is pretty much exactly what I do. I use fetchmail [1] to download
mail from my ISP and feed it to exim, which delivers everything to
dovecot. I don't know whether it's possible to configure dovecot alone
for this.
[1] It's horrible, but it worked in 2007 and I'm intensely lazy.
Nick