postfix

postfix
(1)配置dns服务器
   并添加MX记录
(2)rpm -ivh postfix----
   rpm -ivh perl-Con---
   rpm -ivh dovecot----
   rpm -ivh system-switch-mail----
   rpm -ivh system-switch-mail-gonme---
(3)cd /etc/postfix
   vim main.cf
   69:myhostname = mail.abc.com
   77:mydomain = abc.com
   93:myorigin = $mydomain
   110:inet_interfaces = localhost, $myhostname
   155:mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
   255:mynetworks = 192.168.1.0/24,127------
   287:realy_domains = $mydestination
   410:home_mailbox = Maildir/
(4)vim /etc/dovecot.conf
       20:protocols = -----
       142:login_process_size=
       203:mail_location = maildir:~/Maildir
       620:pop3_uidl_format---
       
(5)mkdir /etc/skel/Maildir
   chmod 700 /etc/skel/Maildir
(6)useradd lala
   passwd lala
   useradd haha
   passwd haha
   chown lala. /home/lala/Maildir
   chmod -R 700 /home/lala/Maildir
   chown haha. /home/haha/Maildir
   chmod -R 700 /home/haha/Maildir
(7)/etc/init.d/saslauthd restart
   /etc/init.d/sendmail stop
   /etc/init.d/postfix restart
   /etc/init.d/dovecot restart

你可能感兴趣的:(linux,postfix)