Postfix服务器镜像(备份服务器)
我必须为 postfix 服务器设置一个远程镜像(两个邮件服务器的内容在任何时候都应该相同)。
这个想法是,如果主服务器在某个时刻出现故障,镜像服务器将取代它,管理新传入的邮件,当电子邮件服务器再次启动时,它将用新电子邮件更新它并返回它是管理新传入邮件的控件。
邮件服务器将托管在不同的地方(即 maindomain.com、themirrorsite.com)。
获得一个简单的备份服务器似乎并不太困难:
http: //beginlinux.com/blog/2010/03/backup-mx-with-postfix/ http://www.postfix.org/STANDARD_CONFIGURATION_README.html#backup http://www.linuxmail.info/postfix-backup-mx/
但问题是,这种配置不会使备份站点成为主邮件服务器的完整镜像(它将仅保存主服务器关闭时收到的电子邮件)。
有没有办法实现所需的配置?
I have to set up a remote mirror for a postfix server (where the content of both mail servers should be the same at any time).
The idea is that if the main server comes down at some point the mirror server will take its place, manage the new incoming mails, and when the e-mail server comes up again, it will update it with the new e-mails and return it the control to manage the new incoming mails.
The mail servers will be hosted in different places (i.e. maindomain.com, themirrorsite.com).
Getting a simple back-up server doesn't seem too difficult:
http://beginlinux.com/blog/2010/03/backup-mx-with-postfix/ http://www.postfix.org/STANDARD_CONFIGURATION_README.html#backup http://www.linuxmail.info/postfix-backup-mx/
But the problem is that this configuration wouldn't make the back-up site a complete mirror of the main mail server (it will hold only the e-mails received while the main server is down).
Is there a way to achieve the required configuration?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以在主域邮件服务器中使用recipient_bcc_maps,以便将每封邮件也发送到备份邮件服务器。
例如。 [电子邮件受保护] ---> [电子邮件受保护]
另外,您必须破解镜像站点邮件服务器才能接受任何邮件例如.com & example2.com。
这不是一个简单的解决方案,只是一个工作流程,直到您找出主域邮件服务器的问题为止。
这个计划有很多问题。例如索引文件(已读/未读标志等),但在修复主域邮件服务器之前,您将拥有一个活动的邮件服务器。
另一种解决方案是每隔一小时将邮件从邮件服务器同步到另一台邮件服务器(maildir 有很大帮助)
You can use recipient_bcc_maps in maindomain mail server so that send every mail to the backup mail server too.
eg. [email protected] ---> [email protected]
plus you have to hack themirrorsite mail server to accept any mail for example.com & example2.com.
This isnt a straightforward solution, just a workflow till you figure out the problem one maindomain mail server.
You have a lot of problems with that scheme. For example index files (read/unread flags etc) but you will have an active mail server till you fix maindomain mail server.
On other solution is to rsync mails every one hour (maildir helps a lot) from on mail server to one other