how to flush out a postfix pop box
Hello, we've got a bunch of servers running postfix for our mail system, the two we're interested in here are the smtp push server and the pop server. Now one of our clients has had problems with their server on site and in order to gett some mail to them I've filtered off some mail from the smtp push server and sent it to accounts I've created on the pop server.
The customer can then bypass their mail server and access the mail through webmail or outlook or whatever, so far so good.
Now at some point in the future (not too far away I think) they're going to want to switch back and we'll point the mail back to their server and it'll start flowing again, no problems anticipated there.
The tricky bit is what to do with the mail that's currently sitting on the pop server, they'll want to access it from their usual accounts and for that the mail will need to be on their server. I could log in to each account and forward each message on, that would probably do the trick but It could get messy, especially as there's loads of mail.
Is there a command or a script that I can use to flush mail out of a pop box and send it on it's way? If I can do that after removing the filter from our push server then it'll get to their server.
/edit I should clarify that although this is primarily a pop3 server, it also does imap and these particular accounts are actually imap
Last edited by vmos; 6th February 2009 at 21:39.