Activate and Configuer Postfix on Centos and RHEL

by
Share this Article: Facebook1Google+0Twitter1LinkedIn0Reddit0Pinterest0StumbleUpon0Digg

Lets   Give  a  definiton of  Postfix . its a mail  server  working like  a  alternative  of   senmail . the   config  file  is  maic.cf  is  simpler  then the  sendmail.cf   file ,  but  its  always  adviced  to make a baclfile before to make some changes. lets  show  you  how  to  install    this  tool    first ,

 

yum  install postfix

rpm  -ivh   postfix-xxxxxx   if  your  re  not  connected  to  internet

The  installation directory   is  /etc/postfix

now.  how  to   edit  the  main.cf  file

First  you  have to  activate  this  line  to   show the your  computer   hostname

#myhostname= host.domain.ltd

Now  you  have    to  point The   domain hostname

#hostname = domain.ltd

Activate  myorigine  directive

#myorigine=$mydomain

 

You  have  to  lines  to  limit   listening  to   local  or  all  computers

#inet interfaces = all

#inet interfaces = localhost

Now  youa  have  to  set  mynetword   directive  to  network adress  that    you have to  serv

#mynetworks = 168.100.189.0/28, 127.0.0.0/8

 

Configure  and start   postfix

after  editing en saving  file  its  now time to  start the  postfix

First make postfix  starting with   system

#chkconfig postfix  on

start   the  postfix  now with  the  new  configuration

#services  postfix  restart

 

Now  your  ready to  accept  email   from  any   host defined  in the directive

 

pleas e  enjoy

 

Sourde  :   RHCE  book

For questions please refer to our Q/A forum at : http://ask.unixmen.com/

Share this Article: Facebook1Google+0Twitter1LinkedIn0Reddit0Pinterest0StumbleUpon0Digg