<div dir="ltr"><div><div><div><div><div><div><div><div><div>We have Exchange as internal mail server, also we have gate where we plant to install Dovecot, also we have external mail at servers such as <a href="http://yahoo.com" target="_blank">yahoo.com</a> ort <a href="http://yandex.com" target="_blank">yandex.com</a>.<br></div>There are some mailboxes at Exchange, for example:<br></div>user1@internal.ltd to user10@internal.ltd.<br></div>There are
some mailboxes at Ynadex.com, for example:
<br></div><a href="mailto:personel1@external.com">personel1@external.com</a> to
<a href="mailto:personel10@external.com">personel10@external.com</a>.<br></div>1. For messages flow:<br>We need that Dovecot would act as at least transparent IMAP proxy for Exchange/Yandex and vise versa.<br></div>For incoming messages - some messages comes to <a href="mailto:personel5@external.com">personel5@external.com</a>
located at Yandex.com, then Dovecot gets it from Yandex using IMAP IDLE, tnen stores it locally (where Dovecot is installed) to MySQL (using DBMail) or at least maildir format and after that sends it forward (using IMAP PUSH) to appropriate account user5@internal.ltd or triggers (signals) Fetchmail to sends forward it to specified Exchange acoount.<br></div>And so on - for each external/interla pairs of accounts (Yandex.com/Exchange) .<br></div>For outgoing messages - Exchange send out it using Exim4, Exim4 stores it locally (where Dovecot is installed) to MySQL (using DBMail) and then Exim4 sends it out to Yandex.com and in the same time Dovecot uploads this message to Yandex.com to "Sent" folder. And this messages is sent through Yandex.com.<br></div>2. For messages storage:<br><div><div>When messages are deleted at Exchange, it are deleted from Dovecot (MySQL storage) and deleted from Yandex.com as well.<br></div><div>Or when messages are deleted from Yandex.com, it are deleted from Dovecot
(MySQL storage) and deleted from Exchange as well.<br></div><div><br></div><div>Is it possible to set up Dovecot and may be some other soft (Fetchmail, imapsyncd and so on) to get point 1 working or point 1 and point 2 working ?<br></div><div><div><div><div><div><div><div><div><br></div></div></div></div></div></div></div></div></div></div>