Author Topic: Outgoing mail relay  (Read 1967 times)


  • Zen Apprentice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Outgoing mail relay
« on: July 31, 2018, 03:34:58 pm »
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.


  • Bug Hunter
  • Zen Hero
  • *****
  • Posts: 867
  • Karma: +59/-0
    • View Profile
Re: Outgoing mail relay
« Reply #1 on: September 24, 2018, 05:00:53 am »
Think about setting up your own domain.  Then you could send and receive email directly from your zentyal machine without all the rigmarole. If your IP address is in a range that makes sending problematic then there are services like mailgun which work nicely and come at no cost for email volumes less than 10k outbound a month.

 A domain ending in .net is $18.50 purchased from
DNS services are $12/yr from Google
If you think uptime might be an issue you can pursue backup MX services but I doubt that will come into play for most uses.

The configuration is dead simple. 

Give it a thought.

- my two cents