Zimbra Mail Server インストール

Zimbra メールサーバー Centos 8 にて

CentOS 8でyum/dnfに失敗! Failed to download metadata for repo 'AppStream'
# cd /etc/yum.repos.d/
# sed -i -e 's/^mirrorlist/#mirrorlist/g' -e 's/^#baseurl=http:\/\/mirror/baseurl=http:\/\/vault/g' /etc/yum.repos.d/CentOS-*repo

CentOS 8からGNOMEGUIを削除する方法
# dnf groupremove 'X Window System' 'GNOME'
# systemctl set-default multi-user.target
# yum update -y

Zimbra Mail Server インストール
■必要なOSパッケージをインストールする
# yum -y install unzip net-tools sysstat openssh-clients perl-core libaio nmap-ncat libstdc++.so.6

■CentOS 8では、完全修飾ドメイン名(FQDN)のみが構成する
# vi /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1              localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.56.18    mail.nowodau.net    mail

# set-hostname mail.nowodau.net
# hostnamectl
   Static hostname: mail.nowodau.net
         Icon name: computer-vm
           Chassis: vm
        Machine ID: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
           Boot ID: 
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    Virtualization: vmware
  Operating System: CentOS Linux 8
       CPE OS Name: cpe:/o:centos:centos:8
            Kernel: Linux 4.18.0-147.el8.x86_64
      Architecture: x86-64

# dig -t A mail.nowodau.net
# dig -t MX nowodau.net
■インストール中エラーが発生しないように、Firewallの設定
# firewall-cmd --permanent --add-port={25,80,110,143,443,465,587,993,995,9071,7071,11371}/tcp
# firewall-cmd --reload
■Zimbraパッケージをダウンロード
※ 
https://www.zimbra.com/downloads/zimbra-collaboration-open-source/
# wget https://files.zimbra.com/downloads/8.8.15_GA/zcs-8.8.15_GA_3953.RHEL8_64.20200629025823.tgz
# tar zxvf zcs-8.8.15_GA_3953.RHEL8_64.20200629025823.tgz
# cd zcs-8.8.15_GA_3953.RHEL8_64.20200629025823/
■Zimbraインストール処理を実行
# ./install.sh
Operations logged to /tmp/install.log.rDQqA334
Checking for existing installation...
    zimbra-drive...NOT FOUND
    zimbra-imapd...NOT FOUND
    zimbra-patch...NOT FOUND
    zimbra-mta-patch...NOT FOUND
    zimbra-proxy-patch...NOT FOUND
    zimbra-license-tools...NOT FOUND
    zimbra-license-extension...NOT FOUND
    zimbra-network-store...NOT FOUND
    zimbra-network-modules-ng...NOT FOUND
    zimbra-chat...NOT FOUND
    zimbra-talk...NOT FOUND
    zimbra-ldap...NOT FOUND
    zimbra-logger...NOT FOUND
    zimbra-mta...NOT FOUND
    zimbra-dnscache...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-core...NOT FOUND

----------------------------------------------------------------------
PLEASE READ THIS AGREEMENT CAREFULLY BEFORE USING THE SOFTWARE.
SYNACOR, INC. ("SYNACOR") 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 this Zimbra Collaboration Suite Software:
https://www.zimbra.com/license/zimbra-public-eula-2-6.html
----------------------------------------------------------------------


Do you agree with the terms of the software license agreement? [N] y
。。。
Running Post Installation Configuration:
Operations logged to /tmp/zmsetup.20220531-203214.log
Installing LDAP configuration database...done.
Setting defaults...
DNS ERROR resolving MX for mail.nowodau.net
It is suggested that the domain name have an MX record configured in DNS
Change domain name? [Yes]
Create domain: [mail.nowodau.net] nowodau.net
        MX: mail.nowodau.net (210.160.237.51)
        MX: super.nowodau.net (210.160.237.51)
        Interface: 127.0.0.1
        Interface: ::1
        Interface: 192.168.56.18

Main menu
   1) Common Configuration:
   2) zimbra-ldap:                             Enabled
   3) zimbra-logger:                          Enabled
   4) zimbra-mta:                              Enabled
   5) zimbra-dnscache:                     Enabled
   6) zimbra-snmp:                            Enabled
   7) zimbra-store:                             Enabled
        +Create Admin User:                    yes
        +Admin user to create:                 admin@nowodau.net
******* +Admin Password                   UNSET
        +Anti-virus quarantine user:       virus-quarantine.e1xm1hn5q@nowodau.net
        +Enable automated spam training:       yes
        +Spam training user:                   spam.lzygftkds@nowodau.net
        +Non-spam(Ham) training user:          ham.4vlrlovc@nowodau.net
        +SMTP host:                            mail.nowodau.net
        +Web server HTTP port:                 ****
        +Web server HTTPS port:               
****
        +Web server mode:                          
****
        +IMAP server port:                          
****
        +IMAP server SSL port:                   
****
        +POP server port:                             
****
        +POP server SSL port:                     
****
        +Use spell check server:                 yes
        +Spell server URL:                           http://mail.nowodau.net:
****/aspell.php
        +Enable version update checks:         TRUE
        +Enable version update notifications:  TRUE
        +Version update notification email:    admin@nowodau.net
        +Version update source email:             admin@nowodau.net
        +Install mailstore (service webapp):   yes
        +Install UI (zimbra,zimbraAdmin webapps): yes
   8) zimbra-spell:                            Enabled
   9) zimbra-proxy:                            Enabled
  10) Default Class of Service Configuration:
   s) Save config to file
   x) Expand menu
   q) Quit
Address unconfigured (**) items  (? - help) 7

。。。
Setting up zimbra crontab...done.
Moving /tmp/zmsetup.20220531-203214.log to /opt/zimbra/log
Configuration complete - press return to exit
[root@localhost zcs-8.8.15_GA_3953.RHEL8_64.20200629025823]#
■インストール後Zimbraサービスの確認
# su - zimbra
[zimbra@mail ~]$ zmcontrol status
Host mail.nowodau.net
        amavis                  Running
        antispam              Running
        antivirus              Running
        dnscache              Running
        ldap                       Running
        logger                    Running
        mailbox                 Running
        memcached          Running
        mta                         Running
        opendkim             Running
        proxy                     Running
        service webapp    Running
        snmp                      Running
        spell                        Running
        stats                        Running
        zimbra webapp                   Running
        zimbraAdmin webapp      Running
        zimlet webapp                    Running
        zmconfigd                            Running
[zimbra@mail ~]$
■WebブラウザーでZimbra管理者ログイン画面の確認

ユーザー名: admin
パースワード: <インストール時設定したもの>
※管理者アカウントに問題があったら下記の記事を参照
https://portal.jv-net.net/blog/it-1/zimbra-7



※Zimbraサービスのメール受信障害対応
$  zmprov mcf zimbraMtaLmtpHostLookup native
$ zmmtactl restart
Rewriting configuration files...done.
Stopping saslauthd...done.
Starting saslauthd...done.
/postfix-script: refreshing the Postfix mail system

※送信メールの添付ファイルをスキャンする設定
$ zmprov mcf zimbraAttachmentsScanURL clam://localhost:3310/
$ zmprov mcf zimbraAttachmentsScanEnabled TRUE









Zimbra Mail Server インストール
原田 達明 1 6月, 2022
Share this post
アーカイブ
サインイン to leave a comment

TrueNAS のGUIが突然反応しなくなる