构建反病毒反垃圾邮件系统(三)

2008-02-23 06:16:46来源:互联网 阅读 ()

新老客户大回馈,云服务器低至5折


  mysql-virtual.cf
  
  user=mysql-postfix-user
  password=mysql-postfix-pass
  dbname=postfix
  table=virtual
  select_field=destination
  where_field=email
  hosts=127.0.0.1
  
  mysql-virtual-maps.cf
  
  user=mysql-postfix-user
  password=mysql-postfix-pass
  dbname=postfix
  table=users
  select_field=maildir
  where_field=email
  additional_conditions=andpostfix='y'
  hosts=127.0.0.1
  
  mysql-virtual-uid.cf
  
  user=mysql-postfix-user
  password=mysql-postfix-pass
  dbname=postfix
  table=users
  select_field=uid
  where_field=email
  additional_conditions=andpostfix='y'
  hosts=127.0.0.1
  
  mysql-virtual-gid.cf
  
  user=mysql-postfix-user
  password=mysql-postfix-pass
  dbname=postfix
  table=users
  select_field=gid
  where_field=email
  additional_conditions=andpostfix='y'
  hosts=127.0.0.1
  
  修改Courier相关配置,/etc/courier/imapd:
  
  AUTHMODULES="authdaemon"
  
  IMAP_CAPABILITY="IMAP4rev1CHILDRENNAMESPACETHREAD=ORDEREDSUBJECT
  THREAD=REFERENCESSORTAUTH=CRAM-MD5AUTH=CRAM-SHA1IDLE"
  
  修改/etc/courier/pop3d
  
  AUTHMODULES="authdaemon"
  
  POP3AUTH="LOGINCRAM-MD5CRAM-SHA1"
  
  修改/etc/courier/authdaemonrc
  
  authmodulelist="authmysqlauthpam"
  
  使用mysql验证和pam验证。
  
  修改/etc/courier/authmysqlrc
  
  MYSQL_SERVER127.0.0.1
  MYSQL_USERNAMEmysql-postfix-user
  MYSQL_PASSWORDmysql-postfix-pass
  #MYSQL_SOCKET/var/run/mysql/mysql.sock
  MYSQL_PORT0
  MYSQL_OPT0
  MYSQL_DATABASEpostfix
  MYSQL_USER_TABLEusers
  
  MYSQL_LOGIN_FIELDemail
  MYSQL_CLEAR_PWFIELDclear
  MYSQL_UID_FIELDuid
  MYSQL_GID_FIELDgid
  MYSQL_HOME_FIELDhomedir
  MYSQL_MAILDIR_FIELDmaildir
  
  SASLlibrary
  
  创建/etc/postfix/sasl/smtpd.conf:
  
  pwcheck_method:PAM
  
  PAM-MySQL
  
  创建/etc/pam.d/smtp:
  
  authoptionalpam_mysql.sohost=localhostdb=postfixuser=
  mysql-postfix-userpasswd=mysql-postfix-passtable=users
  usercolumn=emailpasswdcolumn=clearcrypt=n
  accountrequiredpam_mysql.sohost=localhostdb=postfixuser=mysql-postfix-userpasswd=mysql-postfix-passusercolumn=emailpasswdcolumn=clearcrypt=n



标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇: 构建反病毒反垃圾邮件系统(二)

下一篇: 构建反病毒反垃圾邮件系统(四)