Product SiteDocumentation Site

2.15. Gevorderde Zarafa WebAccess configuraties

2.15.1. Zarafa WebAccess als standaard mailclient

Sinds ZCP versie 6.20 is het mogelijk om de Zarafa WebAccess in te stellen als standaard mailclient. Hieronder tonen we drie voorbeelden on associating de WebAccess met de standaard actie voor wanneer een gebruiker klikt op een e-mail adressenlink.

2.15.2. Vensters

Voor alle gebruikers op een computer:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail\Zarafa Web Client]
@="Zarafa Web Client"

[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail\Zarafa Web Client\DefaultIcon]
@="%windir%\\zarafa.ico"

[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail\Zarafa Web Client\Protocols]

[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail\Zarafa Web Client\Protocols\mailto]
"URL Protocol"=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail\Zarafa Web Client\Protocols\mailto\DefaultIcon]
@="%windir%\\zarafa.ico"

[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail\Zarafa Web Client\Protocols\mailto\shell]

[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail\Zarafa Web Client\Protocols\mailto\shell\open]

[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail\Zarafa Web Client\Protocols\mailto\shell\open\command]
@="rundll32.exe url.dll,FileProtocolHandler http://<ZARAFA_WEBACCESS_ADDRESS>/index.php?action=mailto&to=%l"

[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail\Zarafa Web Client\shell]

[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail\Zarafa Web Client\shell\open]
@="Zarafa Web Client"

[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail\Zarafa Web Client\shell\open\command]
@="rundll32.exe url.dll,FileProtocolHandler http://<ZARAFA_WEBACCESS_ADDRESS>/index.php?action=mailto&to=%l"

[HKEY_LOCAL_MACHINE\Software\Classes\mailto]
"EditFlags"=hex:02,00,00,00
"URL Protocol"=""
@="URL:MailTo Protocol"

[HKEY_LOCAL_MACHINE\Software\Classes\mailto\DefaultIcon]
@="%windir%\\zarafa.ico"

[HKEY_LOCAL_MACHINE\Software\Classes\mailto\shell]

[HKEY_LOCAL_MACHINE\Software\Classes\mailto\shell\open]

[HKEY_LOCAL_MACHINE\Software\Classes\mailto\shell\open\command]
@="rundll32.exe url.dll,FileProtocolHandler http://<ZARAFA_WEBACCESS_ADDRESS>/index.php?action=mailto&to=%l"
Alleen voor actuele gebruikers:
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\SOFTWARE\Clients\Mail\Zarafa Web Client]
@="Zarafa Web Client"

[HKEY_CURRENT_USER\SOFTWARE\Clients\Mail\Zarafa Web Client\DefaultIcon]
@="%windir%\\zarafa.ico"

[HKEY_CURRENT_USER\SOFTWARE\Clients\Mail\Zarafa Web Client\Protocols]

[HKEY_CURRENT_USER\SOFTWARE\Clients\Mail\Zarafa Web Client\Protocols\mailto]
"URL Protocol"=""

[HKEY_CURRENT_USER\SOFTWARE\Clients\Mail\Zarafa Web Client\Protocols\mailto\DefaultIcon]
@="%windir%\\zarafa.ico"

[HKEY_CURRENT_USER\SOFTWARE\Clients\Mail\Zarafa Web Client\Protocols\mailto\shell]

[HKEY_CURRENT_USER\SOFTWARE\Clients\Mail\Zarafa Web Client\Protocols\mailto\shell\open]

[HKEY_CURRENT_USER\SOFTWARE\Clients\Mail\Zarafa Web Client\Protocols\mailto\shell\open\command]
@="rundll32.exe url.dll,FileProtocolHandler http://<ZARAFA_WEBACCESS_ADDRESS>/index.php?action=mailto&to=%l"

[HKEY_CURRENT_USER\SOFTWARE\Clients\Mail\Zarafa Web Client\shell]

[HKEY_CURRENT_USER\SOFTWARE\Clients\Mail\Zarafa Web Client\shell\open]
@="Zarafa Web Client"

[HKEY_CURRENT_USER\SOFTWARE\Clients\Mail\Zarafa Web Client\shell\open\command]
@="rundll32.exe url.dll,FileProtocolHandler http://<ZARAFA_WEBACCESS_ADDRESS>/index.php?action=mailto&to=%l"

[HKEY_CURRENT_USER\Software\Classes\mailto]
"EditFlags"=hex:02,00,00,00
"URL Protocol"=""
@="URL:MailTo Protocol"

[HKEY_CURRENT_USER\Software\Classes\mailto\DefaultIcon]
@="%windir%\\zarafa.ico"

[HKEY_CURRENT_USER\Software\Classes\mailto\shell]

[HKEY_CURRENT_USER\Software\Classes\mailto\shell\open]

[HKEY_CURRENT_USER\Software\Classes\mailto\shell\open\command]
@="rundll32.exe url.dll,FileProtocolHandler http://<ZARAFA_WEBACCESS_ADDRESS>/index.php?action=mailto&to=%l"

2.15.2.1. Installeren van de ".reg" bestanden

  1. Open een tekstverwerker zoals kladblok.
  2. Insert the desired registry key, where <ZARAFA_WEBACCESS_ADDRESS> should be replaced by the url of your Zarafa WebAccess.
  3. In the Start Menu, hit Run, enter regedit, and hit Ok.
  4. Importeer de zojuist aangemaakte registersleutel.
  5. In Outlook 2003/2007 go to Tools > Options > Other > uncheck Make Outlook the default program for Email, Contacts & Calendar.
  6. In the Start Menu, hit Run, enter %windir%, and hit Ok. The default Windows folder will be opened.
  7. Kopieer en plak zarafa.ico in de map. Het icoon kan worden gevonden op de server in de volgende map: /webaccess/client/layout/img/favicon.ico.

2.15.3. Linux

  1. Maak een nieuw script bestand mailto.sh.
  2. Zet de volgende regels in een bestand:
    #!/bin/bash
    
    ADDRESS=`echo $1|cut -f 2 -d : -`
    
    # Logs this to syslog... just helps to make sure it is working properly
    logger "Opening Zarafa mail client, addressed to $ADDRESS"
    
    firefox "http://<SERVER>/<USER>/webaccess/index.php?action=mailto&to=$ADDRESS"
  3. Replace http://<SERVER>/<USER>/webaccess/ with base URL of the WebAccess.
  4. Sla het bestand op (bij voorkeur in de home directory), laat dan chmod uog+rwx mailto.sh van dezelfde directory lopen.
  5. Now type gnome-default-applications-properties on a console or go to System > Preferences > More Preferences > Preferred Applications.
  6. Open “Mail reader” and set it to a custom action that looks like: /home/<USERNAME>/mailto.sh %s

2.15.4. Voeg Zarafa WebAccesss toe als mailto handler in Firefox

Bij het klikken op een URL van een e-mailadres (a mailto address) in Firefox zal proberen om een e-mailclient te openen. Firefox heeft een lijst van mogelijke mailclients, met de mogelijkheid om een standaard te kiezen. Voor het gebruik van de Zarafa WebAccess te hanteren mailto via URL's in Firefox volg de stappen:
  1. Typ about:config in de adresbalk en druk Enter. Negeer de garantie waarschuwing.
  2. Zet gecko.handlerservice in de filterbox.
  3. Double-click gecko.handlerService.allowRegisterFromDifferentHost. This will change its value from false to true.
  4. Paste this code in the address bar while replacing https://<ZARAFA_WEBACCESS_ADDRESS> with the URL used to access the installation of the Zarafa WebAccess (usually the url used to get to the login screen of the WebAccess), then press Enter:
    javascript:window.navigator.registerProtocolHandler("mailto","https://<ZARAFA_WEBACCESS_ADDRESS>?action=mailto&url=%s","Zarafa WebAccess")
  5. Onder de adresbalk vraagt een bericht of de Zarafa WebAccess moet worden toegevoegd als een verzoek om de mailto links te behandelen. Klik op de Applicatie toevoegen knop.
  6. Next time mailto: link is clicked, a screen will appear allowing the preferred mail client to be picked. Select the Zarafa WebAccess, and possibly check the box next to Remember my choice for mailto: links, then click OK.
Vanaf nu zal de Zarafa WebAccess onmiddelijk in werking treden wanneer je klikt op “mailto” links in Firefox. Merk op dat een gebruiker moet ingelogd zijn (of gebruik maken van Single Sign On) zodat het goed werkt.