I configured my mail server as per perfect server setup. When I stop the mx2. and change the configuration of roundcube and set default imap server to mx1.example.com. The webmail receives and show perfectly. But when the mx2 is up again and make changes in roundcube's default imap server to mx2.example.com. It also works fine. But mx2 doesn't pull mails from mx1 server, whom the mx1 recieved.
See multiserver setup tutorial, the part for the mail server: https://www.howtoforge.com/tutorial/ispconfig-multiserver-setup-debian-ubuntu/
I already configured the server by following this link. After that, I stopped MX2 VM(the default IMAP host) to test, if the mx1 is mirroring (DB and Maildir) or not and edited /etc/roundcube/config_file and set mx1 as the default IMAP host. I found the mx1 is working fine. All mails are synced. Then I sent and received some more mails. After that, I started the mx2 and set the mx2 as the default IMAP host in /etc/roundcube/config file. But now, only mx1 contains those mails, whom are received during mx2 was off. but mx2 is not pulling those Maildir files from mx1. So what is happening is like mx2 >>>> mx1 ( mx2 replicating mx1 ) mx1 >>>> mx2 ( but mx1 is not replicating mx2 )
Check if Dovecot replication is set up propperly and working. Here is some quick debugging information: https://forum.howtoforge.com/threads/dsync-faq.86543/
Thanks Bro. I don't have to make any changes. All were working fine. But the fact is When the mx2 is the default IMAP. all mx2's "/var/vmail/example.com/user/Maildir/cur" directory's mail are stored in /var/vmail/example.com/user/Maildir/new directory, in mx1.
As I am not using SSL. My /etc/dovecot/conf.d/99-ispconfig-custom-config.conf is below for mx1 My /etc/dovecot/conf.d/99-ispconfig-custom-config.conf is below for mx2 doveadm replicator status [ MX1 status ] doveadm replicator status [ MX2 status ]
I wonder if you might have run into this issue, affecting just some Dovecot versions? https://forum.howtoforge.com/thread...iguration-after-upgrading-to-debian-12.91129/