{"id":1338,"date":"2018-12-04T22:52:10","date_gmt":"2018-12-04T19:52:10","guid":{"rendered":"http:\/\/kifarunix.com\/?p=1338"},"modified":"2024-03-11T21:50:16","modified_gmt":"2024-03-11T18:50:16","slug":"how-to-setup-iredmail-mail-server-on-ubuntu","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/how-to-setup-iredmail-mail-server-on-ubuntu\/","title":{"rendered":"Install and Setup iRedMail Mail Server on Ubuntu 22.04\/20.04"},"content":{"rendered":"\n<p>Welcome to our tutorial on how to install and setup iRedMail mail server on Ubuntu 22.04\/20.04. <a href=\"https:\/\/www.iredmail.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">iRedMail<\/a> is an open-source mail server solution. It provides a fully-fledged and fully featured mail server at no cost at all.<\/p>\n\n\n\n<div class=\"wp-block-rank-math-toc-block\" id=\"rank-math-toc\"><h2>Table of Contents<\/h2><nav><ul><li><a href=\"#why-i-red-mail\">Why iRedMail?<\/a><\/li><li><a href=\"#installing-i-red-mail-mail-server-on-ubuntu-22-04-20-04\">Installing iRedMail Mail Server on Ubuntu 22.04\/20.04<\/a><ul><li><a href=\"#prerequisites\">Prerequisites<\/a><\/li><li><a href=\"#install-i-red-mail-mail-server-on-ubuntu-22-04-20-04\">Install iRedMail Mail Server on Ubuntu 22.04\/20.04<\/a><ul><li><a href=\"#run-system-update\">Run System Update<\/a><\/li><li><a href=\"#install-required-packages\">Install Required Packages<\/a><\/li><li><a href=\"#download-i-red-mail-archive\">Download iRedMail Archive<\/a><\/li><li><a href=\"#extract-the-i-red-mail-tarball\">Extract the iRedMail tarball<\/a><\/li><li><a href=\"#launch-i-red-mail-mail-server-installer\">Launch iRedMail Mail server installer<\/a><\/li><li><a href=\"#reboot-the-server\">Reboot the Server<\/a><\/li><li><a href=\"#i-red-mail-tips\">iRedMail Tips<\/a><\/li><\/ul><\/li><li><a href=\"#accessing-i-red-mail-web-admin-panel\">Accessing iRedMail Web Admin Panel<\/a><\/li><li><a href=\"#accessing-roundcube-web-mail-client\">Accessing Roundcube Web Mail Client<\/a><\/li><li><a href=\"#other-tutorials\">Other tutorials<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"why-i-red-mail\">Why iRedMail?<\/h2>\n\n\n\n<p>Some of the reasons why you may want to consider iRedMail for your mail server include;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>It enables you to have a complete control over your emails and their security, transaction logs&#8230;<\/li>\n\n\n\n<li>It is opensource and hence it easier to get the bug fixes and updates from your trusted Linux\/BSD vendors.<\/li>\n\n\n\n<li>It uses secure connection protocols, POP3\/IMAP\/SMTP over TLS, webmail with HTTPS, by default.<\/li>\n\n\n\n<li>It provides an intuitive Web GUI for managing mails, folders, sieve filters.<\/li>\n\n\n\n<li>It supports backends such as OpenLDAP, MySQL, MariaDB, PostgreSQL.<\/li>\n<\/ul>\n\n\n\n<p>You can read more about iRedMail features on <a href=\"https:\/\/www.iredmail.org\/\" target=\"_blank\" rel=\"noopener noreferrer\">iRedMail<\/a> page.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"installing-i-red-mail-mail-server-on-ubuntu-22-04-20-04\">Installing iRedMail Mail Server on Ubuntu 22.04\/20.04<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"prerequisites\">Prerequisites<\/h3>\n\n\n\n<p>Before you can proceed, ensure that the following bare minimums are met;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Confirm the current <a href=\"https:\/\/www.iredmail.org\/download.html\" target=\"_blank\" rel=\"noreferrer noopener\">version of Linux distro supported<\/a>.<\/li>\n\n\n\n<li>Install a <strong>FRESH<\/strong> Ubuntu server with <strong>NO<\/strong> mail related components installed.<\/li>\n\n\n\n<li>Provide the system with at least 2GB of RAM<\/li>\n\n\n\n<li>Ensure that the following User ID and Group ID are not&nbsp; being used; <strong>2001,2002,2003<\/strong><\/li>\n\n\n\n<li>Set a fully qualified domain name (FQDN) for your server e.g <code>mx.example.com<\/code>. You can set your hostname with the command.<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo hostnamectl set-hostname mx.kifarunix-demo.com<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Ensure that the hostname is resolvable. If you dont have a DNS server, set record in your <code>\/etc\/hosts<\/code>. You can set this record by running the command below;<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>echo \"192.168.58.33 mx.kifarunix-demo.com mx\" | sudo tee -a \/etc\/hosts<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"install-i-red-mail-mail-server-on-ubuntu-22-04-20-04\">Install iRedMail Mail Server on Ubuntu 22.04\/20.04<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"run-system-update\">Run System Update<\/h4>\n\n\n\n<p>Once the above prerequisites are met, step through the following to install iRedMail mail server on Ubuntu 22.04\/20.04<\/p>\n\n\n\n<p>Ensure your server is up-to-date;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">apt update<\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>apt upgrade<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"install-required-packages\">Install Required Packages<\/h4>\n\n\n\n<p>There are a number of packages required by iRedMail. Install them by running the command below;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt install gzip dialog<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"download-i-red-mail-archive\">Download iRedMail Archive<\/h4>\n\n\n\n<p>Navigate to iRedMail <a href=\"https:\/\/www.iredmail.org\/download.html\" target=\"_blank\" rel=\"noopener\">Download&#8217;s page<\/a> and download the latest stable release of iRedMail archive.<\/p>\n\n\n\n<p>Version 1.6.3 is the current stable release as of this writing.<\/p>\n\n\n\n<p>Replace the value of the VER variable below with the current release version number.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>VER=1.6.3<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">wget https:\/\/github.com\/iredmail\/iRedMail\/archive\/refs\/tags\/${VER}.tar.gz<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"extract-the-i-red-mail-tarball\">Extract the iRedMail tarball<\/h4>\n\n\n\n<p>Once the download is complete, extract the archive\/<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">tar xzf ${VER}.tar.gz<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"launch-i-red-mail-mail-server-installer\">Launch iRedMail Mail server installer<\/h4>\n\n\n\n<p>Navigate to iRedMail source directory and run the installer script as shown below;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd iRedMail-${VER}<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>bash iRedMail.sh<\/code><\/pre>\n\n\n\n<p>During the installation, you will be prompted to answer several questions required to setup iRedMail mail server.<\/p>\n\n\n\n<p>Press <strong>ENTER<\/strong> to continue.<\/p>\n\n\n\n<p>The setup is interactive and the first screen welcomes you and thank you for using iRedMail.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1163\" height=\"591\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/07\/iredmail-welcome.png\" alt=\"Install and Setup iRedMail Mail Server on Ubuntu 22.04\/20.04\" class=\"wp-image-17818\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/07\/iredmail-welcome.png?v=1689190333 1163w, https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/07\/iredmail-welcome-768x390.png?v=1689190333 768w\" sizes=\"(max-width: 1163px) 100vw, 1163px\" \/><\/figure><\/div>\n\n\n<p>Press <strong>Enter<\/strong> to accept and proceed with the installation. As stated, you can press <strong>Ctrl+c<\/strong> cancel the installation.<\/p>\n\n\n\n<p>On the next screen, you are required to provide a full path where user mailboxes will be stored. The default path is <code>\/var\/vmail<\/code>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1143\" height=\"617\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/07\/iredmail-storage-path.png\" alt=\"Install and Setup iRedMail Mail Server on Ubuntu 22.04\/20.04\" class=\"wp-image-17819\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/07\/iredmail-storage-path.png?v=1689190358 1143w, https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/07\/iredmail-storage-path-768x415.png?v=1689190358 768w\" sizes=\"(max-width: 1143px) 100vw, 1143px\" \/><\/figure><\/div>\n\n\n<p>After that, select <strong>Next<\/strong> to choose the web server to use. In this case, am going with the default, <strong>Nginx.<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1144\" height=\"610\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/07\/iredmail-webserver.png\" alt=\"Install and Setup iRedMail Mail Server on Ubuntu 22.04\/20.04\" class=\"wp-image-17820\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/07\/iredmail-webserver.png?v=1689190370 1144w, https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/07\/iredmail-webserver-768x410.png?v=1689190370 768w\" sizes=\"(max-width: 1144px) 100vw, 1144px\" \/><\/figure><\/div>\n\n\n<p>Next, you are required to choose the backend to store your mail accounts. In this case, we are going to select MySQL database as our backend. Use <strong>up <\/strong>and <strong>down<\/strong> arrow keys move between the options. Press <strong>Space Bar<\/strong> to select your option.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1129\" height=\"632\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/07\/iredmail-backend-storage.png\" alt=\"Install and Setup iRedMail Mail Server on Ubuntu 22.04\/20.04\" class=\"wp-image-17821\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/07\/iredmail-backend-storage.png?v=1689190384 1129w, https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/07\/iredmail-backend-storage-768x430.png?v=1689190384 768w\" sizes=\"(max-width: 1129px) 100vw, 1129px\" \/><\/figure><\/div>\n\n\n<p>Next, you need to the set the MySQL root user password on the localhost server (127.0.0.1)<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1152\" height=\"636\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/07\/set-iredmail-backend-pass.png\" alt=\"Install and Setup iRedMail Mail Server on Ubuntu 22.04\/20.04\" class=\"wp-image-17822\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/07\/set-iredmail-backend-pass.png?v=1689190409 1152w, https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/07\/set-iredmail-backend-pass-768x424.png?v=1689190409 768w\" sizes=\"(max-width: 1152px) 100vw, 1152px\" \/><\/figure>\n\n\n\n<p>After that, proceed to the next screen to set your first mail domain.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1123\" height=\"652\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/07\/iredmail-domain.png\" alt=\"Install and Setup iRedMail Mail Server on Ubuntu 22.04\/20.04\" class=\"wp-image-17823\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/07\/iredmail-domain.png?v=1689190431 1123w, https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/07\/iredmail-domain-768x446.png?v=1689190431 768w\" sizes=\"(max-width: 1123px) 100vw, 1123px\" \/><\/figure><\/div>\n\n\n<p>Set the password for the mail domain administrator. <strong>postmaster@domain.com<\/strong> is configured by default.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1111\" height=\"671\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/07\/set-password-for-mail-domain-admin.png\" alt=\"\" class=\"wp-image-17824\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/07\/set-password-for-mail-domain-admin.png?v=1689190448 1111w, https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/07\/set-password-for-mail-domain-admin-768x464.png?v=1689190448 768w\" sizes=\"(max-width: 1111px) 100vw, 1111px\" \/><\/figure><\/div>\n\n\n<p>In the next screen, your are prompted to choose some of optional components that can be used to add extra functionalities your mail server. Select the components you require and press Next to proceed.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1126\" height=\"658\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/07\/iredmail-components.png\" alt=\"\" class=\"wp-image-17825\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/07\/iredmail-components.png?v=1689190462 1126w, https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/07\/iredmail-components-768x449.png?v=1689190462 768w\" sizes=\"(max-width: 1126px) 100vw, 1126px\" \/><\/figure><\/div>\n\n\n<p>You are then required to review all the options you have chosen. iRedMail will install and configure the appropriate packages.<\/p>\n\n\n\n<pre class=\"scroll-box\"><code>\n*************************************************************************\n***************************** WARNING ***********************************\n*************************************************************************\n*                                                                       *\n* Below file contains sensitive infomation (username\/password), please  *\n* do remember to *MOVE* it to a safe place after installation.          *\n*                                                                       *\n*   * \/root\/iRedMail-1.6.3\/config\n*                                                                       *\n*************************************************************************\n********************** Review your settings *****************************\n*************************************************************************\n\n* Storage base directory:               \/var\/vmail\n* Mailboxes:                            \n* Daily backup of SQL\/LDAP databases:   \n* Store mail accounts in:               MariaDB\n* Web server:                           Nginx\n* First mail domain name:               kifarunix-demo.com\n* Mail domain admin:                    postmaster@kifarunix-demo.com\n* Additional components:                Roundcubemail SOGo netdata iRedAdmin Fail2ban\n\n< Question > Continue? [y|N]y\n<\/code><\/pre>\n\n\n\n<p>If all the options are fine, type <strong>y<\/strong> and press <strong>Enter<\/strong> to proceed with installation.<\/p>\n\n\n\n<p>After the installation, you are prompted on whether to use firewall rules provided by iRedMail. Type <strong>y<\/strong> and press <strong>Enter <\/strong>to accept.<\/p>\n\n\n\n<pre class=\"scroll-box\"><code>\n======= Important SOGo post-installation note =======\n\nSOGo database schemas are _not_ automatically upgraded by\nthe packaging system.\n\nPlease check the list of database schema upgrade scripts\ninside \/usr\/share\/doc\/sogo\/ and apply them if needed.\n\nMore details can be found in the Upgrading section:\nhttps:\/\/sogo.nu\/files\/docs\/SOGoInstallationGuide.html#_upgrading\n\nSetting up sogo-activesync (5.8.4.20230712-1) ...\nProcessing triggers for rsyslog (8.2112.0-2ubuntu2.2) ...\nProcessing triggers for ufw (0.36.1-4build1) ...\nProcessing triggers for man-db (2.10.2-1) ...\nProcessing triggers for dbus (1.12.20-2ubuntu4.1) ...\nProcessing triggers for libc-bin (2.35-0ubuntu3.1) ...\nProcessing triggers for php8.1-cli (8.1.2-1ubuntu2.13) ...\nProcessing triggers for dovecot-core (1:2.3.16+dfsg1-3ubuntu2.2) ...\nProcessing triggers for php8.1-fpm (8.1.2-1ubuntu2.13) ...\nNEEDRESTART-VER: 3.5\nNEEDRESTART-KCUR: 5.15.0-76-generic\nNEEDRESTART-KEXP: 5.15.0-76-generic\nNEEDRESTART-KSTA: 1\nNEEDRESTART-SVC: dbus.service\nNEEDRESTART-SVC: networkd-dispatcher.service\nNEEDRESTART-SVC: systemd-logind.service\nNEEDRESTART-SVC: unattended-upgrades.service\nNEEDRESTART-SVC: user@1000.service\n\n********************************************************************\n* Start iRedMail Configurations\n********************************************************************\n[ INFO ] Generate self-signed SSL cert (4096 bits, expire in 10 years).\n[ INFO ] Generate Diffie Hellman Group with openssl, please wait.\n[ INFO ] Create required system accounts.\n[ INFO ] Configure MariaDB database server.\n[ INFO ] Setup daily cron job to backup SQL databases with \/var\/vmail\/backup\/backup_mysql.sh\n[ INFO ] Configure Postfix (MTA).\n[ INFO ] Configure Dovecot (POP3\/IMAP\/Managesieve\/LMTP\/LDA).\n[ INFO ] Configure Nginx web server.\n[ INFO ] Configure PHP.\n[ INFO ] Configure mlmmj (mailing list manager).\n[ INFO ] Configure ClamAV (anti-virus toolkit).\n[ INFO ] Configure Amavisd-new (interface between MTA and content checkers).\n[ INFO ] Configure SpamAssassin (content-based spam filter).\n[ INFO ] Configure iRedAPD (postfix policy daemon).\n[ INFO ] Configure iRedAdmin (official web-based admin panel).\n[ INFO ] Configure Roundcube webmail.\n[ INFO ] Configure SOGo Groupware (Webmail, Calendar, Address Book, ActiveSync).\n[ INFO ] Configure Fail2ban (authentication failure monitor).\n[ INFO ] Configure netdata (system and application monitor).\n\n*************************************************************************\n* iRedMail-1.6.3 installation and configuration complete.\n*************************************************************************\n\n< Question > Would you like to use firewall rules provided by iRedMail?\n< Question > File: \/etc\/nftables.conf, with SSHD ports: 22. [Y|n] y\n<\/code><\/pre>\n\n\n\n<p>After that, restart firewall;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt; Question &gt; Restart firewall now (with ssh ports: 22)? &#91;y|N]y<\/code><\/pre>\n\n\n\n<p>At the end of it, you will be presented with useful links to access various components of the iRedMail server.<\/p>\n\n\n\n<pre class=\"scroll-box\"><code>\n[ INFO ] Updating ClamAV database (freshclam), please wait ...\n********************************************************************\n* URLs of installed web applications:\n*\n* - Roundcube webmail: https:\/\/mx.kifarunix-demo.com\/mail\/\n* - SOGo groupware: https:\/\/mx.kifarunix-demo.com\/SOGo\/\n* - netdata (monitor): https:\/\/mx.kifarunix-demo.com\/netdata\/\n*\n* - Web admin panel (iRedAdmin): https:\/\/mx.kifarunix-demo.com\/iredadmin\/\n*\n* You can login to above links with below credential:\n*\n* - Username: postmaster@kifarunix-demo.com\n* - Password: hacker\n*\n*\n********************************************************************\n* Congratulations, mail server setup completed successfully. Please\n* read below file for more information:\n*\n*   - \/root\/iRedMail-1.6.3\/iRedMail.tips\n*\n* And it's sent to your mail account postmaster@kifarunix-demo.com.\n*\n********************* WARNING **************************************\n*\n* Please reboot your system to enable all mail services.\n*\n********************************************************************\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"reboot-the-server\">Reboot the Server<\/h4>\n\n\n\n<p>You mail server is successfully setup. Restart your server to enable all mail services<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">systemctl reboot -i<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-red-mail-tips\">iRedMail Tips<\/h4>\n\n\n\n<p>You can also read the file, <strong>~\/iRedMail-${VER}\/iRedMail.tips, <\/strong>to find out more information about your mail server.<\/p>\n\n\n\n<p>Sample;<\/p>\n\n\n\n<pre class=\"scroll-box\"><code>\nAdmin of domain kifarunix-demo.com:\n\n    * Account: postmaster@kifarunix-demo.com\n    * Password: fA7o9zqkuBhgaofYbAdx\n\n    You can login to iRedAdmin with this account, login name is full email address.\n\nFirst mail user:\n    * Username: postmaster@kifarunix-demo.com\n    * Password: fA7o9zqkuBhgaofYbAdx\n    * SMTP\/IMAP auth type: login\n    * Connection security: STARTTLS or SSL\/TLS\n\n    You can login to webmail with this account, login name is full email address.\n\n* Enabled services:  rsyslog postfix mysql nginx php8.1-fpm dovecot clamav-daemon amavis clamav-freshclam sogo memcached fail2ban cron nftables\n\n\nSSL cert keys (size: 4096):\n    - \/etc\/ssl\/certs\/iRedMail.crt\n    - \/etc\/ssl\/private\/iRedMail.key\n\nMail Storage:\n    - Mailboxes: \/var\/vmail\/vmail1\n    - Mailbox indexes: \n    - Global sieve filters: \/var\/vmail\/sieve\n    - Backup scripts and backup copies: \/var\/vmail\/backup\n\nMySQL:\n    * Root user: root, Password: \"fA7o9zqkuBhgaofYbAdx\" (without quotes)\n    * Bind account (read-only):\n        - Username: vmail, Password: MNdHNdO3O5QHhNFsFHhyeDlypPcZ4o43\n    * Vmail admin account (read-write):\n        - Username: vmailadmin, Password: Tvjdkqvk2n7IsyLLraeAwIC9EYHIA1Nd\n    * Config file: \/etc\/mysql\/my.cnf\n    * RC script: \/etc\/init.d\/mysql\n\nVirtual Users:\n    - \/root\/iRedMail-1.6.3\/samples\/iredmail\/iredmail.mysql\n    - \/root\/iRedMail-1.6.3\/runtime\/*.sql\n\nBackup MySQL database:\n    * Script: \/var\/vmail\/backup\/backup_mysql.sh\n    * See also:\n        # crontab -l -u root\n\nPostfix:\n    * Configuration files:\n        - \/etc\/postfix\n        - \/etc\/postfix\/aliases\n        - \/etc\/postfix\/main.cf\n        - \/etc\/postfix\/master.cf\n\n    * SQL\/LDAP lookup config files:\n        - \/etc\/postfix\/mysql\n\nDovecot:\n    * Configuration files:\n        - \/etc\/dovecot\/dovecot.conf\n        - \/etc\/dovecot\/dovecot-ldap.conf (For OpenLDAP backend)\n        - \/etc\/dovecot\/dovecot-mysql.conf (For MySQL backend)\n        - \/etc\/dovecot\/dovecot-pgsql.conf (For PostgreSQL backend)\n        - \/etc\/dovecot\/dovecot-used-quota.conf (For real-time quota usage)\n        - \/etc\/dovecot\/dovecot-share-folder.conf (For IMAP sharing folder)\n    * Syslog config file:\n        - \/etc\/rsyslog.d\/1-iredmail-dovecot.conf (present if rsyslog >= 8.x)\n    * RC script: \/etc\/init.d\/dovecot\n    * Log files:\n        - \/var\/log\/dovecot\/dovecot.log\n        - \/var\/log\/dovecot\/sieve.log\n        - \/var\/log\/dovecot\/lmtp.log\n        - \/var\/log\/dovecot\/lda.log (present if rsyslog >= 8.x)\n        - \/var\/log\/dovecot\/imap.log (present if rsyslog >= 8.x)\n        - \/var\/log\/dovecot\/pop3.log (present if rsyslog >= 8.x)\n        - \/var\/log\/dovecot\/sieve.log (present if rsyslog >= 8.x)\n    * See also:\n        - \/var\/vmail\/sieve\/dovecot.sieve\n        - Logrotate config file: \/etc\/logrotate.d\/dovecot\n\nNginx:\n    * Configuration files:\n        - \/etc\/nginx\/nginx.conf\n        - \/etc\/nginx\/sites-available\/00-default.conf\n        - \/etc\/nginx\/sites-available\/00-default-ssl.conf\n    * Directories:\n        - \/etc\/nginx\n        - \/var\/www\/html\n    * See also:\n        - \/var\/www\/html\/index.html\n\nphp-fpm:\n    * Configuration files: \/etc\/php\/8.1\/fpm\/pool.d\/www.conf\n\nPHP:\n    * PHP config file for Nginx: \n    * Disabled functions: posix_uname,eval,pcntl_wexitstatus,posix_getpwuid,xmlrpc_entity_decode,pcntl_wifstopped,pcntl_wifexited,pcntl_wifsignaled,phpAds_XmlRpc,pcntl_strerror,ftp_exec,pcntl_wtermsig,mysql_pconnect,proc_nice,pcntl_sigtimedwait,posix_kill,pcntl_sigprocmask,fput,phpinfo,system,phpAds_remoteInfo,ftp_login,inject_code,posix_mkfifo,highlight_file,escapeshellcmd,show_source,pcntl_wifcontinued,fp,pcntl_alarm,pcntl_wait,ini_alter,posix_setpgid,parse_ini_file,ftp_raw,pcntl_waitpid,pcntl_getpriority,ftp_connect,pcntl_signal_dispatch,pcntl_wstopsig,ini_restore,ftp_put,passthru,proc_terminate,posix_setsid,pcntl_signal,pcntl_setpriority,phpAds_xmlrpcEncode,pcntl_exec,ftp_nb_fput,ftp_get,phpAds_xmlrpcDecode,pcntl_sigwaitinfo,shell_exec,pcntl_get_last_error,ftp_rawlist,pcntl_fork,posix_setuid\n\nClamAV:\n    * Configuration files:\n        - \/etc\/clamav\/clamd.conf\n        - \/etc\/clamav\/freshclam.conf\n        - \/etc\/logrotate.d\/clamav\n    * RC scripts:\n            + \/etc\/init.d\/clamav-daemon\n            + \/etc\/init.d\/clamav-freshclam\n\nAmavisd-new:\n    * Configuration files:\n        - \/etc\/amavis\/conf.d\/50-user\n        - \/etc\/postfix\/master.cf\n        - \/etc\/postfix\/main.cf\n    * RC script:\n        - \/etc\/init.d\/amavis\n    * SQL Database:\n        - Database name: amavisd\n        - Database user: amavisd\n        - Database password: IKI5MIUn24SJRtqiljodR4LGzSET00cW\n\nDNS record for DKIM support:\n\n; key#1 2048 bits, s=dkim, d=kifarunix-demo.com, \/var\/lib\/dkim\/kifarunix-demo.com.pem\ndkim._domainkey.kifarunix-demo.com.\t3600 TXT (\n  \"v=DKIM1; p=\"\n  \"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAuFtsYHji0+138NLpjt7H\"\n  \"2RovbYjY7MqiwAL6ixTnzSzoXWsDUf\/vY3n3HlCDlqZeHV3pU7hifSuZtVPKsCT1\"\n  \"ChYn3fnaZiofhNmC2WuXA9pIoAL+0mUiNKMitj8MK3OEYLpqcIh0E2RgqMMcrvXa\"\n  \"HxfsZmYIGylcF0wcn4h44t8YSzOTccacLPxdjuzT0R+dbl9pvOdzLW9NKHu0ipd1\"\n  \"eomT7oPc\/pvux9+es4xjLKy1ru60cCLsaHyIVGqk+pa55PHNXTuoZz3OvLnQ1KkQ\"\n  \"XV4ixI1Abz0QQ\/QjUOAV\/GePEY3VAynPhh0jPgs903jFGWJJPW1z8RRa0a8FwHMP\"\n  \"2QIDAQAB\")\nSpamAssassin:\n    * Configuration files and rules:\n        - \/etc\/mail\/spamassassin\n        - \/etc\/mail\/spamassassin\/local.cf\n\niRedAPD - Postfix Policy Server:\n    * Version: 5.3\n    * Listen address: 127.0.0.1, port: 7777\n    * SQL database account:\n        - Database name: iredapd\n        - Username: iredapd\n        - Password: MtZsW1ZMc9CNroZefC0IvhfXsaI9Zvjj\n    * Configuration file:\n        - \/opt\/iredapd\/settings.py\n    * Related files:\n        - \/opt\/iRedAPD-5.3\n        - \/opt\/iredapd (symbol link to \/opt\/iRedAPD-5.3\n\niRedAdmin - official web-based admin panel:\n    * Version: 2.3\n    * Root directory: \/opt\/www\/iRedAdmin-2.3\n    * Config file: \/opt\/www\/iRedAdmin-2.3\/settings.py\n    * Web access:\n        - URL: https:\/\/mx.kifarunix-demo.com\/iredadmin\/\n        - Username: postmaster@kifarunix-demo.com\n        - Password: fA7o9zqkuBhgaofYbAdx\n    * SQL database:\n        - Database name: iredadmin\n        - Username: iredadmin\n        - Password: aBQSQZ1BtOHjdThM47u400gcoMLTyLTg\n\nRoundcube webmail: \/opt\/www\/roundcubemail-1.6.1\n    * Config file: \/opt\/www\/roundcubemail-1.6.1\/config\n    * Web access:\n        - URL: http:\/\/mx.kifarunix-demo.com\/mail\/ (will be redirected to https:\/\/ site)\n        - URL: https:\/\/mx.kifarunix-demo.com\/mail\/ (secure connection)\n        - Username: postmaster@kifarunix-demo.com\n        - Password: fA7o9zqkuBhgaofYbAdx\n    * SQL database account:\n        - Database name: roundcubemail\n        - Username: roundcube\n        - Password: snUVImKkWSLAag43khYGuk69iUtruYZH\n    * Cron job:\n        - Command: \"crontab -l -u root\"\n\nSOGo Groupware:\n    * Web access: httpS:\/\/mx.kifarunix-demo.com\/SOGo\/\n    * Main config file: \/etc\/sogo\/sogo.conf\n    * Nginx template file: \/etc\/nginx\/templates\/sogo.tmpl\n    * Database:\n        - Database name: sogo\n        - Database user: sogo\n        - Database password: H68s637rHRgE58lxVIQ0exIbP3ySIAYQ\n    * SOGo sieve account (Warning: it's a Dovecot Master User):\n        - file: \/etc\/sogo\/sieve.cred\n        - username: sogo_sieve_master@not-exist.com\n        - password: s6ovcPdzgQjLBzBqUlKiOxOfcOcH4V9v\n    * See also:\n        - cron job of system user: sogo\n\nnetdata (monitor):\n    - Config files:\n        - All config files: \/opt\/netdata\/etc\/netdata\n        - Main config file: \/opt\/netdata\/etc\/netdata\/netdata.conf\n        - Modified modular config files:\n            - \/opt\/netdata\/etc\/netdata\/go.d\n            - \/opt\/netdata\/etc\/netdata\/python.d\n    - HTTP auth file (if you need a new account to access netdata, please\n      update this file with command like 'htpasswd' or edit manually):\n        - \/etc\/nginx\/netdata.users\n    - Log directory: \/opt\/netdata\/var\/log\/netdata\n    - SQL:\n        - Username: netdata\n        - Password: mc3J8Bi8TMZLuPEbmc3B5qAUuwyy6z4m\n        - NOTE: No database required by netdata.\n<\/code><\/pre>\n\n\n\n<p>There is also a SENSITIVE file that you need to pay attention to;<code> ~\/iRedMail-${VER}\/config<\/code>. This file contains usernames and passwords. Therefore, save the contents in a safe place and remove it immediately after the installation<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">rm ~\/iRedMail-${VER}\/config<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"accessing-i-red-mail-web-admin-panel\">Accessing iRedMail Web Admin Panel<\/h3>\n\n\n\n<p>To access the iRedMail web admin Panel, use the URL, <code>https:\/\/&lt;your-domain&gt;\/iredadmin\/<\/code>. You may encounter certificate warnings. This is because self-signed certificate is used by default. You should however consider obtaining a commercial SST\/TLS certificates for use with iRedMail.<\/p>\n\n\n\n<p>Get the details from the iRedMail.tips file.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1425\" height=\"760\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/07\/iredmail-web-admin-login.png\" alt=\"\" class=\"wp-image-17829\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/07\/iredmail-web-admin-login.png?v=1689191873 1425w, https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/07\/iredmail-web-admin-login-768x410.png?v=1689191873 768w\" sizes=\"(max-width: 1425px) 100vw, 1425px\" \/><\/figure><\/div>\n\n\n<p>When you login, you will land of iRedMail Dashboard.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1283\" height=\"661\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/07\/iredadmin-dashboard.png\" alt=\"\" class=\"wp-image-17828\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/07\/iredadmin-dashboard.png?v=1689191857 1283w, https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/07\/iredadmin-dashboard-768x396.png?v=1689191857 768w\" sizes=\"(max-width: 1283px) 100vw, 1283px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"accessing-roundcube-web-mail-client\">Accessing Roundcube Web Mail Client<\/h3>\n\n\n\n<p>You can also login to Roundcube webmail to read the mails that were generated after the installation. To login to Roundcube, use the URL; <code>https:\/\/&lt;your-domain&gt;.com\/mail\/<\/code>.<\/p>\n\n\n\n<p>Get the login details from the iRedMail.tips file.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1137\" height=\"554\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/07\/iredmail-roundcube-login.png\" alt=\"\" class=\"wp-image-17826\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/07\/iredmail-roundcube-login.png?v=1689191798 1137w, https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/07\/iredmail-roundcube-login-768x374.png?v=1689191798 768w\" sizes=\"(max-width: 1137px) 100vw, 1137px\" \/><\/figure><\/div>\n\n\n<p>You may also be interested in our article on how to <a href=\"https:\/\/kifarunix.com\/how-to-install-and-setup-roundcube-webmail-on-debain-9\/\" target=\"_blank\" rel=\"noopener noreferrer\">install and setup Roundcube Webmail on Debian 12\/11\/10<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1457\" height=\"785\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/07\/iredmainl-roundcube.png\" alt=\"\" class=\"wp-image-17827\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/07\/iredmainl-roundcube.png?v=1689191837 1457w, https:\/\/kifarunix.com\/wp-content\/uploads\/2023\/07\/iredmainl-roundcube-768x414.png?v=1689191837 768w\" sizes=\"(max-width: 1457px) 100vw, 1457px\" \/><\/figure>\n\n\n\n<p>Read more on the <a href=\"https:\/\/docs.iredmail.org\/index.html\" target=\"_blank\" rel=\"noreferrer noopener\">documentation<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"other-tutorials\">Other tutorials<\/h3>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/configure-sendmail-to-use-gmail-relay-on-ubuntu-18-04-debian-10-9\/\" target=\"_blank\" rel=\"noreferrer noopener\">Configure Sendmail to Use Gmail Relay on Ubuntu 18.04\/Debian 10\/9<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/configure-postfix-to-use-gmail-smtp-on-ubuntu-18-04\/\" target=\"_blank\" rel=\"noreferrer noopener\">Configure Postfix to Use Gmail SMTP on Ubuntu 18.04<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Welcome to our tutorial on how to install and setup iRedMail mail server on Ubuntu 22.04\/20.04. iRedMail is an open-source mail server solution. It provides<\/p>\n","protected":false},"author":1,"featured_media":17834,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[121,272,1006,64],"tags":[7047,269,270,7044,7046,7045],"class_list":["post-1338","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","category-email","category-sendmail","category-ubuntu-18-04","tag-install-iredmail-on-ubuntu","tag-iredmail","tag-roundcube","tag-setup-iredmail-mail-server-ubuntu","tag-ubuntu-20-04-iredmail","tag-ubuntu-22-04-iredmail-install","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50","resize-featured-image"],"_links":{"self":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/1338"}],"collection":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/comments?post=1338"}],"version-history":[{"count":17,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/1338\/revisions"}],"predecessor-version":[{"id":21085,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/1338\/revisions\/21085"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media\/17834"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=1338"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=1338"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=1338"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}