国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 服務器 > Mail服務器 > 正文

構建反病毒反垃圾郵件系統(一)_Mail服務器教程

2024-09-08 23:46:22
字體:
來源:轉載
供稿:網友
  原來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功能關掉。

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 普洱| 开封市| 分宜县| 惠来县| 霞浦县| 大冶市| 衡水市| 临汾市| 孝义市| 玛沁县| 桃园县| 肃宁县| 荆州市| 丹棱县| 长武县| 长治市| 石狮市| 密云县| 米脂县| 盐津县| 孟津县| 府谷县| 扬中市| 顺平县| 南木林县| 大埔县| 丹阳市| 灌阳县| 金秀| 分宜县| 万全县| 阳城县| 桂东县| 皮山县| 贡山| 沅陵县| 吉木萨尔县| 建瓯市| 丹江口市| 灵川县| 和田县|