Hello guys,
i'm trying to setup zentyal mail module to work as some kind of "proxy" for outside hosting.
I have zentyal community 5.1 running on HV VM.
I want zentyal to download all emails from external server and than serve them through imap (that's trivial in configuration so i got it) but also I want to allow users to send emails through zentyal using relay to external server, that's where problems occur.
First problem is that our host has email based authentication, so i need to present different set of credentials depending on email address (perfectly the same as in fetchmail).
Second problem occurs when i try to send email, it is sent from internal email so external host rejects it because this email is not authorized to send anything through it. How i can rewrite internal domain for external when I'm sending anything outside? (In fact it can relay all outgoing emails)
And last, not really problem but question, is there any way to postpone deletion of emails from external server? For example delete them after 14 or 30 days so users may access them on original server?
Thanks for advises.