[SOLVED] View email from admin console

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
niccarp
Posts: 10
Joined: Thu Jan 08, 2015 10:01 am

[SOLVED] View email from admin console

Postby niccarp » Tue Nov 01, 2016 5:44 pm

Hi

I have a problem when open "View Mail" to any mailbox from admin console or some user with admin access. The link open in a new tab but the url shows with error 404:

http://server.domain.com/service/preaut ... ken=0_3153reallylongtoken&isredirect=1&adminPreAuth=1

Error del servidor

404: archivo o directorio no encontrado.
Puede que se haya quitado el recurso que está buscando, que se le haya cambiado el nombre o que no esté disponible temporalmente.


Addding HTTPS to the url works perfect so how can i fix this redirect ??

The value for zmtlsctl control is Redirect already configured.

[zimbra@mx ~]$ zmprov gs `zmhostname` | grep MailMode
zimbraMailMode: redirect

The zimbra versión is:
[zimbra@mx ~]$ zmcontrol -v
Release 8.6.0_GA_1153.RHEL6_64_20141215151155 RHEL6_64 FOSS edition, Patch 8.6.0_P6.

Not running proxy:
[zimbra@mx ~]$ zmproxyctl status
zmnginxctl is not running

In audit.log the request shows wih httpS:
2016-11-01 14:38:03,622 INFO [qtp509886383-926687:https://ip:7071/service/admin/soap/DelegateAuthRequest] [name=admin@server.domain.com;mid=2;ip=xxx.xxx.xxx.xxx;ua=ZimbraWebClient - GC54 (Linux);] security - cmd=DelegateAuth; accountId=d9e1c7b2-9870-44f3-9557-xxxxxxx; accountName=spamtest@domain.com;


Really thanks


User avatar
jorgedlcruz
Zimbra Alumni
Zimbra Alumni
Posts: 2773
Joined: Thu May 22, 2014 4:47 pm

Re: View email from admin console

Postby jorgedlcruz » Tue Nov 01, 2016 11:13 pm

Hello,
If you are using HTTPS and Proxy, you need to make sure of the next steps:

Also, please check the next:

Code: Select all

./libexec/zmproxyconfig -e -w -o -a 8080:80:8443:443 -x <https/both>  -H `zmhostname`
zmprov ms `zmhostname` zimbraMailReferMode reverse-proxied
zmprov ms proxy.server.name zimbraReverseProxyMailMode redirect
zmmailboxdctl restart


I guess with that will work as expected

Best regards
Jorge de la Cruz https://jorgedelacruz.es
Systems Engineer at Veeam Software https://www.veeam.com/
User avatar
JDunphy
Outstanding Member
Outstanding Member
Posts: 479
Joined: Fri Sep 12, 2014 11:18 pm
Location: Victoria, BC
ZCS/ZD Version: 8.7.11_P14 RHEL6 Network Edition
Contact:

Re: View email from admin console

Postby JDunphy » Wed Nov 02, 2016 1:09 am

Thanks to this thread, I just realized that view mail wasn't working correctly from the admin console after adding in the proxy last week and updating to 8.7.1

From what I am seeing, that view mail extension is generating the URL with http and port 8080 in 8.6+ and https and port 8080 with 8.7.1. I thought I used the recommended practice from the wiki:

Code: Select all

zmprov ms `zmhostname` zimbraReverseProxyMailMode https
zmprov ms `zmhostname` zimbraMailReferMode reverse-proxied
zmprov ms `zmhostname` zimbraReverseProxyHttpEnabled TRUE
/opt/zimbra/libexec/zmproxyconfig -e -w -o -a 8080:80:8443:443 -x https -H `zmhostname`
/opt/zimbra/libexec/zmproxyconfig -e -m -o -i 7143:143:7993:993 -p 7110:110:7995:995 -H `zmhostname`
zmcontrol restart


To make the move to zimbra 8.7+, I was required to enable proxy + memcache using this link:

https://wiki.zimbra.com/wiki/Enabling_Zimbra_Proxy_and_memcached#Using_existing_servers

I can also say that I played around with zimbraPublicServicePort and zimbraPublicServiceProtocol but it doesn't seem to cause the URL from view mail to change.

Note: if I add https and remove the port 8080 from the URL, I can use the provided URL to login in both 8.6+ and 8.7.1 as one would expect.

Does anyone have a better approach to configuring nginx so that port 8080 isn't being added with the web view administration extension?

If I could force it not to use port 8080 in the URL, that would be good enough for me because I am running 8.7.1 now. I brought up an 8.6+ to verify the behavior.

I tested this against these versions:
Release 8.6.0_GA_1153.RHEL6_64_20141215151258 RHEL6_64 NETWORK edition, Patch 8.6.0_P7
Release 8.7.1_GA_1670.RHEL6_64_20161025035121 RHEL6_64 NETWORK edition
I also verified that it was working prior to my configuring the proxy in 8.6+

Jim

PS... if it looks like it is connecting but the browser hangs with nothing showing but a connection timeout??? Double check your firewall and allow port 8080.
User avatar
tonster
Zimbra Employee
Zimbra Employee
Posts: 312
Joined: Fri Feb 21, 2014 10:14 am
Location: Ypsilanti, MI
ZCS/ZD Version: Release 8.7.0_GA_1659.RHEL6_64_2016

Re: View email from admin console

Postby tonster » Wed Nov 02, 2016 3:12 am

You need to make sure you set the following attributes properly as well:

zimbraPublicServiceHostname
zimbraPublicServicePort
zimbraPublicServiceProtocol

They can be set on domain objects or globally. You'd want to set the hostname to the main hostname (proxy) of the system, the protocol probably https, and the port 443. Then, things like briefcase links and view mail will build the URL as $zimbraPublicServiceProtocol://$zimbraPublicServiceHostname:$zimbraPublicServicePort/[...]
User avatar
JDunphy
Outstanding Member
Outstanding Member
Posts: 479
Joined: Fri Sep 12, 2014 11:18 pm
Location: Victoria, BC
ZCS/ZD Version: 8.7.11_P14 RHEL6 Network Edition
Contact:

Re: View email from admin console

Postby JDunphy » Wed Nov 02, 2016 2:37 pm

Thank you. Yes that works perfectly. Previously, I was using the FQDN of the URL of the admin console instead of the the domain. Much better results this way. :D

Code: Select all

zmprov md example.com zimbraPublicServicePort 443
zmprov md example.com zimbraPublicServiceProtocol https
zmprov mcf zimbraPublicServiceHostname mail.example.com
zmmailboxdctl restart
niccarp
Posts: 10
Joined: Thu Jan 08, 2015 10:01 am

Re: View email from admin console

Postby niccarp » Wed Nov 02, 2016 8:14 pm

Perfect @JDunphy.

The proxy where off so i fix the value of the vars you mencionated and its working well. Its solved

Thanks to all.
User avatar
tonster
Zimbra Employee
Zimbra Employee
Posts: 312
Joined: Fri Feb 21, 2014 10:14 am
Location: Ypsilanti, MI
ZCS/ZD Version: Release 8.7.0_GA_1659.RHEL6_64_2016

Re: View email from admin console

Postby tonster » Wed Nov 02, 2016 8:17 pm

Awesome! Glad to hear it!!
yves.vogl
Posts: 6
Joined: Thu Oct 20, 2016 11:06 pm

Re: [SOLVED] View email from admin console

Postby yves.vogl » Sat Dec 02, 2017 5:58 pm

Thanks for the informationen provided here. It was helpful to me, too.
User avatar
DavidMerrill
Advanced member
Advanced member
Posts: 98
Joined: Thu Jul 30, 2015 2:44 pm
Location: Portland, ME
ZCS/ZD Version: 8.8.15 P3
Contact:

Re: [SOLVED] View email from admin console

Postby DavidMerrill » Thu Apr 05, 2018 2:13 pm

Here too (view mail was sending me to port 8443), thanks!
___________________________________
David Merrill - Zimbra Practice Lead
OTELCO Zimbra Hosting, Licensing and Professional Services
Zeta Alliance

Return to “Administrators”

Who is online

Users browsing this forum: No registered users and 8 guests