Linux Postfix Mail Server

Ticker

6/recent/ticker-posts

Linux Postfix Mail Server

 Question: xFusionCorp Industries has planned to set up a common email server in Stork DC. After several meetings and recommendations, they have decided to use postfix as their mail transfer agent and dovecot as an IMAP/POP3 server. We would like you to perform the following steps:

Install and configure postfix on Stork DC mail server.

Create an email account ammar@stratos.xfusioncorp.com identified by B4zNgHA7Ya.

Set its mail directory to /home/ammar/Maildir.

Install and configure dovecot on the same server.

Please Note:-  Perform the below commands based on your question server,  user name & other details that might differ. So please read the task carefully before executing it. 
All the Best 👍

Solution:  

1. Login on the Mail  server as per the task and switch root user

thor@jump_host /$ ssh groot@stmail01

The authenticity of host 'stmail01 (172.16.238.11)' can't be established.

ECDSA key fingerprint is SHA256:SySamszyWhhLGFiybhGBqfrr8g55wS/3e37ZpBOvICs.

ECDSA key fingerprint is MD5:6d:31:18:2a:f9:07:f3:29:dd:0a:d3:1f:6e:04:0a:db.

Are you sure you want to continue connecting (yes/no)? yes

Warning: Permanently added 'stmail01,172.16.238.17' (ECDSA) to the list of known hosts.

groot@stmail01's password:

[groot@stmail01 ~]$ sudo su -

 We trust you have received the usual lecture from the local System

Administrator. It usually boils down to these three things:

     #1) Respect the privacy of others.

    #2) Think before you type.

    #3) With great power comes great responsibility.

 [sudo] password for groot:

[root@stmail01 ~]#

2. Install the packages  Postfix & Dovecot 

[root@stmail01 ~]# yum install postfix -y

Loaded plugins: fastestmirror, ovl

Loading mirror speeds from cached hostfile

 * base: mirror.steadfastnet.com

 * extras: mirror.cs.uwp.edu

 * updates: mirror.centos.iad1.serverforge.org

Resolving Dependencies

--> Running transaction check

---> Package postfix.x86_64 2:2.10.1-9.el7 will be installed

--> Finished Dependency Resolution

 Dependencies Resolved

 ===========================================================================================================

 Package                 Arch                   Version                         Repository            Size

===========================================================================================================

Installing:

 postfix                 x86_64                 2:2.10.1-9.el7                  base                 2.4 M

 

Transaction Summary

===========================================================================================================

Install  1 Package

 

Total download size: 2.4 M

Installed size: 12 M

Downloading packages:

postfix-2.10.1-9.el7.x86_64.rpm                                                     | 2.4 MB  00:00:00    

Running transaction check

Running transaction test

Transaction test succeeded

Running transaction

  Installing : 2:postfix-2.10.1-9.el7.x86_64                                                           1/1

  Verifying  : 2:postfix-2.10.1-9.el7.x86_64                                                           1/1

 Installed:

  postfix.x86_64 2:2.10.1-9.el7                                                                           

 Complete!

[root@stmail01 ~]#

[root@stmail01 ~]# yum install dovecot -y

Loaded plugins: fastestmirror, ovl

Loading mirror speeds from cached hostfile

 * base: mirror.steadfastnet.com

 * extras: mirror.cs.uwp.edu

 * updates: mirror.centos.iad1.serverforge.org

Resolving Dependencies

--> Running transaction check

---> Package dovecot.x86_64 1:2.2.36-8.el7 will be installed

--> Processing Dependency: openssl >= 0.9.7f-4 for package: 1:dovecot-2.2.36-8.el7.x86_64

--> Processing Dependency: portreserve for package: 1:dovecot-2.2.36-8.el7.x86_64

Installed:

  dovecot.x86_64 1:2.2.36-8.el7                                                                           

 Dependency Installed:

  clucene-core.x86_64 0:2.3.3.4-11.el7    make.x86_64 1:3.82-24.el7    openssl.x86_64 1:1.0.2k-21.el7_9  

  portreserve.x86_64 0:0.0.5-11.el7     

Complete!

[root@stmail01 ~]#


3. Kindly refer to the below video for the Configuration part


4. Click on Finish & Confirm to complete the task successfully

                Feel free to connect support chat for online assistance 

Happy Learning!!!!

Apart from this if you need more clarity,  I have made a  tutorial video on this, please go through and share your comments. Like and share the knowledge






Post a Comment

11 Comments

  1. Getting stuck at authentication part of dovecot test. following the same steps like in your video though

    ReplyDelete
    Replies
    1. did you able to telnet ports ? make sure all steps you followed. Still you have problem feel free to connect online chat support will assist you

      Delete
  2. Followed the instructions in the video. But got this on dovecot varification step:
    [root@stmail01 groot]# telnet stmail01 110
    Trying 172.16.238.17...
    Connected to stmail01.
    Escape character is '^]'.
    -ERR Auth process broken
    Connection closed by foreign host.

    ReplyDelete
  3. all works ty for the guide

    ReplyDelete
  4. Thank you for this page. It helps. Suggestion: for a video like this, I think it is important to add voice. For instance, where did you get the cidr numner you used in the /etc/postfix/main.cf. Also, we would like an explanation of each changed line in the main.cf file.

    ReplyDelete
    Replies
    1. Indeed , intention not to add voice was for self learning & troubleshooting task by your own. CIDR you get form the host by running ifconfig. Sure will try to post soon explanation of each changed line. Feel free to connect me for any help or support required. Keep Learning

      Delete
  5. Please, I would like to learn more from you. Can we connect over LinkedIn at www.linkedin.com/in/magamudi.

    I also feel like this video should have a voice to explain the process and why we are making the changes in the configuration file at /etc/postfix/main.cf. Lastly, I would like to know where you got the cidr number you used in the mynetwork line in the conf file.

    ReplyDelete
    Replies
    1. Thanks for your kind words. Sure I wont mind to teach you , but due to the current work commitment I cant commit you time. For Now you can ping me online support chat or drop email id will revert with solutions

      Delete
  6. Hello! Dont forget to uncomment Mode = 0666

    ReplyDelete

Latest Posts

KodeKloud Kubernetes Security CKS  Lab Challenge 4 |  Audit-policy | Install & configure falco utility | Inspect the API server audit logs and identify the user