快速业务通道

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

作者 佚名技术 来源 服务器技术 浏览 发布时间 2012-07-05

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 = and postfix = ''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 = and postfix = ''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 = and postfix = ''y''
  hosts = 127.0.0.1   修改Courier相关设置,/etc/courier/imapd:   AUTHMODULES="authdaemon"   IMAP_CAPABILITY="IMAP4rev1 CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT
THREAD=REFERENCES SORT AUTH=CRAM-MD5 AUTH=CRAM-SHA1 IDLE"   修改/etc/courier/pop3d   AUTHMODULES="authdaemon"   POP3AUTH="LOGIN CRAM-MD5 CRAM-SHA1"   修改/etc/courier/authdaemonrc   authmodulelist="authmysql authpam"   使用mysql验证和pam验证。   修改/etc/courier/authmysqlrc   MYSQL_SERVER 127.0.0.1
  MYSQL_USERNAME mysql-postfix-user
  MYSQL_PASSWORD mysql-postfix-pass
  #MYSQL_SOCKET /var/run/mysql/mysql.sock
  MYSQL_PORT 0
  MYSQL_OPT 0
  MYSQL_DATABASE postfix
  MYSQL_USER_TABLE users   MYSQL_LOGIN_FIELD email
  MYSQL_CLEAR_PWFIELD clear
  MYSQL_UID_FIELD uid
  MYSQL_GID_FIELD gid
  MYSQL_HOME_FIELD homedir
  MYSQL_MAILDIR_FIELD maildir   SASL library   创建/etc/postfix/sasl/smtpd.conf:   pwcheck_method: PAM   PAM-MySQL   创建/etc/pam.d/smtp:   auth optional pam_mysql.so host=localhost db=postfix user=
mysql-postfix-user passwd=mysql-postfix-pass table=users
usercolumn=email passwdcolumn=clear crypt=n
  account required pam_mysql.so host=localhost db=postfix user=mysql-postfix-user passwd=mysql-postfix-pass usercolumn=email passwdcolumn=clear crypt=n 关键词:邮件

凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!

分享到: 更多

Copyright ©1999-2011 厦门凌众科技有限公司 厦门优通互联科技开发有限公司 All rights reserved

地址(ADD):厦门软件园二期望海路63号701E(东南融通旁) 邮编(ZIP):361008

电话:0592-5908028 传真:0592-5908039 咨询信箱:web@lingzhong.cn 咨询OICQ:173723134

《中华人民共和国增值电信业务经营许可证》闽B2-20100024  ICP备案:闽ICP备05037997号