Zimbra Tips



Default Ports Used by Zimbra:


You may choose not to allow remote connections to all of these. In a multi-node environment, all nodes will need access to the ldap server or servers (389) and to the logger server (514), mta nodes will need access to lmtp on all mailbox nodes (7025), mailbox nodes will need admin port access to other mailbox nodes (7071).

=========================================================================
External Access:
These are ports typically available to mail clients.

25    smtp [mta] - incoming mail to postfix
80    http [mailbox] - web mail client
110    pop3 [mailbox]
143    imap [mailbox]
443    https [mailbox] - web mail client over ssl
465    smtps [mta] - incoming mail to postfix over ssl (Outlook only)
587    smtp [mta] - Mail submission over tls
993    imaps [mailbox] - imap over ssl
995    pops [mailbox] - pop over ssl
7071    https [mailbox] - admin console

=========================================================================

Internal Access:
These are ports typically only used by the zimbra system itself.

389    ldap [ldap]
636    ldaps [ldaps, if enabled]
7025    lmtp [mailbox] - local mail delivery
7047    conversion server
7306    mysql [mailbox]
7307    mysql [logger] - logger
7780    http [mailbox] - spell check
10024    smtp [mta] - to amavis from postfix
10025    smtp [mta] - back to postfix from amavis

=========================================================================

System Access:

22    ssh
514    syslogd [logger] (udp)

=========================================================================


A complete list of Ports with related Services:

Port     ZCS Service
-------------------
25     Postfix
80     HTTP
110     POP3
143     IMAP
389     LDAP
443     HTTPS
465     SMTP SSL (since ZCS 4.5.5)
993     IMAP SSL
995     POP3 SSL
5222     XMPP client connection
5223     XMPP client connection over SSL
5269     XMPP server connection
7025     LMTP
7047     Conversion Server
7071     ZCS Admin services connector (SSL)
7072     ZCS Extension port (http backend service for nginx lookup/authentication)
7110     Backend POP3 (if proxy configured)
7143     Backend IMAP (if proxy configured)
7306     MySQL
7307     Logger MySQL
7335     XMPP intra-cloud routing listener
7777     XMPP Proxy Service
7993     Backend IMAP SSL (if proxy configured) (not used with nginx since 5.0?)
7995     Backend POP3 SSL (if proxy configured) (not used with nginx since 5.0?)
10015     XMPP external component listener
10024     amavisd-new
10025     Postfix answering amavisd-new


#################################################################################


List of "zmprov" command examples:

############################## Accounts related examples ##############################



Create one account with a password that is assigned to the default COS:
$ zmprov ca name@domain.com password


Create one account with a password that is assigned to a specified COS. You must know the COS ID number. To find a COS ID, type zmprov gc <COSname>.:
$ zmprov ca name@domain.com <password> zimbraCOSid <cosIDnumberstring>


$ zmprov ca USER@ZIMBADOMAIN.COM PASSWORD displayName 'FNAME LNAME' givenName FNAME sn LNAME
 
$ zmprov ca heerakoranga@example.com 1234abcd displayName 'Heera Koranga' givenName Heera sn Koranga company 'Tetra Information Services Pvt. Ltd.' co India l 'New Delhi' postalCode 110065 telephoneNumber 999999999 title 'L2 Linux Engineer'


Create one account when the password is not authenticated internally:
$ zmprov ca name@domain.com


Change the administrator.s password. Use this command to change any password. Enter the address of the password to be changed:
$ zmprov sp admin@domain.com password


To list all COSs and their attribute values:
$ zmprov gac -v


To list all COSs and their attribute values:
$ zmprov gaa domain.com


To list all user accounts and their configurations:
$ zmprov gaa -v domain.com


To list all details of a user:
$ zmprov ga abc@example.com


To list all users:
$ zmprov -l gaa   


To change password of an account:
$ zmprov setPassword xyz@example.com PASSWORD


Add an alias to an account:
$ zmprov aaa accountname@domain.com aliasname@domain.com

=====================================================================

################# Distribution Lists related examples ##################


Create distribution list. The ID of the distribution list is returned:
$ zmprov cdl listname@domain.com


Add a member to a distribution list. Tip: You can add multiple members to a list from the administration console:
$ zmprov adlm listname@domain.com member@domain.com

=====================================================================


################# Misc examples ##################

Create a domain that authenticates against Zimbra OpenLDAP:
$ zmprov cd marketing.domain.com zimbraAuthMech zimbra


Set the default domain:
$ zmprov mcf zimbraDefaultDomainName domain1.com


To disable the imapproxy service:
$ zmprov ms `zmhostname` -zimbraServiceEnabled imapproxy


To enable logger on a single server:
$ zmprov +zimbraServiceEnabled logger

Then type zmloggerctl start, to start the logger.

=====================================================================


listing/deleting/creating mailboxes
This will get you all mailboxes to a certain user:
$ zmmailbox -z -m USER@DOMAIN.COM gaf


This will delete a certain mailbox:
$ zmmailbox -z -m USER@DOMAIN.COM df SUB/LINUX/WINDOWS/GEEK


Tracing messages:
$ zmmsgtrace -i 3836172.14011130514432170
$ zmmsgtrace -s user@example.com
$ zmmsgtrace -r user2@example2.com -t 20051105
    -s ... sender
    -r ... recipient
    -t ... time
    -i ... message_id


To increase the maximum message size from to 50M:
There are in fact two settings that determine the maximum message or attachment size. For incoming mail, it can be set in the admin GUI (Global Settings -> MTA -> Maximum Message Size (in kb).
For mail, dropped into Zimbra via IMAP (e.g. when copying mail from your old server to Zimbra), it is determined by the configuration variable zimbraFileUploadMaxSize. That can only be set using zmprov. So, to set both limits to 50Mb, use the following commands:
$ zmprov mcf zimbraMtaMaxMessageSize 51200000
$ zmprov mcf zimbraFileUploadMaxSize 51200000



Check if proper set:
$ zmprov gacf zimbraFileUploadMaxSize


Show more than 100 messages per page:
$ zmprov ma peter zimbraPrefMailItemsPerPage 500






Reference:
http://wiki.zimbra.com/wiki/Zmprov_Examples
http://www.goldfisch.at/knowwiki/basics/zimbra



No comments: