Is it possible open...
 
Notifications
Clear all

[Solved] Is it possible open http and htttps port in Carbonio?

8 Posts
5 Users
6 Reactions
817 Views
(@ricardobarbosams)
Joined: 1 year ago
Posts: 7
Topic starter  

Is it possible in Carbonio to leave the http and https port open? I'm searching to configure this but I can't find it. It's possible?

 

   
Quote
(@stefanodavid)
Joined: 3 years ago
Posts: 226
 

Hi @ricardobarbosams

What's your use case? Carbonio AFAIK does not need to use port 80.


   
ReplyQuote
(@anahuac)
Joined: 1 year ago
Posts: 324
 

Sure it is. Run:

 

zmprov ms `zmhostname` zimbraReverseProxyMailMode both
zmcontrol restart

   
ReplyQuote
(@sharif)
Admin
Joined: 2 years ago
Posts: 591
 

@ricardobarbosams

Hi,

As Stefano mentioned, Carbonio CE operates on HTTPS. But in some cases, the service may require to be accessed on port 80. In that case, you can set ReverseProxyMailMode to REDIRECT.

Default value of ReverseProxyMailMode:(When Carbonio CE only accepts HTTPS connection )

zextras@mail:~$ carbonio prov gs mail.sampleserver.xyz | grep -i ReverseProxyMailMode
zimbraReverseProxyMailMode: https
zextras@mail:~$

Redirect mode of ReverseProxyMailMode:(When Carbonio CE accepts both HTTP and HTTPS connection )

zextras@mail:~$ carbonio prov ms mail.sampleserver.xyz zimbraReverseProxyMailMode redirect 
zextras@mail:~$
zextras@mail:~$ zmproxyctl restart

 

For your reference, if you want to know what values are available for an attribute(i.e. zimbraReverseproxyMailMode) you can check like this:

root@mail:~# cat /opt/zextras/conf/attrs/attrs.xml | grep -i reverseproxymailmode
<attr id="685" name="zimbraReverseProxyMailMode" type="enum" value="https,redirect" cardinality="single" optionalIn="globalConfig,server" flags="serverInherited" requiresRestart="nginxproxy" since="5.0.7">
root@mail:~#

Hope it helps.

Thanks

Sharif


   
ReplyQuote
(@anahuac)
Joined: 1 year ago
Posts: 324
 

Let me fix this answer because it's no longer working. Now when I run this command, I get this output:

ERROR: account.INVALID_ATTR_VALUE (zimbraReverseProxyMailMode must be one of: https,redirect)

So it seems there are only this two options: https and redirect

In most cases redirect will work fine redirecting all connections from port 80 to 443.

 


   
ReplyQuote
(@anahuac)
Joined: 1 year ago
Posts: 324
 

@sharif great answer... I'm sorry if I kinda duplicate it... I didn't see yours when I sent mine.


   
ReplyQuote
(@sharif)
Admin
Joined: 2 years ago
Posts: 591
 

@anahuac

Hi,

Oh ..  don't worry. 😊

If happens to us all the time.😂

But we are grateful to you for your active presence and contribution in our community 🙏

Have a good day

Regards,

Sharif


   
anahuac reacted
ReplyQuote
(@honey2088a)
Joined: 1 year ago
Posts: 1
 

As Stefano mentioned, Carbonio CE operates on HTTPS. But in some cases, the service may require to be accessed on port 80. In that case, you can set ReverseProxyMailMode to REDIRECT.


   
anahuac reacted
ReplyQuote