当前位置: 首页 > 图文教程 > 服务器 > Web服务器 > 构建反病毒反垃圾邮件系统(一)

Web服务器
增强WEB服务器IIS安全性的五个简单有效措施
图解Web服务器和FTP服务器安全配置[1]
linux操作系统下的域名解析系统设置
WEB专用服务器的安全设置技巧
Win Server 2003个人网络服务器安全攻略
在WIN2000系统下安装JSP服务器
保护WEB服务器的15个技巧
Windows下打造完美的服务器平台
使用IIS 5.0调整Web服务器的艺术与科学
如何架设基于windows XP的Web服务器
WEB服务器流量超负载:如何分散解决
另僻蹊径 通过IIS高效管理Web服务器
国外空间出现乱码的几种解决办法
使用反向代理技术保护Web服务器
网络应用 介绍并分析P2P流量识别与监测
针对Web服务器的八种攻击方式
用ubuntu server8.10做php-web服务器
PHPNow服务器套件安装
Windows 2003 Server安全配置指南
Microsoft Windows 2003集群攻略

Web服务器 中的 构建反病毒反垃圾邮件系统(一)


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-02   浏览: 49 ::
收藏到网摘: n/a

  原来qmail系统的邮箱一天起码要收十几份垃圾、病毒邮件,实在是比较烦,不是很喜欢qmail,特别是日志,让人不知所云,所以干脆考虑更换邮件系统。

  系统平台为Debian Woody 3.0

  一、邮件系统的安装

  1、软件包安装

  Postfix+Courier-IMAP+Cyrus-SASL+PAM_MySQL+MySQL这种安装方式简单易行,在Debian下的安装更加方便:

  # apt-get install courier-pop postfix-mysql postfix-tls courier-authdaemon\
  courier-authmysql libpam-mysql libsasl7 libsasl-modules-plain courier-imap

  如果你的系统本身没有mysql,那么在上面的列表里还要加上mysql-server。apt在安装过程中会有简单的提示,要求填上系统的域名等信息。

  2、postfix的配置

  修改main.cf:

  添加:
  home_mailbox = Maildir/

  告诉postfix使用Maildir方式

  mydestination = $myhostname, $transport_maps

  告诉postfix发送$myhostname(本机)和$transport_maps(transport表里的域名)的邮件。

  alias_maps = mysql:/etc/postfix/mysql-aliases.cf
  relocated_maps = mysql:/etc/postfix/mysql-relocated.cf
  transport_maps = mysql:/etc/postfix/mysql-transport.cf
  virtual_maps = mysql:/etc/postfix/mysql-virtual.cf

  告诉postfix从哪里找这些表。

  local_recipient_maps = $alias_maps $virtual_mailbox_maps unix:passwd.byname

  postfix传递给本地收件人的几种方法。

  virtual_mailbox_base = /home/vmail
  virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-maps.cf
  virtual_uid_maps = mysql:/etc/postfix/mysql-virtual-uid.cf
  virtual_gid_maps = mysql:/etc/postfix/mysql-virtual-gid.cf

  虚拟用户的信息。

  broken_sasl_auth_clients = yes
  smtpd_sasl_auth_enable = yes
  smtpd_sasl_security_options = noanonymous

  启用sasl,必须验证才能发信。

  smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_unknown_recipient_
domain,reject_non_fqdn_recipient,check_relay_domains

  发信限制。

  还可以加上一些其他的参数:

  disable_vrfy_command = yes

  将vrfy功能关掉。