Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

We have an offsite hosted email server, which works (but is slow), and all our users connect to it to receive email.

Internal users connect to my postfix server to send email, I want to leave that there and create a new email server that can act as a inbound relay (Not sure if that is the correct term) so that internal users can connect to it instead of the remote one:

Ext Server: -> POP/IMAP/?? -> Int Server -> IMAP -> Users

Possible?

I'd basically like to mirror all email from the hosted server internally, so users can access it via IMAP. Allowing me to back it up! (Hosting company organized by consultant who manages it through a third/fourth/fifth??? party, gah) And filter spam/virii/etc..

Is there a way for users to log into my server, which then logs into remote server and downloads email to itself, then delivers via IMAP to them? Or am I overthinking/confusing/breaking something here?

What would happen if I sent an email to myself? Would it go out to the hosting company and then back in? Ideally only certain users would need to be on the hosted server, could I set it so that internal email gets delivered locally, but certain users get delivered to hosted server? Its 1630 on Friday, so maybe my brain is fried. I'll probably think of a hundred things wrong with this by Monday, but I want a second opinion.

Just thought of something, I can set a forwarder for all the users who are ONLY EVER INTERNAL, and get their messages forwarded to my server.. hmmm.. that could work! I'll have a play and see what happens to a few test users.

EDIT: Nope, either DNS is fubar, or the remote server won't send email back to the server that sent it.. would probably create a loop anyway. Bad idea.. :-(

share|improve this question

1 Answer 1

up vote 1 down vote accepted

You could run something like offlineimap, imapcopy or imapsync to synchronize IMAP accounts from the remote server onto a local server which also served as an IMAP server for those accounts.

At least with offlineimap, you could also arrange to have mail sent by your local users delivered directly there, and it would be synchronized in the other direction to the remote server.

share|improve this answer
    
I found something similar after thinking about your suggestions.. and honestly the user-hassle is not worth the effort, I will just create a backup and add it to our NAS of a night-time.. should do the job. Software is: isync.sourceforge.net Will probably try OfflineImap as well.. at least that is in Ubuntu repos. ;-) –  Grizly Dec 16 '12 at 22:41
    
Moved to Google Apps for Business.. problem solved. –  Grizly Feb 15 '13 at 3:32

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.