Creating Postfix Mail Server

postfix

Below are the steps included in creating the Postfix Mail server:

#yum install postfix*

#chkconfig postfix on

#service postfix restart

Postfix configuration file: /etc/postfix/main.cf

#vim /etc/postfix/main.cf

Here in this config file search for the word ‘ inet ‘ and remove the hash symbol at inet-interfaces = all

Add hash symbol at localhost i.e.

#inet_interfaces = localhost

Remove # from myorigin i.e.

myorigin = $mydomain

Write an additional line like

mydomain = yourdomain.com

write additional line like:

myhostname = serverx.example.com

mydestination =$myhome, localhost.$mydomain, localhost, all

save the file and exit

Now restart the service i.e.

#service postfix restart

Now add the users that you wish to have this mail server.

Lets suppose 2 users like user1 & user2:

Now from the client side these two users can mail to each-other.

Example: If user1 have to send mail to user2 then:

#mail user1@serverx.example.com

Advertisements