Friday, October 31, 2014

email - Synchronizing e-mail using one IMAP and one POP client



OK I have an odd situation:



I need to synchronize e-mail from a single e-mail account on a single server to two different e-mail clients.

I need e-mail to be removed from the e-mail server.



I've tried setting up these accounts so that one uses POP to remove and sync e-mails and the other uses IMAP to sync e-mails, but this simply creates a race condition between the clients. and results in only some e-mails being delivered to the IMAP client.



Does anyone know of a better way to accomplish my goals?


Answer



This is going to get messy I think.



You will have to have both clients connect using IMAP as nothing else will work. Then you will need to find a way to get both clients to indicate they have finished replicating, then you will need a server process that recognises that signal and deletes the emails. Not good. What happens as more email comes in while the clients are replicating? I think that you would have to stop the email server first - see what I mean about messy?




So, lets wind back slightly. Why do you want to do that? If you can explain that, I'd be prepared to bet that we can come up with a better approach.


No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...