Zimbra Collaboration System Administration - March2014
Zimbra Collaboration System Administration - March2014
Zimbra Collaboration System Administration - March2014
System Administration
ZC ZC ZC ZC ZC
POP
RSS
REST
LMTP
CalDAV
IMAP
Atom
ActiveSync
CardDAV
BES
Zimlet WS Proxy
Zimbra Mobile
Zimlet Proxy or
Connector
for BES Nginx Proxy
Postfix MTA
Zimbra Collaboration
Zimlet JSP Tags
Including
Anti-Spam
and Virus
Jetty + JVM + OS
Zimbra Collaboration
(Jetty + JVM)
JDBC
Storage Zimbra Lucene MySQL Open External Autonomy IBM
Microsoft
System Journaling Index LDAP LDAP Keyview Domino
Exchange
Active
Directory
• Ports
Other (miscellaneous): 514 – syslogd (logger), 636 – LDAPS, 7780 – spellcheck (httpd)
• Menu-driven configuration
• Configuring IMAP/POP
• Load balancing
• Configuring DNS
• Integrated anti-spam/virus
• LDAP, Active
Directory integration
• Integrated Archiving
and Discovery
• Multi-Tenancy
• Domains are directory entries, and enabling you to spread all of
your users across shared servers and storage
• Delegated Administrators
• Custom administrator roles can be created
• Regular User
• COS sets the default attributes and features available
• Alias
• Distribution List
• Resource
New
in ZC
8!
• Syntax
CLI commands are case sensitive:
$ zmprov modifyAccount [email protected] zimbraAccountStatus locked
• Usage:
/opt/zimbra/bin/zmcontrol [-v -h -H <host>] command [args]
• Usage
zmprov (w/ sub-command): SOAP access to LDAP server
zmprov –l (w/ sub-command): direct LDAP access to LDAP server
zmprov (w/o sub-command): interactive mode
getDistributionList (gdl)
givenName: First
• mail: [email protected]
objectClass: organizationalPerson
• getDomain (gd) objectClass: zimbraAccount
objectClass: amavisAccount
• getServer (gs) sn: Last
uid: Last
userPassword: VALUE-BLOCKED
zimbraAccountStatus: active
• Enum (Keywords)
• zimbraAccountStatus: active, locked, maintenance, …
• zimbraMailMode: http, https, both
• ASCII String
• zimbraServiceEnabled
Enable a new service:
$ zmprov ms `zmhostname` +zimbraServiceEnabled mta
Disable a service:
$ zmprov ms `zmhostname` -zimbraServiceEnabled mta
• zimbraMailHost
• Lock an account
$ zmprov modifyAccount [email protected] zimbraAccountStatus
locked
• To confirm settings:
$ zmprov ckr dl [email protected] [email protected] sendToDistList
• Syntax
zmmailbox [args] [cmd] [cmd-args ...]
2. Copy and paste the CSR to Certificate Authority through the on-
line interfaces provided
3. Retrieve the files from the Certificate Authority
4. Install the certificate, intermediate, and root. For multiple servers:
a. Copy commercial.csr, commercial.crt, commercial_ca.crt to
other servers
b. Use zmcertmgr (as root) to verify and install
New in
ZC 8!
• The report runs every morning at 11:30 p.m. and is sent to the
administrator’s email address.
This enables the server to log data and statistics to the appropriate
log files.
2. Additionally on your logger monitor host, based on your OS, perform
one of the following to enable syslog to listen for/accept log data from
remote machines:
Syslog:
a. Edit the /etc/sysconfig/syslog file, add -r to the SYSLOGD_OPTIONS
setting
SYSLOGD_options=”-r -m 0”
b. Restart the syslog daemon:
/etc/init.d/syslogd restart
• /opt/zimbra/log/mailbox.log
• A mailboxd log4j server log containing logs from mailbox server
• /opt/zimbra.log/audit.log
• Contains authentication activity of users and administrators and
login failures
• sync.log
• Contains information about ZC mobile sync operations
• zmmailboxd.out
• Contains mailbox startup information and thread dumps if
mailboxd is shut down
• Contains information about Denial of Service Filter events
Date Time Log Level Jetty thread-pool number mailbox server processing the SOAP request SOAP request type
Date Time Log Level Thread/Process IP Operation Description Message size number recipients
2013-10-31 14:20:20,386 INFO [LmtpServer-1] [ip=10.137.28.179;] lmtp - Delivering message: size=1734 bytes, nrcpts=1, [email protected],
msgid=<[email protected]>
Originator Message ID
• removeAccountLogger
$ zmprov ral [email protected] zimbra.imap
• Watch the log file and login via the AJAX client:
$ tail -f /opt/zimbra/log/mailbox.log
• Web (SOAP)
• SMTP
• LDAP
Field Description
Minute 0 through 59
Hour 0 through 23
Day of the month 1 through 31
Month 1 through 12
Day of the week 0 through 7 (0 or 7 is Sunday, 1 is
Monday, etc., or use names)
Command This is the complete sequence of
commands to be executed for the job.
• Important: If a user account is restored and the COS that the account
was assigned to no longer exists, the default COS is assigned to the
account.
• Note: A single account can also be restored from the admin console.
• Example:
$ zmstat-chart -s /opt/zimbra/zmstat/YYYY-MM-DD -d ~/charts
• Disk
• Slow response time, but disk and CPU utilization are low
• Thread dumps will show blocked threads
• ZC servers to deploy
NOTE: This is optional because some users use their Trash folder
as an archive
LDAP MMR
Nginx Proxy Nginx Proxy
LDAP Master LDAP Master MTA (8.x)
(7.x) MTA (8.x)
(7.x)
LDAP Master (7.x)
(8.x) (7.x)
(8.x)
(8.x) (8.x)
(7.x)
[writes only] [writes only] Phase 2
LDAP Master LDAP Master
LDAP Replica LDAP Replica
(8.x) (8.x)
(7.x) (7.x)
[reads only] [reads only]
Mailstore (8.x) For
Site A Site B Admin/Provisioning
Phase 1
Phase 1
Mailstore (7.x) Mailstore (7.x) Mailstore (7.x) Mailstore (8.x) Mailstore (8.x) Mailstore (8.x)
Phase 3 Phase 4
zmmboxmove 8.x
Beta Group
zmmboxmove
Production Users
Single Server Upgrade – Checklist I
• Review Known Issues in Release Notes
• LDAP Master/Replica Order
• Interprocess Communications
• Expired Certificates
• Database Corruption
• Pre-requisite Recommendation
1. Perform a test upgrade in test environment
Note: This could be a Virtual Environment
• Login Problems
• Mail delivery
• Poor performance
app_top_toolbar
Tree app_main
Tree
Footer
• Disable a Zimlet
• Undeploy a Zimlet
• zimbraArchiveAccountNameTemplate
• Sets up how the archive mailbox name is created.
• The default value is ${user}-${date}@${domain}.archive.
• The archive account address would be like this example:
[email protected].
ZC ZC ZC ZC ZC
POP
RSS
REST
LMTP
CalDAV
IMAP
Atom
ActiveSync
CardDAV
BES
Zimlet WS Proxy
Zimbra Mobile
Zimlet Proxy or
Connector
for BES Nginx Proxy
Postfix MTA
Zimbra Collaboration Server
Zimlet JSP Tags
Including
Anti-Spam
and Virus
Jetty + JVM + OS
JDBC
Storage Zimbra Lucene MySQL Open External Autonomy IBM
Microsoft
System Journaling Index LDAP LDAP Keyview Domino
Exchange
Active
Directory
• See also:
http://wiki.zimbra.com/wiki/LDAP_Multi_Master_Replication
• Examples:
• System admins can restrict the number of emails sent by a
user to 100/day
• Service providers can restrict “spammers” on compromised
accounts
• Pre-requisite recommendation:
1. Perform a Test Upgrade in Test environment
Note: This could be a Virtual Environment.
2. Apply and test any customization, especially
a. Existing provisioning scripts
b. Zimlets
c. Skins and Themes
• Provisioning
• Global administrator provisions delegated administrators and
delegated administrator groups
• Define Roles: Which rights to assign to the targets the
administrator will manage?
• Admin Group: Create administrator groups and add individual
administrator accounts to the group
• Global Admin: Accounts that are configured as global
administrator accounts cannot be granted ACLs
1. Choose the
Administrator type:
a. Admin Account
b. Admin Group
• Domain
• Internet domain name for which the server will handle mail
• dn: dc=zimbra,dc=com
• Server
• ZC server specific configuration
• Overrides global config
• dn: cn=dogfood.zimbra.com,cn=servers,cn=zimbra
• Configuration elements
• LDAP search base
ou=people,dc=zimbra,dc=com
• LDAP bind DN
Ldap user on the external directory with search access
• Search Filter
Search to run on the external directory
Note: GAL Polling interval is set up on this tab for the COS.
• At this point you have two datasources within the Galsync account,
however the ADGAL datasource requires a lot more configuration to
work properly.
• LDAP Search Base
• LDAP Bind DN
• LDAP Bind Password
• LDAP URL (where to connect to Active Directory)
• LDAP Filter (what AD objects you want to reveal to Zimbra users)
• Configured at installation
• Not available on Zimbra Collaboration Appliance
• Configuration
• Controlled by zimbraIPMode server setting
• After setting zimbraIPMode, use zmiptool to configure
services
$ zmprov ms `zmhostname` zimbraIPMode ipv4
$ libexec/zmiptool
$ zmcontrol restart
Zimbra
3000 Internet Blvd., Suite 200
Frisco, TX 75034 USA
Main: +1 972-407-0688
Main US toll-free: 877-492-9484
www.zimbra.com