How to Install and Configure Mail Server in Ubuntu

preview_player
Показать описание
The video demonstrates How to Install and Configure Mail Server in Ubuntu.
The process installs following applications and services:
1. Apache, MariaDB, and PHP
2. Postfix
3. Dovecot IMAP and POP
4. Roundcube Webmail

Prerequisite: Two network cards (one connected to the Internet and the other one configured for DNS service) and a working DNS server in the domain.
For Testing: used two existing user accounts to send and receive e-mails.
-------------------------------------------------------------------------
#mailserver #mailserverconfiguration #ubuntumailserver
mail server
mail server configuration
mail server ubuntu
mail server setup
mail server setup ubuntu
mail server configuration in linux
mail server linux
Install and Configure Mail Server in Ubuntu
Install and Configure Mail Server in Linux
Installing and Configuring Mail Server in Ubuntu
Install and Configure Mail Server in Ubuntu Step-by-step.
Step-by-step Installation and Configuration of Mail Server in Ubuntu
Install and Configure Mail Server
How to Install and Configure Mail Server
Install Mail Server in Ubuntu
Install Mail Server in Ubuntu Step-by-step
Installing Mail Server in Ubuntu
Mail Server in Ubuntu
Рекомендации по теме
Комментарии
Автор

Ubuntu commands:
$ sudo apt-get update -y
$ sudo apt-get upgrade -y
$ sudo apt install apache2 apache2-utils
$ sudo apt install mariadb-server mariadb-client
$ sudo apt-get install mailutils #(make sure to configure "System mail name" the same as your domain name)
$ sudo apt install php7.4 libapache2-mod-php7.4 php7.4-mysql php-net-ldap2 php-net-ldap3 php-imagick php7.4-common php7.4-gd php7.4-imap php7.4-json php7.4-curl php7.4-zip php7.4-xml php7.4-mbstring php7.4-bz2 php7.4-intl php7.4-gmp php-net-smtp php-mail-mime php-net-idna2
$ sudo apt-get install postfix #(optional)
$ sudo systemctl status postfix
$ telnet gmail-smtp-in.l.google.com 25
$ sudo apt-get install dovecot-imapd dovecot-pop3d
$ sudo service dovecot restart
$ sudo service dovecot status
$ tar -xvf
$ sudo mv roundcubemail-1.4.8 /var/www/html/roundcubemail
$ sudo chown -R www-data:www-data /var/www/html/roundcubemail/
$ sudo chmod 755 -R /var/www/html/roundcubemail/
$ sudo mysql -u root
MariaDB [(none)]> CREATE DATABASE roundcube DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
MariaDB [(none)]> flush privileges; quit;
$ sudo mysql roundcube <
$ sudo nano # Make sure to create a virtual host for roundcube webmail that maps to your domain
$ sudo a2ensite roundcube.conf
$ sudo systemctl reload apache2
#before you can test sending and receiving domain emails, make sure to create the users in Ubuntu.

HudaTechTalk
Автор

Very nice and was looking for something local / sandbox to use with a CRM application to setup & learn its functionality but just local, no internet. I have a Proxmox server where I do things and now one can test / send emails from a specific application. How can one setup a local calendar that one can use for appointments / events / reminders etc. Is that also possible. That will enhance the functionallity testing / learning experience of this CRM system I try to understand.

itspottinger
Автор

Hello, the video was very helpful. Just a question, is possible to configure gmail or outlook instead of roundcude by just following the the similar steps? I am just a beginner with network configurations.

splwnow
Автор

I'm experiencing troubles.
How do we create new mail accounts and users exactly?
I could create an account for my own Ubuntu. I'm the only one here. I can't create other users. Do i need to create users on the UbuntuOS for people who want to connect and send mails? Thanks

RanjaNyAina
Автор

php7.4 is not insatll on my ubuntu 22.04

ITTown-nevh
Автор

hello, IMAP connect: NOT OK(Login failed for CEO against localhost from x.x.x.x AUTHENTICATE PLAIN: Authentication failed.) could you help me with this error

AntonioPerez-uwbc
Автор

what do you mean "create in ubuntu"? how do i add new users to this?

MajliTech
Автор

hello, i can send mail but can't receive it :(

DatNguyen-lhdl
Автор

@ 17:40 you load the initial db setup. it defaulted to trying to use root and did not have access.
i needed to use the correct password.
in this case sudo mysql -u roundcubeuser -p roundcube <

dgqrgzv
Автор

This install is insecure plus you got postfix running without touching any config files for postfix or dovecot? huh.

pinklloyd
Автор

Can connect these emails to use for outlook?

EvolvedLeaks