Relay imaps for multiple mail domains

NethServer Version: 7.9
Hi , i have one NS 7 server in front that relay smtp and smtps to NS8 server with different mail domain, i want to do the same with pop3s and imaps .
It is possible with dovecot on NS7 ?

1 Like

Hi,

and welcome to NethServer community.

That’s an interesting question, could you please explain in detail what you want to achieve?
If smtp is already relayed to the NS8 then you should already have the mails on the NS8 so why is an IMAP relay needed?

Dovecot has Dovecot imapc proxy — Dovecot documentation but I don’t know if it’s usable on NS7.

Here’s another thread about imap relay at Reddit.

BTW, NS7 is EOL so you should think about migrating to NS8.

Thanks for your answer, i have more activities , one of activity is rent small office , I rent individual offices in a building and I also provide a server if requested, in this case on the local network everything works imaps and pops, if the tenant wants to check his mail from outside and can only do so via Sogo or Webmail, but can not use a mail client on his phone? For the smtp and smtps ports this does not pose a problem I relay them with NS7 (this is its only function) the other servers are in NS8. For relay htttp and https i use HAProxy reverse proxy, but HAProxy can not relay imaps and pops .

1 Like

It seems traefik or nginx could do the job.

There’s an nginx module for NS7 that’s compiled with the mail ssl module, so it should work but it needs to be configured manually.

As Traefik is already used in NS8, I’d focus on that approach.

Thank you again for your responses. In the end, I used haproxy, which allows SSL streams to be relayed using an SNI client (sending the domain in clear text) for emails. It works very well for ports 993, 995, 465, and 587. Thank you again.

1 Like