Overview and installation of the iRedMail mail server

    Good day!

    I present to you the review, installation and configuration of the wonderful iRedMail package based on Debian Lenny.

    iRedMail is:

    1) A full-fledged mail server.
    2) Runs on Red Hat® Enterprise Linux (5.x), CentOS (5.x), Debian (5.0.x), Ubuntu (8.04, 9.04, 9.10), FreeBSD (7.x, 8.0).
    3) It works both on a regular system and under the control of a virtual machine: etc. VMware, OpenVZ, Xen.
    4) Support for i386 and x86_64 architectures.
    5) Uses compatible components such as Postfix, Dovecot, SpamAssassin, etc. to install and configure.
    6) When installing, it uses binary packages from your distribution.
    7) An open source project distributed under the GPL v2 license.
    8) Support for two backends for storing virtual domains and users: OpenLDAP and MySQL.
    9) Unlimited support for domains, users, mail aliases.
    10) Support for two Web Interfaces (RoundCube and SquirrelMail).

    This package is very convenient to configure and install.

    1) This package is convenient in that:
    a. You do not need a lot of knowledge, i.e. the installation and configuration process is not at all complicated.
    b. It requires a minimum of time to turn corporate mail. I spent literally 20 minutes installing this assembly.
    in. The kit includes all the necessary software for the mail server. (Antivirus, Antispam, 2 Web-Interfaces (optional)

    2) Analogues of this package do not exist.

    IRedMail working scheme:

    image

    Anti-Spam and Anti-virus.
    2 popular packages act as antispam and antivirus, these are SpamAssassin and ClamAV.

    What iRedMail supports to protect mail:
    1. Support for SPF (Sender Policy Framework).
    2. Support for DKIM (DomainKeys Identified Mail).
    3. Greylist support.
    4. Support for “White Lists” (based on DNS name and IP address)
    5. Support for “Black Lists” (based on DNS name and IP address)
    6. Support for “Black List” HELO requests.
    7. Support for HPR (HELO Randomization Prevention)
    8. Support for Spamtrap.
    9. SpamAssassin
    integration 10. ClamAV integration, virus database auto-update.

    Email client support:

    Email clients supporting POP3 / POP3S and IMAP / IMAPS. For example: Mozilla Thunderbird, Microsoft Outlook, Sylpheed.

    Install iRedMail.

    As the mail server, I chose iRedMail. This is the assembly of Postfix + LDAP (MySQL) + SpamAssassin + ClamAV + AmaViS + Dovecot + RoundCube (SquirrelMail), etc. In this article, we will consider setting up this wonderful OpenLDAP-based server.

    Attention! Remember to change example.com to your domain name. Let's

    fix our hostname a little:
    vi /etc/hosts

    127.0.0.1 mail.example.com localhost localhost.localdomain

    vi /etc/hostname
    mail.example.com

    Save the changes with the command:
    /etc/init.d/hostname.sh start

    Check the FQDN hostname:
    hostname –f

    The entire installation is performed as root!

    Download this file to the / tmp directory:

    cd /tmp && wget iredmail.googlecode.com/files/iRedMail-0.6.0.tar.bz2

    Install the archiver:
    apt-get install bzip2

    You need to unpack this archive:
    tar -xvjf iRedMail-0.6.0.tar.bz2

    We go to the directory /tmp/iRedMail-0.6.0/pkgs/ and run the installation script: The
    bash get_all.sh

    necessary packages will load.
    For dovecot to work, you need to install the Candidate version of the package. C another will not work!
    apt-cache policy dovecot-common dovecot-pop3d dovecot-imapd | grep 'Candidate'
    The team will give an empty result.

    We go to the installation script directory:
    cd /tmp/iRedMail-0.6.0/

    Run the installation script: The
    bash iRedMail.sh
    installer window will appear:
    image

    Choose the path where all our mail will be stored:
    image

    Choose the backend for our server. MySQL and OpenLDAP are supported. We will choose OpenLDAP: the
    image

    LDAP suffix for our server is added like this: dc = example, dc = com
    image

    Enter the password for the LDAP server administrator. The default administrator account is located in /etc/ldap/slapd.conf. Usually it is: cn = Manager, dc = example, dc = com
    image

    Enter the name of our domain:
    image

    Enter the administrator password (postmaster):
    image

    The first user to be created is the user: www@example.com. We need to come up with a password for it:
    image

    We turn on the SPF check and the DKIM check function:
    image

    We put extra. components:
    image

    We make an alias for the root user:
    image

    Configuration is complete.
    The message appears:
    Configuration completed.

    *************************************************************************
    **************************** WARNNING ***********************************
    *************************************************************************
    * *
    * Please do remember to *REMOVE* configuration file after installation *
    * completed successfully. *
    * *
    * * /root/iRedMail-x.y.z/config
    * *
    *************************************************************************
    <<>> Continue? [Y|n] # <- Type 'Y' or 'y' here, and press 'Enter' to continue


    Жмем Y и дожидаемся окончания установки.
    Создание пользователя проходит на странице: example.com/postfixadmin
    Входим в postfixadmin пользователем postmaster@example.com и в меню выбираем “Создать ящик”
    image

    Пользователь создан!

    Также PostfixAdmin позволяет:
    1. Добавить нового администратора.
    2. Добавить домен.
    3. Создать почтовый ящик.
    4. Создать алиас.
    5. Изменить пароль администратора.
    6. Просматривать журнал действий для домена.
    7. Устанавливать и управлять квотами пользователей.

    Список доступа к компонентам:
    image

    Сервер установлен и настроен!

    UPD: Для корректной работы почтового сервера обязательно нужна MX запись на DNS сервере, к которому привязан ваш домен!

    Ссылки на проекты:
    Debian
    iRedMail
    Posftix
    OpenLDAP
    MySQL
    SpamAssasin
    ClamAV
    AMaViS
    Dovecot
    RoundCube
    SquirrelMail
    Awstats
    phpLDAPAdmin
    phpMyAdmin

    Копирование статьи допускается только с разрешения её авторов.
    r0ster (http://exbyte.ru) и t1mbo (http://greentale.ru)

    Also popular now: