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

来源:云南设计港 时间:2007-09-27 13:43:00 

 



  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

 

标签:
0
投稿

猜你喜欢

  • VMware虚拟机提示以独占方式锁定此配置文件失败的解决方法

    2022-08-07 02:22:02
  • Discuz!如何添加论坛创始人 提升论坛安全级别

    2009-10-15 17:32:00
  • ASP漏洞全接触-SQL注入高级篇

    2007-10-31 20:10:00
  • 详解linux下nohup日志输出过大问题解决方案

    2023-11-03 18:20:49
  • 怎样学好搜索引擎优化SEO?

    2009-02-24 08:51:00
  • 五大类二十五个改善网站提高浏览量的方法

    2008-11-27 15:13:00
  • 支付宝携手立佰趣在沪推出指纹支付业务

    2009-10-14 10:18:00
  • Exchange服务器的备份与保护

    2010-03-01 18:54:00
  • UCenter Home重大功能改进 积分系统篇

    2009-06-03 12:11:00
  • Exchange 2003安全:用筛选器反垃圾邮件

    2010-02-28 18:49:00
  • 如何设置Godaddy域名的Google邮局

    2010-04-21 13:03:00
  • SSH在登录服务器后如何显示基础信息

    2023-10-19 22:08:00
  • Google防止垃圾评论的战役

    2007-12-15 08:30:00
  • sns与webgame的完美结合

    2009-10-31 00:21:00
  • 详解使用VMware安装Permeate靶场系统实践

    2022-02-10 19:27:56
  • 路径突破 谈谈英文站比中文站更能做成功

    2008-12-01 15:18:00
  • Docker容器 日志中文乱码问题解决办法

    2023-10-01 21:29:10
  • centOS6中使用crontab定时运行执行jar程序的脚本

    2023-11-03 01:23:50
  • 应用程序重在人性化服务

    2007-10-24 17:46:00
  • 防范SQL注入漏洞asp代码

    2007-10-07 12:31:00
  • asp之家 网站运营 m.aspxhome.com