webmail use letsencrypt.

Locked
akong77
KeyHelp Translator
Posts: 44
Joined: Mon 2. Aug 2021, 07:39

webmail use letsencrypt.

Post by akong77 »

Hello,
I know webmail can use webmail.<domain.name> and keep domain name.Could use https with letsencrypt this domain?
User avatar
Tobi
Community Moderator
Posts: 2812
Joined: Thu 5. Jan 2017, 13:24

Re: webmail use letsencrypt.

Post by Tobi »

mod_proxy is your friend
Gruß,
Tobi


-----------------------------
wewoco.de
Das Forum für Reseller, Digital-Agenturen, Bildschirmarbeiter und Mäuseschubser
akong77
KeyHelp Translator
Posts: 44
Joined: Mon 2. Aug 2021, 07:39

Re: webmail use letsencrypt.

Post by akong77 »

Could you tell me how to do it?Thanks a lot.
User avatar
Tobi
Community Moderator
Posts: 2812
Joined: Thu 5. Jan 2017, 13:24

Re: webmail use letsencrypt.

Post by Tobi »

Sorry, my mistake.
I meant mod_proxy.

Open the domain details and add the following under "additional Apache directives".

Code: Select all

SSLProxyEngine On
ProxyPass /.well-known/ !
ProxyPass / https://server.tld/webmail/
ProxyPassReverse / https://server.tld/webmail/

RequestHeader unset Accept-Encoding
RequestHeader unset Origin
RequestHeader set Referer https://server.tld/webmail/
Just change "https://server.tld/webmail/" with your webmail URL.
Gruß,
Tobi


-----------------------------
wewoco.de
Das Forum für Reseller, Digital-Agenturen, Bildschirmarbeiter und Mäuseschubser
akong77
KeyHelp Translator
Posts: 44
Joined: Mon 2. Aug 2021, 07:39

Re: webmail use letsencrypt.

Post by akong77 »

Hello,
Thanks for your reply.
The default webail is https://domain.tld/webmail. I want use https://webmail.domain.tld
I know can use Configuration --> Webmail --> Keep domain name this function.
But I use https://webmail.domain.tld it's will secure warning.Because letsencrypt only for https://domain.tld.
Could I use https://webmail.domain.tld?
Locked