CentOS+postfix+ExtMail+amavisd-new+Spam_Locker+DSpam配置指南:三、配置MTA-Postfix

 1、安装postfix

安装postfix

 

  
  
  
  
  1. shell 
  2. # yum install postfix 
  3. # rpm -e sendmail 

2、配置postfix

  
  
  
  
  1. shell 
  2. # postconf -n > /etc/postfix/main2.cf 
  3. # mv /etc/postfix/main.cf /etc/postfix/main.cf.old 
  4. # mv /etc/postfix/main2.cf /etc/postfix/main.cf 

编辑main.cf:

  
  
  
  
  1. shell 
  2. # vi /etc/postfix/main.cf 

增加如下内容:

 

  
  
  
  
  1. # hostname 
  2. mynetworks = 127.0.0.1 
  3. myhostname = mail.extmail.org 
  4. mydestination = $mynetworks $myhostname 
  5.  
  6. # banner 
  7. mail_name = Postfix - by extmail.org 
  8. smtpd_banner = $myhostname ESMTP $mail_name 
  9.  
  10. # response immediately 
  11. smtpd_error_sleep_time = 0s 
  12.  
  13. # Message and return code control 
  14. message_size_limit = 5242880 
  15. mailbox_size_limit = 5242880 
  16. show_user_unknown_table_name = no 
  17.  
  18. # Queue lifetime control 
  19. bounce_queue_lifetime = 1d 
  20. maximal_queue_lifetime = 1d 

设置postfix开机自启:

 

  
  
  
  
  1. shell 
  2. # chkconfig postfix on 

 

你可能感兴趣的:(centos,postfix,安装配置,dspam,ExtMail,Amavisd-new)