Friday, April 25, 2014

Introduction to mail

        Mail Server

Mail server components :

i.) mta - Mail transfer Agent
- It is used to relay mails from point to poing until it is delievered
- It works on Port no 25
- It uses SMTP

ii.) mda - Mail delievery Agent
- It deleivers mail to reciepents local message store
- By Default, it is /var/spool/mail/user

iii.) mua - Mail user Agent
- It is used to send and recieve email from client side

--------------------------------------------------------------------------------
--------------------------------------------------------------------------------

        Mail server

# yum install postfix -y
# vim /etc/postfix/main.cf
line no        73  hostname = your hostname
line no     83  domainname = your domain name
uncomment    99  myorganiz
uncomment    113 init_interface = all
comment        116 init_interface = local host
uncomment    165
line no        264 My network = 192.168.10.0/255.255.255.0,127.0.0.1/255.0.0.0
         :wq
# service postfix restart
# chkconf postfix on

---------------------------------------------------------------------------------

        Mail Forwarding

# vim /etc/aliases
  Goto last line
  root : username
  :wq
# newaliases

---------------------------------------------------------------------------------

        How to send email

# mail user@hostname
   OR
# mail root@sama.expanor.local
  Subject:
  Body of mail
  .Enter        // to send email

---------------------------------------------------------------------------------

        To Create Mail box

# yum install mutt -y
# mutt

---------------------------------------------------------------------------------

        To view email

# cd /var/spool/messages

---------------------------------------------------------------------------------
---------------------------------------------------------------------------------

No comments:

Post a Comment