The constellation: We have a managed, dedicated server from a professional provider. We currently have Tobit David.fx server in use within our local network which fetches all E-Mails from the online server via IMAP which are sent to the domain. We would like to replace David.fx with an Ubuntu server which runs Postfix and Dovecot on it.
Our desired system would look like this:
Our users access their mailboxes via an ordinary client (such as Thunderbird) which connects to and fetches the mails for the configured address from our server within our local network.
That local server should do nothing else than fetch all the E-Mail from the IMAP mailbox online and put them in the appropriate mailbox on itself.
Outgoing mail should be sent like that, too, only the other way around. Clients use their mail program which is configured to send via SMTP on the local network server. That server actually does not sent the mails by itself but uses the online server to sent them.
So like if the online server would act like kind of a proxy or tunnel. Setting up forwarding on the online server to our local mail server is not an option.
Am I right to investigate further how to accomplish this with Postfix and Dovecot based on the described situation above? Are they suitable for such scenario? I find a vast amount of resources to read, but because of the same terminology mostly different problems are described in.
PS: I wanted to provide a sketch of it, but because of lacking reputation on ServerFault I could not do yet.