Dois disco de 80GB em RAD 1
root@mail:~# cat /proc/mdstat Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] md127 : active raid1 sdb[0] sdc[1] 83820416 blocks super 1.2 [2/2] [UU] unused devices: <none>
root@mail:~# mdadm --detail /dev/md127 /dev/md127: Version : 1.2 Creation Time : Mon Jan 13 11:19:22 2014 Raid Level : raid1 Array Size : 83820416 (79.94 GiB 85.83 GB) Used Dev Size : 83820416 (79.94 GiB 85.83 GB) Raid Devices : 2 Total Devices : 2 Persistence : Superblock is persistent Update Time : Fri Jun 10 11:55:14 2016 State : clean Active Devices : 2 Working Devices : 2 Failed Devices : 0 Spare Devices : 0 Name : mail:0 (local to host mail) UUID : f3a35c0d:59925519:888b7fe5:e19a2c8f Events : 39 Number Major Minor RaidDevice State 0 8 16 0 active sync /dev/sdb 1 8 32 1 active sync /dev/sdc
Volumes:
root@mail:~# pvs PV VG Fmt Attr PSize PFree /dev/md127 Zimbra lvm2 a- 79,93g 49,93g /dev/sda5 mail-vg lvm2 a- 79,76g 44,00m
root@mail:~# vgs VG #PV #LV #SN Attr VSize VFree Zimbra 1 3 0 wz--n- 79,93g 49,93g mail-vg 1 2 0 wz--n- 79,76g 44,00m
root@mail:~# lvs LV VG Attr LSize Origin Snap% Move Log Copy% Convert DBZ Zimbra -wi-ao 10,00g outrosZ Zimbra -wi-ao 10,00g storeZ Zimbra -wi-ao 10,00g root mail-vg -wi-ao 75,72g swap_1 mail-vg -wi-ao 4,00g
root@mail:~# mount | grep -i zimbra /dev/mapper/Zimbra-outrosZ on /opt/zimbra type ext3 (rw) /dev/mapper/Zimbra-DBZ on /opt/zimbra/db type ext3 (rw) /dev/mapper/Zimbra-storeZ on /opt/zimbra/store type ext3 (rw)
root@mail:~# hostname -f mail.exemplo.org
root@mail:~# cat /etc/hosts 127.0.0.1 localhost.localdomain localhost 192.0.2.5 mail.exemplo.org mail
root@mail:~# dig +short mail.exemplo.org 192.0.2.5
root@mail:~# dig +short -x 192.0.2.5 mail.exemplo.org.
root@mail:~# apt-get install ntpdate
root@mail:~# crontab -e [...] 0 12,00 * * * /usr/sbin/ntpdate 200.160.0.8
Dependências de pacotes:
root@mail:~# apt-get update root@mail:~# apt-get install libgmp3c2 libperl5.14 sysstat sqlite3 pax
root@mail:~# tar -zxvf zcs-8.0.6_GA_5922.UBUNTU12_64.20131203103702.tgz -C /usr/src/
root@mail:~# cd /usr/src/zcs-8.0.6_GA_5922.UBUNTU12_64.20131203103702/
root@mail:/usr/src/zcs-8.0.6_GA_5922.UBUNTU12_64.20131203103702# ./install.sh Operations logged to /tmp/install.log.2211 Checking for existing installation... zimbra-ldap...NOT FOUND zimbra-logger...NOT FOUND zimbra-mta...NOT FOUND zimbra-snmp...NOT FOUND zimbra-store...NOT FOUND zimbra-apache...NOT FOUND zimbra-spell...NOT FOUND zimbra-convertd...NOT FOUND zimbra-memcached...NOT FOUND zimbra-proxy...NOT FOUND zimbra-archiving...NOT FOUND zimbra-cluster...NOT FOUND zimbra-core...NOT FOUND PLEASE READ THIS AGREEMENT CAREFULLY BEFORE USING THE SOFTWARE. ZIMBRA, INC. ("ZIMBRA") WILL ONLY LICENSE THIS SOFTWARE TO YOU IF YOU FIRST ACCEPT THE TERMS OF THIS AGREEMENT. BY DOWNLOADING OR INSTALLING THE SOFTWARE, OR USING THE PRODUCT, YOU ARE CONSENTING TO BE BOUND BY THIS AGREEMENT. IF YOU DO NOT AGREE TO ALL OF THE TERMS OF THIS AGREEMENT, THEN DO NOT DOWNLOAD, INSTALL OR USE THE PRODUCT. License Terms for the Zimbra Collaboration Suite: http://www.zimbra.com/license/zimbra_public_eula_2.4.html Do you agree with the terms of the software license agreement? [N] y <Digite a tecla y para aceitar>
Oracle Binary Code License Agreement for the Java SE Platform Products ORACLE AMERICA, INC. ("ORACLE"), FOR AND ON BEHALF OF ITSELF AND ITS SUBSIDIARIES AND AFFILIATES UNDER COMMON CONTROL, IS WILLING TO LICENSE THE SOFTWARE TO YOU ONLY UPON THE CONDITION THAT YOU ACCEPT ALL OF THE TERMS CONTAINED IN THIS BINARY CODE LICENSE AGREEMENT AND SUPPLEMENTAL LICENSE TERMS (COLLECTIVELY "AGREEMENT"). PLEASE READ THE AGREEMENT CAREFULLY. BY SELECTING THE "ACCEPT LICENSE AGREEMENT" (OR THE EQUIVALENT) BUTTON AND/OR BY USING THE SOFTWARE YOU ACKNOWLEDGE THAT YOU HAVE READ THE TERMS AND AGREE TO THEM. IF YOU ARE AGREEING TO THESE TERMS ON BEHALF OF A COMPANY OR OTHER LEGAL ENTITY, YOU REPRESENT THAT YOU HAVE THE LEGAL AUTHORITY TO BIND THE LEGAL ENTITY TO THESE TERMS. IF YOU DO NOT HAVE SUCH AUTHORITY, OR IF YOU DO NOT WISH TO BE BOUND BY THE TERMS, THEN SELECT THE "DECLINE LICENSE AGREEMENT" (OR THE EQUIVALENT) BUTTON AND YOU MUST NOT USE THE SOFTWARE ON THIS SITE OR ANY OTHER MEDIA ON WHICH THE SOFTWARE IS CONTAINED. 1. DEFINITIONS. "Software" means the Java SE Platform Products in binary form that you selected for download, install or use from Oracle or its authorized licensees, any other machine readable materials (including, but not limited to, libraries, source files, header files, and data files), any updates or error corrections provided by Oracle, and any user manuals, programming guides and other documentation provided to you by Oracle under this Agreement. "General Purpose Desktop Computers and Servers" means computers, including desktop and laptop computers, or servers, used for general computing functions under end user control (such as but not specifically limited to email, general purpose Internet browsing, and office suite productivity tools). The use of Software in systems and solutions that provide dedicated functionality (other than as mentioned above) or designed for use in embedded or function-specific software applications, for example but not limited to: Software embedded in or bundled with industrial control systems, wireless mobile telephones, wireless handheld devices, netbooks, kiosks, TV/STB, Blu-ray Disc devices, telematics and network control switching equipment, printers and storage management systems, and other related systems are excluded from this definition and not licensed under this Agreement. "Programs" means Java technology applets and applications intended to run on the Java Platform, Standard Edition platform on Java-enabled General Purpose Desktop Computers and Servers. ?Commercial Features? means those features identified in Table 1-1 (Commercial Features In Java SE Product Editions) of the Software documentation accessible at http://www.oracle.com/technetwork/java/javase/documentation/index.html. ?README File? means the README file for the Software accessible at http://www.oracle.com/technetwork/java/javase/terms/readme/index.html. 2. LICENSE TO USE. Subject to the terms and conditions of this Agreement including, but not limited to, the Java Technology Restrictions of the Supplemental License Terms, Oracle grants you a non-exclusive, non-transferable, limited license without license fees to reproduce and use internally the Software complete and unmodified for the sole purpose of running Programs. THE LICENSE SET FORTH IN THIS SECTION 2 DOES NOT EXTEND TO THE COMMERCIAL FEATURES. YOUR RIGHTS AND OBLIGATIONS RELATED TO THE COMMERCIAL FEATURES ARE AS SET FORTH IN THE SUPPLEMENTAL TERMS ALONG WITH ADDITIONAL LICENSES FOR DEVELOPERS AND PUBLISHERS. 3. RESTRICTIONS. Software is copyrighted. Title to Software and all associated intellectual property rights is retained by Oracle and/or its licensors. Unless enforcement is prohibited by applicable law, you may not modify, decompile, or reverse engineer Software. You acknowledge that the Software is developed for general use in a variety of information management applications; it is not developed or intended for use in any inherently dangerous applications, including applications that may create a risk of personal injury. If you use the Software in dangerous applications, then you shall be responsible to take all appropriate fail-safe, backup, redundancy, and other measures to ensure its safe use. Oracle disclaims any express or implied warranty of fitness for such uses. No right, title or interest in or to any trademark, service mark, logo or trade name of Oracle or its licensors is granted under this Agreement. Additional restrictions for developers and/or publishers licenses are set forth in the Supplemental License Terms. 4. DISCLAIMER OF WARRANTY. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. ORACLE FURTHER DISCLAIMS ALL WARRANTIES, EXPRESS AND IMPLIED, INCLUDING WITHOUT LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT. 5. LIMITATION OF LIABILITY. IN NO EVENT SHALL ORACLE BE LIABLE FOR ANY INDIRECT, INCIDENTAL, SPECIAL, PUNITIVE OR CONSEQUENTIAL DAMAGES, OR DAMAGES FOR LOSS OF PROFITS, REVENUE, DATA OR DATA USE, INCURRED BY YOU OR ANY THIRD PARTY, WHETHER IN AN ACTION IN CONTRACT OR TORT, EVEN IF ORACLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. ORACLE'S ENTIRE LIABILITY FOR DAMAGES HEREUNDER SHALL IN NO EVENT EXCEED ONE THOUSAND DOLLARS (U.S. $1,000). 6. TERMINATION. This Agreement is effective until terminated. You may terminate this Agreement at any time by destroying all copies of Software. This Agreement will terminate immediately without notice from Oracle if you fail to comply with any provision of this Agreement. Either party may terminate this Agreement immediately should any Software become, or in either party's opinion be likely to become, the subject of a claim of infringement of any intellectual property right. Upon termination, you must destroy all copies of Software. 7. EXPORT REGULATIONS. You agree that U.S. export control laws and other applicable export and import laws govern your use of the Software, including technical data; additional information can be found on Oracle's Global Trade Compliance web site (http://www.oracle.com/products/export). You agree that neither the Software nor any direct product thereof will be exported, directly, or indirectly, in violation of these laws, or will be used for any purpose prohibited by these laws including, without limitation, nuclear, chemical, or biological weapons proliferation. 8. TRADEMARKS AND LOGOS. You acknowledge and agree as between you and Oracle that Oracle owns the ORACLE and JAVA trademarks and all ORACLE- and JAVA-related trademarks, service marks, logos and other brand designations ("Oracle Marks"), and you agree to comply with the Third Party Usage Guidelines for Oracle Trademarks currently located at http://www.oracle.com/us/legal/third-party-trademarks/index.html. Any use you make of the Oracle Marks inures to Oracle's benefit. 9. U.S. GOVERNMENT LICENSE RIGHTS. If Software is being acquired by or on behalf of the U.S. Government or by a U.S. Government prime contractor or subcontractor (at any tier), then the Government's rights in Software and accompanying documentation shall be only those set forth in this Agreement. 10. GOVERNING LAW. This agreement is governed by the substantive and procedural laws of California. You and Oracle agree to submit to the exclusive jurisdiction of, and venue in, the courts of San Francisco, or Santa Clara counties in California in any dispute arising out of or relating to this agreement. 11. SEVERABILITY. If any provision of this Agreement is held to be unenforceable, this Agreement will remain in effect with the provision omitted, unless omission would frustrate the intent of the parties, in which case this Agreement will immediately terminate. 12. INTEGRATION. This Agreement is the entire agreement between you and Oracle relating to its subject matter. It supersedes all prior or contemporaneous oral or written communications, proposals, representations and warranties and prevails over any conflicting or additional terms of any quote, order, acknowledgment, or other communication between the parties relating to its subject matter during the term of this Agreement. No modification of this Agreement will be binding, unless in writing and signed by an authorized representative of each party. SUPPLEMENTAL LICENSE TERMS These Supplemental License Terms add to or modify the terms of the Binary Code License Agreement. Capitalized terms not defined in these Supplemental Terms shall have the same meanings ascribed to them in the Binary Code License Agreement. These Supplemental Terms shall supersede any inconsistent or conflicting terms in the Binary Code License Agreement, or in any license contained within the Software. A. COMMERCIAL FEATURES. You may not use the Commercial Features for running Programs, Java applets or applications in your internal business operations or for any commercial or production purpose, or for any purpose other than as set forth in Sections B, C, D and E of these Supplemental Terms. If You want to use the Commercial Features for any purpose other than as permitted in this Agreement, You must obtain a separate license from Oracle. B. SOFTWARE INTERNAL USE FOR DEVELOPMENT LICENSE GRANT. Subject to the terms and conditions of this Agreement and restrictions and exceptions set forth in the README File incorporated herein by reference, including, but not limited to the Java Technology Restrictions of these Supplemental Terms, Oracle grants you a non-exclusive, non-transferable, limited license without fees to reproduce internally and use internally the Software complete and unmodified for the purpose of designing, developing, and testing your Programs. C. LICENSE TO DISTRIBUTE SOFTWARE. Subject to the terms and conditions of this Agreement and restrictions and exceptions set forth in the README File, including, but not limited to the Java Technology Restrictions of these Supplemental Terms, Oracle grants you a non-exclusive, non-transferable, limited license without fees to reproduce and distribute the Software, provided that (i) you distribute the Software complete and unmodified and only bundled as part of, and for the sole purpose of running, your Programs, (ii) the Programs add significant and primary functionality to the Software, (iii) you do not distribute additional software intended to replace any component(s) of the Software, (iv) you do not remove or alter any proprietary legends or notices contained in the Software, (v) you only distribute the Software subject to a license agreement that: (a) is a complete, unmodified reproduction of this Agreement; or (b) protects Oracle's interests consistent with the terms contained in this Agreement and that includes the notice set forth in Section G, and (vi) you agree to defend and indemnify Oracle and its licensors from and against any damages, costs, liabilities, settlement amounts and/or expenses (including attorneys' fees) incurred in connection with any claim, lawsuit or action by any third party that arises or results from the use or distribution of any and all Programs and/or Software. D. LICENSE TO DISTRIBUTE REDISTRIBUTABLES. Subject to the terms and conditions of this Agreement and restrictions and exceptions set forth in the README File, including but not limited to the Java Technology Restrictions of these Supplemental Terms, Oracle grants you a non-exclusive, non-transferable, limited license without fees to reproduce and distribute those files specifically identified as redistributable in the README File ("Redistributables") provided that: (i) you distribute the Redistributables complete and unmodified, and only bundled as part of Programs, (ii) the Programs add significant and primary functionality to the Redistributables, (iii) you do not distribute additional software intended to supersede any component(s) of the Redistributables (unless otherwise specified in the applicable README File), (iv) you do not remove or alter any proprietary legends or notices contained in or on the Redistributables, (v) you only distribute the Redistributables pursuant to a license agreement that: (a) is a complete, unmodified reproduction of this Agreement; or (b) protects Oracle's interests consistent with the terms contained in the Agreement and includes the notice set forth in Section G, (vi) you agree to defend and indemnify Oracle and its licensors from and against any damages, costs, liabilities, settlement amounts and/or expenses (including attorneys' fees) incurred in connection with any claim, lawsuit or action by any third party that arises or results from the use or distribution of any and all Programs and/or Software. E. DISTRIBUTION BY PUBLISHERS. This section pertains to your distribution of the JavaTM SE Development Kit Software with your printed book or magazine (as those terms are commonly used in the industry) relating to Java technology ("Publication"). Subject to and conditioned upon your compliance with the restrictions and obligations contained in the Agreement, Oracle hereby grants to you a non-exclusive, nontransferable limited right to reproduce complete and unmodified copies of the Software on electronic media (the "Media") for the sole purpose of inclusion and distribution with your Publication(s), subject to the following terms: (i) You may not distribute the Software on a stand-alone basis; it must be distributed with your Publication(s); (ii) You are responsible for downloading the Software from the applicable Oracle web site; (iii) You must refer to the Software as JavaTM SE Development Kit; (iv) The Software must be reproduced in its entirety and without any modification whatsoever (including with respect to all proprietary notices) and distributed with your Publication subject to a license agreement that is a complete, unmodified reproduction of this Agreement; (v) The Media label shall include the following information: Copyright 2011, Oracle America, Inc. All rights reserved. Use is subject to license terms. ORACLE and JAVA trademarks and all ORACLE- and JAVA-related trademarks, service marks, logos and other brand designations are trademarks or registered trademarks of Oracle in the U.S. and other countries. This information must be placed on the Media label in such a manner as to only apply to the Oracle Software; (vi) You must clearly identify the Software as Oracle's product on the Media holder or Media label, and you may not state or imply that Oracle is responsible for any third-party software contained on the Media; (vii) You may not include any third party software on the Media which is intended to be a replacement or substitute for the Software; (viii) You agree to defend and indemnify Oracle and its licensors from and against any damages, costs, liabilities, settlement amounts and/or expenses (including attorneys' fees) incurred in connection with any claim, lawsuit or action by any third party that arises or results from the use or distribution of the Software and/or the Publication; ; and (ix) You shall provide Oracle with a written notice for each Publication; such notice shall include the following information: (1) title of Publication, (2) author(s), (3) date of Publication, and (4) ISBN or ISSN numbers. Such notice shall be sent to Oracle America, Inc., 500 Oracle Parkway, Redwood Shores, California 94065 U.S.A , Attention: General Counsel. F. JAVA TECHNOLOGY RESTRICTIONS. You may not create, modify, or change the behavior of, or authorize your licensees to create, modify, or change the behavior of, classes, interfaces, or subpackages that are in any way identified as "java", "javax", "sun", ?oracle? or similar convention as specified by Oracle in any naming convention designation. G. COMMERCIAL FEATURES NOTICE. For purpose of complying with Supplemental Term Section C.(v)(b) and D.(v)(b), your license agreement shall include the following notice, where the notice is displayed in a manner that anyone using the Software will see the notice: Use of the Commercial Features for any commercial or production purpose requires a separate license from Oracle. ?Commercial Features? means those features identified Table 1-1 (Commercial Features In Java SE Product Editions) of the Software documentation accessible at http://www.oracle.com/technetwork/java/javase/documentation/index.html H. SOURCE CODE. Software may contain source code that, unless expressly licensed for other purposes, is provided solely for reference purposes pursuant to the terms of this Agreement. Source code may not be redistributed unless expressly provided for in this Agreement. I. THIRD PARTY CODE. Additional copyright notices and license terms applicable to portions of the Software are set forth in the THIRDPARTYLICENSEREADME file accessible at http://www.oracle.com/technetwork/java/javase/documentation/index.html. In addition to any terms and conditions of any third party opensource/freeware license identified in the THIRDPARTYLICENSEREADME file, the disclaimer of warranty and limitation of liability provisions in paragraphs 4 and 5 of the Binary Code License Agreement shall apply to all Software in this distribution. J. TERMINATION FOR INFRINGEMENT. Either party may terminate this Agreement immediately should any Software become, or in either party's opinion be likely to become, the subject of a claim of infringement of any intellectual property right. K. INSTALLATION AND AUTO-UPDATE. The Software's installation and auto-update processes transmit a limited amount of data to Oracle (or its service provider) about those specific processes to help Oracle understand and optimize them. Oracle does not associate the data with personally identifiable information. You can find more information about the data Oracle collects as a result of your Software download at http://www.oracle.com/technetwork/java/javase/documentation/index.html. For inquiries please contact: Oracle America, Inc., 500 Oracle Parkway, Redwood Shores, California 94065, USA. Last updated May 17, 2011 Do you agree with the terms of the software license agreement? [N] y <Digite a tecla y para concordar>
Checking for prerequisites... FOUND: NPTL FOUND: netcat-openbsd-1.89-4ubuntu1 FOUND: sudo-1.8.3p1-1ubuntu3.4 FOUND: libidn11-1.23-2 FOUND: libpcre3-8.12-4 FOUND: libgmp3c2-2:4.3.2+dfsg-2ubuntu1 FOUND: libexpat1-2.0.1-7.2ubuntu1.1 FOUND: libstdc++6-4.6.3-1ubuntu5 FOUND: libperl5.14-5.14.2-6ubuntu2.5 Checking for suggested prerequisites... FOUND: pax FOUND: perl-5.14.2 FOUND: sysstat FOUND: sqlite3 Prerequisite check complete. Checking for installable packages Found zimbra-core Found zimbra-ldap Found zimbra-logger Found zimbra-mta Found zimbra-snmp Found zimbra-store Found zimbra-apache Found zimbra-spell Found zimbra-memcached Found zimbra-proxy The Zimbra Collaboration Server does not appear to be installed, yet there appears to be a ZCS directory structure in /opt/zimbra. Would you like to delete /opt/zimbra before installing? [N] <Tecle Enter para não remover o diretório /opt/zimbra>
Select the packages to install Install zimbra-ldap [Y] <Tecle Enter para aceitar esta opção> Install zimbra-logger [Y] <Tecle Enter para aceitar esta opção> Install zimbra-mta [Y] <Tecle Enter para aceitar esta opção> Install zimbra-snmp [Y] <Tecle Enter para aceitar esta opção> Install zimbra-store [Y] <Tecle Enter para aceitar esta opção> Install zimbra-apache [Y] <Tecle Enter para aceitar esta opção> Install zimbra-spell [Y] <Tecle Enter para aceitar esta opção> Install zimbra-memcached [N] <Tecle Enter para aceitar esta opção> Install zimbra-proxy [N] <Tecle Enter para aceitar esta opção> Checking required space for zimbra-core Checking space for zimbra-store Installing: zimbra-core zimbra-ldap zimbra-logger zimbra-mta zimbra-snmp zimbra-store zimbra-apache zimbra-spell The system will be modified. Continue? [N] y <Tecle y para continuar a instalação>
Shutting down zimbra mail
Removing existing packages
Removing deployed webapp directories
Installing packages
zimbra-core......zimbra-core_8.0.6.GA.5922.UBUNTU12.64_amd64.deb...done
zimbra-ldap......zimbra-ldap_8.0.6.GA.5922.UBUNTU12.64_amd64.deb...done
zimbra-logger......zimbra-logger_8.0.6.GA.5922.UBUNTU12.64_amd64.deb...done
zimbra-mta......zimbra-mta_8.0.6.GA.5922.UBUNTU12.64_amd64.deb...done
zimbra-snmp......zimbra-snmp_8.0.6.GA.5922.UBUNTU12.64_amd64.deb...done
zimbra-store......zimbra-store_8.0.6.GA.5922.UBUNTU12.64_amd64.deb...done
zimbra-apache......zimbra-apache_8.0.6.GA.5922.UBUNTU12.64_amd64.deb...done
zimbra-spell......zimbra-spell_8.0.6.GA.5922.UBUNTU12.64_amd64.deb...done
Operations logged to /tmp/zmsetup.06102016-125219.log
Installing LDAP configuration database...done.
Setting defaults...
DNS ERROR resolving MX for mail.exemplo.org
It is suggested that the domain name have an MX record configured in DNS
Change domain name? [Yes] yes <Digite yes para modificar o domínio>
Create domain: [mail.exemplo.org] exemplo.org <digite o domínio> MX: mail.exemplo.org (192.0.2.5) Interface: 127.0.0.1 Interface: ::1 Interface: 192.0.2.5 done.
Checking for port conflicts Main menu 1) Common Configuration: 2) zimbra-ldap: Enabled 3) zimbra-store: Enabled +Create Admin User: yes +Admin user to create: admin@exemplo.org ******* +Admin Password UNSET +Anti-virus quarantine user: virus-quarantine._yycmtjbbu@exemplo.org +Enable automated spam training: yes +Spam training user: spam.fz4idfiqde@exemplo.org +Non-spam(Ham) training user: ham.63ezktxagn@exemplo.org +SMTP host: mail.exemplo.org +Web server HTTP port: 80 +Web server HTTPS port: 443 +Web server mode: https +IMAP server port: 143 +IMAP server SSL port: 993 +POP server port: 110 +POP server SSL port: 995 +Use spell check server: yes +Spell server URL: http://mail.exemplo.org:7780/aspell.php +Configure for use with mail proxy: FALSE +Configure for use with web proxy: FALSE +Enable version update checks: TRUE +Enable version update notifications: TRUE +Version update notification email: admin@exemplo.org +Version update source email: admin@exemplo.org 4) zimbra-mta: Enabled 5) zimbra-snmp: Enabled 6) zimbra-logger: Enabled 7) zimbra-spell: Enabled 8) Default Class of Service Configuration: r) Start servers after configuration yes s) Save config to file x) Expand menu q) Quit Address unconfigured (**) items (? - help) 3 <Digite 3 para definir uma senha para o admin>
Store configuration 1) Status: Enabled 2) Create Admin User: yes 3) Admin user to create: admin@exemplo.org ** 4) Admin Password UNSET 5) Anti-virus quarantine user: virus-quarantine._yycmtjbbu@exemplo.org 6) Enable automated spam training: yes 7) Spam training user: spam.fz4idfiqde@exemplo.org 8) Non-spam(Ham) training user: ham.63ezktxagn@exemplo.org 9) SMTP host: mail.exemplo.org 10) Web server HTTP port: 80 11) Web server HTTPS port: 443 12) Web server mode: https 13) IMAP server port: 143 14) IMAP server SSL port: 993 15) POP server port: 110 16) POP server SSL port: 995 17) Use spell check server: yes 18) Spell server URL: http://mail.exemplo.org:7780/aspell.php 19) Configure for use with mail proxy: FALSE 20) Configure for use with web proxy: FALSE 21) Enable version update checks: TRUE 22) Enable version update notifications: TRUE 23) Version update notification email: admin@exemplo.org 24) Version update source email: admin@exemplo.org Select, or 'r' for previous menu [r] 4 <Escolha 4 para setar a senha>
Password for admin@exemplo.org (min 6 characters): [FH0jwCyo] zimbra123 <Entre com a senha e aperte <ENTER>>
Store configuration 1) Status: Enabled 2) Create Admin User: yes 3) Admin user to create: admin@exemplo.org 4) Admin Password set 5) Anti-virus quarantine user: virus-quarantine._yycmtjbbu@exemplo.org 6) Enable automated spam training: yes 7) Spam training user: spam.fz4idfiqde@exemplo.org 8) Non-spam(Ham) training user: ham.63ezktxagn@exemplo.org 9) SMTP host: mail.exemplo.org 10) Web server HTTP port: 80 11) Web server HTTPS port: 443 12) Web server mode: https 13) IMAP server port: 143 14) IMAP server SSL port: 993 15) POP server port: 110 16) POP server SSL port: 995 17) Use spell check server: yes 18) Spell server URL: http://mail.exemplo.org:7780/aspell.php 19) Configure for use with mail proxy: FALSE 20) Configure for use with web proxy: FALSE 21) Enable version update checks: TRUE 22) Enable version update notifications: TRUE 23) Version update notification email: admin@exemplo.org 24) Version update source email: admin@exemplo.org Select, or 'r' for previous menu [r] r <digitamos r para retornar>
Main menu 1) Common Configuration: 2) zimbra-ldap: Enabled 3) zimbra-store: Enabled 4) zimbra-mta: Enabled 5) zimbra-snmp: Enabled 6) zimbra-logger: Enabled 7) zimbra-spell: Enabled 8) Default Class of Service Configuration: r) Start servers after configuration yes s) Save config to file x) Expand menu q) Quit *** CONFIGURATION COMPLETE - press 'a' to apply Select from menu, or press 'a' to apply config (? - help) a <Digite "a" para aplicar as configurações>
Save configuration data to a file? [Yes] <ENTER para continuar> Save config in file: [/opt/zimbra/config.9003] <ENTER para continuar> Saving config in /opt/zimbra/config.9003...done. The system will be modified - continue? [No] yes <yes para continuar>
Operations logged to /tmp/zmsetup.06102016-125219.log Setting local config values...done. Initializing core config...Setting up CA...done. Deploying CA to /opt/zimbra/conf/ca ...done. Creating SSL zimbra-store certificate...done. Creating new zimbra-ldap SSL certificate...done. Creating new zimbra-mta SSL certificate...done. Installing mailboxd SSL certificates...done. Installing MTA SSL certificates...done. Installing LDAP SSL certificate...done. Initializing ldap...done. Setting replication password...done. Setting Postfix password...done. Setting amavis password...done. Setting nginx password...done. Creating server entry for mail.exemplo.org...done. Setting Zimbra IP Mode...done. Saving CA in ldap ...done. Saving SSL Certificate in ldap ...done. Setting spell check URL...done. Setting service ports on mail.exemplo.org...done. Adding mail.exemplo.org to zimbraMailHostPool in default COS...done. Setting zimbraFeatureTasksEnabled=TRUE...done. Setting zimbraFeatureBriefcasesEnabled=FALSE...done. Setting MTA auth host...done. Setting TimeZone Preference...done. Initializing mta config...done. Setting services on mail.exemplo.org...done. Creating domain exemplo.org...done. Setting default domain name...done. Creating domain exemplo.org...already exists. Creating admin account admin@exemplo.org...done. Creating root alias...done. Creating postmaster alias...done. Creating user spam.fz4idfiqde@exemplo.org...done. Creating user ham.63ezktxagn@exemplo.org...done. Creating user virus-quarantine._yycmtjbbu@exemplo.org...done. Setting spam training and Anti-virus quarantine accounts...done. Initializing store sql database...done. Setting zimbraSmtpHostname for mail.exemplo.org...done. Configuring SNMP...done. Setting up syslog.conf...done. Starting servers...done. Installing common zimlets... com_zimbra_proxy_config...done. com_zimbra_tooltip...done. com_zimbra_phone...done. com_zimbra_attachmail...done. com_zimbra_cert_manager...done. com_zimbra_attachcontacts...done. com_zimbra_adminversioncheck...done. com_zimbra_date...done. com_zimbra_webex...done. com_zimbra_url...done. com_zimbra_viewmail...done. com_zimbra_clientuploader...done. com_zimbra_srchhighlighter...done. com_zimbra_ymemoticons...done. com_zimbra_email...done. com_zimbra_bulkprovision...done. Finished installing common zimlets. Restarting mailboxd...done. Creating galsync account for default domain...done. You have the option of notifying Zimbra of your installation. This helps us to track the uptake of the Zimbra Collaboration Server. The only information that will be transmitted is: The VERSION of zcs installed (8.0.6_GA_5922_UBUNTU12_64) The ADMIN EMAIL ADDRESS created (admin@exemplo.org) Notify Zimbra of your installation? [Yes] no <Escolhe yes caso queira notificar sobre ainstalação>
Notification skipped Setting up zimbra crontab...done. Moving /tmp/zmsetup.06102016-125219.log to /opt/zimbra/log Configuration complete - press return to exit <Pressione ENTER para sair do instalador>
root@mail:~# service zimbra status
Host mail.exemplo.org
antispam Running
antivirus Running
ldap Running
logger Running
mailbox Running
mta Running
opendkim Running
snmp Running
spell Running
stats Running
zmconfigd Running
| Porta | Serviço |
|---|---|
| 25 | smtp [Posfix] - Entrada de e-mail |
| 80 | http [Mailbox] - Webmail |
| 110 | pop3 [Mailbox] |
| 143 | imap [Mailbox] |
| 389 | ldap [LDAP] |
| 443 | https [Mailbox] - Webmail over ssl |
| 465 | smtps [Postfix] - Entrada de e-mail over ssl (somente Outlook) |
| 587 | smtp [Postfix] - Porta de submissão |
| 636 | ldaps [ldaps] |
| 993 | imaps [Mailbox] - Imap over ssl |
| 995 | pops [Mailbox] - Pop over ssl |
| 7025 | lmtp [Mailbox] - Entrega Local |
| 7071 | https [Mailbox] - AdminConsole |
| 7306 | mysql [Mailbox] |
| 7307 | http [Mailbox] - Corretor ortográfico |
| 10024 | smtp [MTA] - Do Postfix para o Amavis |
| 10025 | smtp [MTA] - Volta do Amavis para o Postfix |
root@mail:~# netstat -nltup Conexões Internet Ativas (somente servidores) Proto Recv-Q Send-Q Endereço Local Endereço Remoto Estado PID/Program name tcp 0 0 0.0.0.0:443 0.0.0.0:* OUÇA 28218/java tcp 0 0 0.0.0.0:7071 0.0.0.0:* OUÇA 28218/java tcp 0 0 0.0.0.0:7072 0.0.0.0:* OUÇA 28218/java tcp 0 0 0.0.0.0:993 0.0.0.0:* OUÇA 28218/java tcp 0 0 0.0.0.0:995 0.0.0.0:* OUÇA 28218/java tcp 0 0 127.0.0.1:7171 0.0.0.0:* OUÇA 22707/java tcp 0 0 0.0.0.0:7780 0.0.0.0:* OUÇA 24339/httpd tcp 0 0 192.0.2.5:389 0.0.0.0:* OUÇA 22587/slapd tcp 0 0 127.0.0.1:10663 0.0.0.0:* OUÇA 25775/zmlogger: zmr tcp 0 0 127.0.0.1:10024 0.0.0.0:* OUÇA 23968/amavisd (mast tcp 0 0 127.0.0.1:10025 0.0.0.0:* OUÇA 24636/master tcp 0 0 127.0.0.1:10026 0.0.0.0:* OUÇA 23968/amavisd (mast tcp 0 0 127.0.0.1:7306 0.0.0.0:* OUÇA 23737/mysqld tcp 0 0 127.0.0.1:10027 0.0.0.0:* OUÇA 24636/master tcp 0 0 0.0.0.0:587 0.0.0.0:* OUÇA 24636/master tcp 0 0 127.0.0.1:10028 0.0.0.0:* OUÇA 24636/master tcp 0 0 127.0.0.1:10029 0.0.0.0:* OUÇA 24636/master tcp 0 0 0.0.0.0:110 0.0.0.0:* OUÇA 28218/java tcp 0 0 127.0.0.1:10030 0.0.0.0:* OUÇA 24636/master tcp 0 0 0.0.0.0:143 0.0.0.0:* OUÇA 28218/java tcp 0 0 0.0.0.0:111 0.0.0.0:* OUÇA 714/rpcbind tcp 0 0 127.0.0.1:80 0.0.0.0:* OUÇA 28218/java tcp 0 0 127.0.0.1:10032 0.0.0.0:* OUÇA 23968/amavisd (mast tcp 0 0 0.0.0.0:7025 0.0.0.0:* OUÇA 28218/java tcp 0 0 0.0.0.0:465 0.0.0.0:* OUÇA 24636/master tcp 0 0 127.0.0.1:8465 0.0.0.0:* OUÇA 24123/opendkim tcp 0 0 0.0.0.0:54578 0.0.0.0:* OUÇA 743/rpc.statd tcp 0 0 192.0.2.5:53 0.0.0.0:* OUÇA 978/named tcp 0 0 127.0.0.1:53 0.0.0.0:* OUÇA 978/named tcp 0 0 0.0.0.0:22 0.0.0.0:* OUÇA 860/sshd tcp 0 0 0.0.0.0:25 0.0.0.0:* OUÇA 24636/master tcp 0 0 127.0.0.1:953 0.0.0.0:* OUÇA 978/named tcp6 0 0 :::111 :::* OUÇA 714/rpcbind tcp6 0 0 :::53 :::* OUÇA 978/named tcp6 0 0 :::22 :::* OUÇA 860/sshd tcp6 0 0 ::1:953 :::* OUÇA 978/named tcp6 0 0 :::60185 :::* OUÇA 743/rpc.statd udp 0 0 0.0.0.0:35628 0.0.0.0:* 28218/java udp 0 0 0.0.0.0:886 0.0.0.0:* 714/rpcbind udp 0 0 127.0.0.1:919 0.0.0.0:* 743/rpc.statd udp 0 0 0.0.0.0:34719 0.0.0.0:* 22707/java udp 0 0 0.0.0.0:47015 0.0.0.0:* 743/rpc.statd udp 0 0 192.0.2.5:53 0.0.0.0:* 978/named udp 0 0 127.0.0.1:53 0.0.0.0:* 978/named udp 0 0 0.0.0.0:111 0.0.0.0:* 714/rpcbind udp6 0 0 :::55866 :::* 743/rpc.statd udp6 0 0 :::886 :::* 714/rpcbind udp6 0 0 :::53 :::* 978/named udp6 0 0 :::111 :::* 714/rpcbind
root@mail:~# ls -lh /opt/zimbra/ total 204K lrwxrwxrwx 1 root root 28 Jun 10 12:49 altermime -> /opt/zimbra/altermime-0.3.10 drwxr-xr-x 3 root root 4,0K Jun 10 12:49 altermime-0.3.10 lrwxrwxrwx 1 root root 29 Jun 10 12:49 amavisd -> /opt/zimbra/amavisd-new-2.8.0 drwxrwxr-x 4 root root 4,0K Jun 10 12:49 amavisd-new-2.8.0 lrwxrwxrwx 1 root root 27 Jun 10 12:52 aspell -> /opt/zimbra/aspell-0.60.6.1 drwxr-xr-x 6 root root 4,0K Jun 10 12:52 aspell-0.60.6.1 drwxr-xr-x 2 zimbra zimbra 4,0K Jun 10 12:48 backup lrwxrwxrwx 1 root root 22 Jun 10 12:48 bdb -> /opt/zimbra/bdb-5.2.36 drwxr-xr-x 6 root root 4,0K Jun 10 12:47 bdb-5.2.36 drwxrwxr-x 2 root root 4,0K Jun 10 12:48 bin lrwxrwxrwx 1 root root 32 Jun 10 12:49 cbpolicyd -> /opt/zimbra/cbpolicyd-2.1.0-beta drwxr-xr-x 5 root root 4,0K Jun 10 12:49 cbpolicyd-2.1.0-beta lrwxrwxrwx 1 root root 25 Jun 10 12:49 clamav -> /opt/zimbra/clamav-0.97.8 drwxr-xr-x 9 root root 4,0K Jun 10 12:48 clamav-0.97.8 drwxrwxr-x 13 zimbra zimbra 4,0K Jun 10 13:30 conf -rw------- 1 root root 2,3K Jun 10 13:07 config.9003 drwxrwxr-x 2 root root 4,0K Jun 10 12:48 contrib lrwxrwxrwx 1 root root 23 Jun 10 12:48 curl -> /opt/zimbra/curl-7.31.0 drwxr-xr-x 6 root root 4,0K Jun 10 12:47 curl-7.31.0 lrwxrwxrwx 1 root root 32 Jun 10 12:48 cyrus-sasl -> /opt/zimbra/cyrus-sasl-2.1.26.2z drwxr-xr-x 6 root root 4,0K Jun 10 12:48 cyrus-sasl-2.1.26.2z drwxr-xr-x 13 zimbra zimbra 4,0K Jun 10 12:52 data drwxr-xr-x 4 zimbra zimbra 4,0K Jun 10 13:13 db drwxr-xr-x 2 zimbra zimbra 4,0K Jun 10 12:48 docs lrwxrwxrwx 1 root root 24 Jun 10 12:49 dspam -> /opt/zimbra/dspam-3.10.2 drwxr-xr-x 7 root root 4,0K Jun 10 12:48 dspam-3.10.2 drwxr-xr-x 3 zimbra zimbra 4,0K Jun 10 12:50 extensions-extra drwxr-xr-x 2 zimbra zimbra 4,0K Jun 10 12:52 fbqueue lrwxrwxrwx 1 root root 25 Jun 10 12:48 heimdal -> /opt/zimbra/heimdal-1.5.2 drwxr-xr-x 7 root root 4,0K Jun 10 12:47 heimdal-1.5.2 lrwxrwxrwx 1 root root 23 Jun 10 12:52 httpd -> /opt/zimbra/httpd-2.4.4 drwxr-xr-x 15 root root 4,0K Jun 10 12:52 httpd-2.4.4 drwxr-xr-x 3 zimbra zimbra 4,0K Jun 10 13:14 index lrwxrwxrwx 1 root root 24 Jun 10 12:48 java -> /opt/zimbra/jdk-1.7.0_45 drwxr-xr-x 8 root root 4,0K Jun 10 12:48 jdk-1.7.0_45 lrwxrwxrwx 1 root root 47 Jun 10 12:52 jetty -> /opt/zimbra/jetty-distribution-7.6.12.v20130726 drwxrwxr-x 15 root root 4,0K Jun 10 12:52 jetty-distribution-7.6.12.v20130726 drwxrwxr-x 4 root root 4,0K Jun 10 12:52 lib drwxrwxr-x 4 root root 4,0K Jun 10 12:52 libexec lrwxrwxrwx 1 root root 30 Jun 10 12:49 libmemcached -> /opt/zimbra/libmemcached-1.0.6 drwxr-xr-x 6 root root 4,0K Jun 10 12:48 libmemcached-1.0.6 lrwxrwxrwx 1 root root 26 Jun 10 12:48 libtool -> /opt/zimbra/libtool-2.2.6b drwxr-xr-x 6 root root 4,0K Jun 10 12:48 libtool-2.2.6b drwxr-xr-x 2 zimbra zimbra 4,0K Jun 10 13:32 log drwxrwxr-x 3 zimbra zimbra 4,0K Jun 10 12:47 logger drwx------ 2 root root 16K Jan 13 2014 lost+found lrwxrwxrwx 1 root root 47 Jun 10 12:52 mailboxd -> /opt/zimbra/jetty-distribution-7.6.12.v20130726 drwxr-xr-x 3 root root 4,0K Jun 10 12:49 mta lrwxrwxrwx 1 root root 59 Jun 10 12:48 mysql -> /opt/zimbra/mysql-standard-5.5.32-pc-linux-gnu-i686-glibc23 drwxrwxr-x 8 root root 4,0K Jun 10 12:51 mysql-standard-5.5.32-pc-linux-gnu-i686-glibc23 lrwxrwxrwx 1 root root 26 Jun 10 12:49 net-snmp -> /opt/zimbra/net-snmp-5.7.2 drwxr-xr-x 9 root root 4,0K Jun 10 12:49 net-snmp-5.7.2 lrwxrwxrwx 1 root root 26 Jun 10 12:49 opendkim -> /opt/zimbra/opendkim-2.8.4 drwxr-xr-x 6 root root 4,0K Jun 10 12:48 opendkim-2.8.4 lrwxrwxrwx 1 root root 30 Jun 10 12:48 openldap -> /opt/zimbra/openldap-2.4.38.2z drwxrwxr-x 9 root root 4,0K Jun 10 12:48 openldap-2.4.38.2z lrwxrwxrwx 1 root root 26 Jun 10 12:48 openssl -> /opt/zimbra/openssl-1.0.1e drwxr-xr-x 6 root root 4,0K Jun 10 12:47 openssl-1.0.1e lrwxrwxrwx 1 root root 29 Jun 10 12:49 postfix -> /opt/zimbra/postfix-2.10.1.2z drwxr-xr-x 6 root root 4,0K Jun 10 12:48 postfix-2.10.1.2z drwxr-xr-x 3 zimbra zimbra 4,0K Jun 10 13:15 redolog lrwxrwxrwx 1 root root 23 Jun 10 12:48 rsync -> /opt/zimbra/rsync-3.0.9 drwxr-xr-x 4 root root 4,0K Jun 10 12:48 rsync-3.0.9 lrwxrwxrwx 1 root root 26 Jun 10 12:49 snmp -> /opt/zimbra/net-snmp-5.7.2 drwxr-xr-x 6 zimbra zimbra 4,0K Jun 10 13:07 ssl drwxr-xr-x 5 zimbra zimbra 4,0K Jun 10 13:14 store lrwxrwxrwx 1 root root 24 Jun 10 12:48 tcmalloc -> /opt/zimbra/tcmalloc-2.1 drwxr-xr-x 5 root root 4,0K Jun 10 12:48 tcmalloc-2.1 lrwxrwxrwx 1 root root 24 Jun 10 12:49 zeromq -> /opt/zimbra/zeromq-3.2.3 drwxr-xr-x 5 root root 4,0K Jun 10 12:49 zeromq-3.2.3 drwxrwxr-x 7 root root 4,0K Jun 10 12:48 zimbramon drwxrwxr-x 2 zimbra zimbra 4,0K Jun 10 12:52 zimlets drwxr-xr-x 18 zimbra zimbra 4,0K Jun 10 13:15 zimlets-deployed drwxr-xr-x 3 zimbra zimbra 4,0K Jun 10 13:16 zmstat
root@mail:~# id zimbra uid=999(zimbra) gid=999(zimbra) grupos=999(zimbra),4(adm),5(tty),998(postfix)
root@mail:~# grep zimbra /etc/sudoers %zimbra ALL=NOPASSWD:/opt/zimbra/libexec/zmstat-fd * %zimbra ALL=NOPASSWD:/opt/zimbra/openldap/libexec/slapd %zimbra ALL=NOPASSWD:/opt/zimbra/libexec/zmslapd %zimbra ALL=NOPASSWD:/opt/zimbra/postfix/sbin/postfix, /opt/zimbra/postfix/sbin/postalias, /opt/zimbra/postfix/sbin/qshape.pl, /opt/zimbra/postfix/sbin/postconf,/opt/zimbra/postfix/sbin/postsuper %zimbra ALL=NOPASSWD:/opt/zimbra/libexec/zmqstat,/opt/zimbra/libexec/zmmtastatus %zimbra ALL=NOPASSWD:/opt/zimbra/libexec/zmmailboxdmgr %zimbra ALL=NOPASSWD:/opt/zimbra/bin/zmcertmgr
root@mail:~# su - zimbra zimbra@mail:~$ crontab -l # ZIMBRASTART -- DO NOT EDIT ANYTHING BETWEEN THIS LINE AND ZIMBRAEND # # Log pruning # 30 2 * * * find /opt/zimbra/log/ -type f -name \*.log\* -mtime +8 -exec rm {} \; > /dev/null 2>&1 35 2 * * * find /opt/zimbra/log/ -type f -name \*.out.???????????? -mtime +8 -exec rm {} \; > /dev/null 2>&1 # # compress logs manually to avoid application pauses when # handled through the log4j thread # 50 2 * * * /opt/zimbra/libexec/zmcompresslogs > /dev/null 2>&1 # # tmp dir cleaning # 40 2 * * * /opt/zimbra/libexec/zmcleantmp # # Status logging # */2 * * * * /opt/zimbra/libexec/zmstatuslog > /dev/null 2>&1 #*/10 * * * * /opt/zimbra/libexec/zmdisklog > /dev/null 2>&1 # # SSL Certificate Expiration Checks # 0 0 1 * * /opt/zimbra/libexec/zmcheckexpiredcerts -days 30 -email # # Backups # # BACKUP BEGIN # BACKUP END # # crontab.ldap # # Monitor MDB database size */30 * * * * /opt/zimbra/libexec/zmldapmonitordb > /dev/null 2>&1 # # # crontab.store # # Log pruning # 30 2 * * * find /opt/zimbra/mailboxd/logs/ -type f -name \*log\* -mtime +8 -exec rm {} \; > /dev/null 2>&1 30 2 * * * find /opt/zimbra/log/ -type f -name stacktrace.\* -mtime +8 -exec rm {} \; > /dev/null 2>&1 # # Report on any database inconsistencies # 0 23 * * 7 /opt/zimbra/libexec/zmdbintegrityreport -m # # Monitor for multiple mysqld to prevent corruption # #*/5 * * * * /opt/zimbra/libexec/zmcheckduplicatemysqld -e > /dev/null 2>&1 # # Check zimbraVersionCheckURL for new update. # Only runs if this server matches zimbraVersionCheckServer # Only executes on zimbraVersionCheckInterval. min 2h interval # 18 */2 * * * /opt/zimbra/libexec/zmcheckversion -c >> /dev/null 2>&1 # # Invoke "ComputeAggregateQuotaUsageRequest" periodically # 15 2 * * * /opt/zimbra/libexec/zmcomputequotausage > /dev/null 2>&1 # # Invoke "client_usage_report.py" periodically to process /opt/zimbra/log/access_log* files # 55 1 * * * /opt/zimbra/libexec/client_usage_report.py > /dev/null 2>&1 # # Run zmgsaupdate util to trickeSync galsync accounts # 49 0 * * 7 /opt/zimbra/libexec/zmgsaupdate > /dev/null 2>&1 # # crontab.logger # # process logs # 00,10,20,30,40,50 * * * * /opt/zimbra/libexec/zmlogprocess > /tmp/logprocess.out 2>&1 # # Graph generation # #10 * * * * /opt/zimbra/libexec/zmgengraphs >> /tmp/gengraphs.out 2>&1 # # Daily reports # 30 23 * * * /opt/zimbra/libexec/zmdailyreport -m # # crontab.mta # # # Queue logging # 0,10,20,30,40,50 * * * * /opt/zimbra/libexec/zmqueuelog # # Spam training # 0 22 * * * /opt/zimbra/bin/zmtrainsa >> /opt/zimbra/log/spamtrain.log 2>&1 # # Spam training cleanup # 45 23 * * * /opt/zimbra/bin/zmtrainsa --cleanup >> /opt/zimbra/log/spamtrain.log 2>&1 # # Spam rule updates # 45 0 * * * . /opt/zimbra/.bashrc; /opt/zimbra/libexec/zmsaupdate # # Dspam cleanup # 0 1 * * * [ -d /opt/zimbra/data/dspam/data/z/i/zimbra/zimbra.sig ] && find /opt/zimbra/data/dspam/data/z/i/zimbra/zimbra.sig/ -type f -name \*sig -mtime +7 -exec rm {} \; > /dev/null 2>&1 8 4 * * * [ -f /opt/zimbra/data/dspam/system.log ] && /opt/zimbra/dspam/bin/dspam_logrotate -a 60 -l /opt/zimbra/data/dspam/system.log 8 8 * * * [ -f /opt/zimbra/data/dspam/data/z/i/zimbra/zimbra.log ] && /opt/zimbra/dspam/bin/dspam_logrotate -a 60 -l /opt/zimbra/data/dspam/data/z/i/zimbra/zimbra.log # # Spam Bayes auto-expiry # 20 23 * * * /opt/zimbra/libexec/sa-learn -p /opt/zimbra/conf/salocal.cf --dbpath /opt/zimbra/data/amavisd/.spamassassin --siteconfigpath /opt/zimbra/conf/spamassassin --force-expire --sync > /dev/null 2>&1 # # Clean up amavisd/tmp # 15 5,20 * * * find /opt/zimbra/data/amavisd/tmp -maxdepth 1 -type d -name 'amavis-*' -mtime +1 -exec rm -rf {} \; > /dev/null 2>&1 # # Clean up the quarantine dir # 0 1 * * * find /opt/zimbra/data/amavisd/quarantine -type f -mtime +7 -exec rm -f {} \; > /dev/null 2>&1 # ZIMBRAEND -- DO NOT EDIT ANYTHING BETWEEN THIS LINE AND ZIMBRASTART
Exemplo:
zimbra@mail:~$ ldap status slapd running pid: 22587
root@mail:~# chown -R zimbra:zimbra /opt/zimbra root@mail:~# /opt/zimbra/libexec/zmfixperms root@mail:~# su - zimbra zimbra@mail:~$ zmcontrol restart
root@mail:~# ls -lh /opt/zimbra/ total 204K lrwxrwxrwx 1 zimbra zimbra 28 Jun 10 12:49 altermime -> /opt/zimbra/altermime-0.3.10 drwxr-xr-x 3 root root 4,0K Jun 10 12:49 altermime-0.3.10 lrwxrwxrwx 1 zimbra zimbra 29 Jun 10 12:49 amavisd -> /opt/zimbra/amavisd-new-2.8.0 drwxrwxr-x 4 root root 4,0K Jun 10 12:49 amavisd-new-2.8.0 lrwxrwxrwx 1 zimbra zimbra 27 Jun 10 12:52 aspell -> /opt/zimbra/aspell-0.60.6.1 drwxr-xr-x 6 root root 4,0K Jun 10 12:52 aspell-0.60.6.1 drwxr-xr-x 2 zimbra zimbra 4,0K Jun 10 12:48 backup lrwxrwxrwx 1 zimbra zimbra 22 Jun 10 12:48 bdb -> /opt/zimbra/bdb-5.2.36 drwxr-xr-x 6 root root 4,0K Jun 10 12:47 bdb-5.2.36 drwxrwxr-x 2 root root 4,0K Jun 10 12:48 bin lrwxrwxrwx 1 root root 32 Jun 10 12:49 cbpolicyd -> /opt/zimbra/cbpolicyd-2.1.0-beta drwxr-xr-x 5 root root 4,0K Jun 10 12:49 cbpolicyd-2.1.0-beta lrwxrwxrwx 1 zimbra zimbra 25 Jun 10 12:49 clamav -> /opt/zimbra/clamav-0.97.8 drwxr-xr-x 9 root root 4,0K Jun 10 12:48 clamav-0.97.8 drwxrwxr-x 13 zimbra zimbra 4,0K Jun 10 13:50 conf -rw------- 1 zimbra zimbra 2,3K Jun 10 13:07 config.9003 drwxrwxr-x 2 root root 4,0K Jun 10 12:48 contrib lrwxrwxrwx 1 zimbra zimbra 23 Jun 10 12:48 curl -> /opt/zimbra/curl-7.31.0 drwxr-xr-x 6 root root 4,0K Jun 10 12:47 curl-7.31.0 lrwxrwxrwx 1 zimbra zimbra 32 Jun 10 12:48 cyrus-sasl -> /opt/zimbra/cyrus-sasl-2.1.26.2z drwxr-xr-x 6 root root 4,0K Jun 10 12:48 cyrus-sasl-2.1.26.2z drwxr-xr-x 13 zimbra zimbra 4,0K Jun 10 12:52 data drwxr-xr-x 4 zimbra zimbra 4,0K Jun 10 13:50 db drwxr-xr-x 2 zimbra zimbra 4,0K Jun 10 12:48 docs lrwxrwxrwx 1 zimbra zimbra 24 Jun 10 12:49 dspam -> /opt/zimbra/dspam-3.10.2 drwxr-xr-x 7 root root 4,0K Jun 10 12:48 dspam-3.10.2 drwxr-xr-x 3 zimbra zimbra 4,0K Jun 10 12:50 extensions-extra drwxr-xr-x 2 zimbra zimbra 4,0K Jun 10 12:52 fbqueue lrwxrwxrwx 1 zimbra zimbra 25 Jun 10 12:48 heimdal -> /opt/zimbra/heimdal-1.5.2 drwxr-xr-x 7 root root 4,0K Jun 10 12:47 heimdal-1.5.2 lrwxrwxrwx 1 zimbra zimbra 23 Jun 10 12:52 httpd -> /opt/zimbra/httpd-2.4.4 drwxr-xr-x 15 root root 4,0K Jun 10 12:52 httpd-2.4.4 drwxr-xr-x 3 zimbra zimbra 4,0K Jun 10 13:14 index lrwxrwxrwx 1 zimbra zimbra 24 Jun 10 12:48 java -> /opt/zimbra/jdk-1.7.0_45 drwxr-xr-x 8 root root 4,0K Jun 10 12:48 jdk-1.7.0_45 lrwxrwxrwx 1 zimbra zimbra 47 Jun 10 12:52 jetty -> /opt/zimbra/jetty-distribution-7.6.12.v20130726 drwxrwxr-x 15 root root 4,0K Jun 10 12:52 jetty-distribution-7.6.12.v20130726 drwxrwxr-x 4 root root 4,0K Jun 10 12:52 lib drwxrwxr-x 4 root root 4,0K Jun 10 12:52 libexec lrwxrwxrwx 1 root root 30 Jun 10 12:49 libmemcached -> /opt/zimbra/libmemcached-1.0.6 drwxr-xr-x 6 root root 4,0K Jun 10 12:48 libmemcached-1.0.6 lrwxrwxrwx 1 zimbra zimbra 26 Jun 10 12:48 libtool -> /opt/zimbra/libtool-2.2.6b drwxr-xr-x 6 root root 4,0K Jun 10 12:48 libtool-2.2.6b drwxr-xr-x 2 zimbra zimbra 4,0K Jun 10 13:54 log drwxrwxr-x 3 zimbra zimbra 4,0K Jun 10 12:47 logger drwx------ 2 zimbra zimbra 16K Jan 13 2014 lost+found lrwxrwxrwx 1 zimbra zimbra 47 Jun 10 12:52 mailboxd -> /opt/zimbra/jetty-distribution-7.6.12.v20130726 drwxr-xr-x 3 root root 4,0K Jun 10 12:49 mta lrwxrwxrwx 1 zimbra zimbra 59 Jun 10 12:48 mysql -> /opt/zimbra/mysql-standard-5.5.32-pc-linux-gnu-i686-glibc23 drwxrwxr-x 8 root root 4,0K Jun 10 12:51 mysql-standard-5.5.32-pc-linux-gnu-i686-glibc23 lrwxrwxrwx 1 zimbra zimbra 26 Jun 10 12:49 net-snmp -> /opt/zimbra/net-snmp-5.7.2 drwxr-xr-x 9 root root 4,0K Jun 10 12:49 net-snmp-5.7.2 lrwxrwxrwx 1 root root 26 Jun 10 12:49 opendkim -> /opt/zimbra/opendkim-2.8.4 drwxr-xr-x 6 root root 4,0K Jun 10 12:48 opendkim-2.8.4 lrwxrwxrwx 1 zimbra zimbra 30 Jun 10 12:48 openldap -> /opt/zimbra/openldap-2.4.38.2z drwxrwxr-x 9 root root 4,0K Jun 10 12:48 openldap-2.4.38.2z lrwxrwxrwx 1 zimbra zimbra 26 Jun 10 12:48 openssl -> /opt/zimbra/openssl-1.0.1e drwxr-xr-x 6 root root 4,0K Jun 10 12:47 openssl-1.0.1e lrwxrwxrwx 1 root root 29 Jun 10 12:49 postfix -> /opt/zimbra/postfix-2.10.1.2z drwxr-xr-x 6 root root 4,0K Jun 10 12:48 postfix-2.10.1.2z drwxr-xr-x 3 zimbra zimbra 4,0K Jun 10 13:48 redolog lrwxrwxrwx 1 zimbra zimbra 23 Jun 10 12:48 rsync -> /opt/zimbra/rsync-3.0.9 drwxr-xr-x 4 root root 4,0K Jun 10 12:48 rsync-3.0.9 lrwxrwxrwx 1 zimbra zimbra 26 Jun 10 12:49 snmp -> /opt/zimbra/net-snmp-5.7.2 drwxr-xr-x 6 zimbra zimbra 4,0K Jun 10 13:07 ssl drwxr-xr-x 5 zimbra zimbra 4,0K Jun 10 13:14 store lrwxrwxrwx 1 zimbra zimbra 24 Jun 10 12:48 tcmalloc -> /opt/zimbra/tcmalloc-2.1 drwxr-xr-x 5 root root 4,0K Jun 10 12:48 tcmalloc-2.1 lrwxrwxrwx 1 root root 24 Jun 10 12:49 zeromq -> /opt/zimbra/zeromq-3.2.3 drwxr-xr-x 5 root root 4,0K Jun 10 12:49 zeromq-3.2.3 drwxrwxr-x 7 root root 4,0K Jun 10 12:48 zimbramon drwxrwxr-x 2 zimbra zimbra 4,0K Jun 10 12:52 zimlets drwxr-xr-x 18 zimbra zimbra 4,0K Jun 10 13:15 zimlets-deployed drwxr-xr-x 3 zimbra zimbra 4,0K Jun 10 13:16 zmstat