Ramon Acedo wrote:
We use a virtual IP that moves over two servers as a pop server, when server1 is down server2 has that IP and when server2 is down server1 has the IP -there is always one or both servers up- We want to have a exact copy of the received messages at both servers, so when we reveceive a message we'd like it to store on the folder of its user at the 2 servers, if you try it making an alias, i.e, "root: root@localhost root@server2" the messages stored at the first server are different from the messages that go to server2 because the "To:" and the "Received From:" for example are different. Another problem is that when server1 is up and with the IP of the pop server and then goes down, then server2 takes the IP of the pop server and beging to receive the messages, then server1 goes up again but before getting the IP of the pop server it should have the messages exactly as the server2. I've been thinking of making a script that could do rcp of /var/spool/mail/* and run it from the cron every 3 minutes for example, but i'm not sure that this won't loss mail or that it won't upload mails to clients already uploaded before -repeated mails, first uploaded from server1 and afterwards uploaded from server2-
This simplest method that I can think of for doing this would be to share /var/spool/mail via NFS or something similar. If you were to take this route, I would also suggest using a separate server with fast disk I/O to actually store the mail, otherwise you'ld be scuppered if the mail server which stored the mail died. However, I suppose this still leads to a single point of failure for your mail system, which is what you're trying to avoid... Some form of 'network RAID' may be the sort of thing you're looking for. Sorry that's not much help, Chris -- __ _ -o)/ / (_)__ __ ____ __ Chris Reeves /\\ /__/ / _ \/ // /\ \/ / ICQ# 22219005 _\_v __/_/_//_/\_,_/ /_/\_\