Web Mail Configuration on Debian 11

Administrasi Sistem Jaringan ❘ Webmail Configuration


A. Learning Objective

  • Understand the basic concepts of mail servers and how they work

  • Able to install and configure mail server



B. Learning Material

   Webmail server on Debian is an application that allows users to access and manage emails through a web interface. By using a webmail server, users can read, send, and manage emails from anywhere using a web browser.


C. Learning Preparation

   It would be beneficial to have some preparation before learning about DHCP server configuration. Some tools and materials could be useful for that, such as:


1. PC/LAPTOP

2. Internet


3. Iso file Linux Debian 11 (Server)



4. Iso file Windows 10 (Desktop)

5. PuTTY

6. VMware (for virtual machine)


D. Configuration



1.To install the packages required to run the mail server, run the following command: apt install postfix dovecot-imapd dovecot-pop3d. This command will install Postfix as the mail server, as well as Dovecot IMAP and POP3 to access emails. Make sure we run this command with root access.


2. After the installation is complete, a configuration pop up will appear. Select "Internet Site" as the configuration type to allow email communication using the SMTP protocol directly.


3. Enter the domain name that will be used for the email server, for example here team12.org


4.Simply leave this section blank, then select ok.


5. Enter another destination to confirm the mail, for example, mail.fibina.net.


6. For questions regarding forced synchronization updates to the mail queue, here we just select no.


7. Next is the limitation for mailbox size, we use the default of 0. Then, click OK to continue the installation.


8. Finally, the Internet Protocol that we will use. Since it is generally IPv4, we will use the IPv4 protocol. Then, click OK again.


9. If so, restart the postfix package to update, with the command 'systemctl restart postfix'


10. Open the configuration file /etc/dovecot/dovecot.conf with the command 'nano /etc/dovecot/dovecot.conf' then uncomment and edit this line so that only * remains. If you have saved the results with CTRL X> Y> ENTER.


11. Next, open the configuration file /etc/dovecot/conf.d/10-auth.conf, on this line it was originally yes, but we opened the fence and changed it to no. Save again with the shortcut CTRL X> Y> ENTER.


12. Then also edit the configuration file /etc/dovecot/conf.d/10-mail.conf, remove the hash marks on the following lines. Save the configuration result with CTRL X > Y > ENTER. Then if so, restart the dovecot package.





13. To add a new user to be used as an email account, run the 'adduser (user)' command and follow the instructions to set the password and other information for each user. For example here, we created two users, filzah and giri.




E. Result of Configuration

1. We will enter the windows client and search mail.team12.org, the round cube mail will appear. And we login using the user, after that we will send a message to another user. For example, here is from user filzah to giri.


2. Then we will log out of the filzah account, and log in to the giri account to see if the message has entered or not. And if the result is like this, then the message sent from filzah has successfully entered.


In conclusion, configuring a mail server on Debian involves setting up a mail server such as installation and configuring a webmail server such as Roundcube to allow email access through a web interface. Thus, users can send, receive, and manage emails more easily and flexibly.

Posting Komentar

0 Komentar