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

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

以Procmail-Gateway過濾寄出信件病毒(3)_Mail服務器教程

2024-09-08 23:46:24
字體:
來源:轉載
供稿:網友
8、修改sendmail.cf

  vi /etc/sendmail.cf
  在檔案最后加上以下的內容:
  注意:復制/貼上以下內容有時會因為html tag的問題造成sendmail服務無法重新啟動,此時可下載完整sendmail.cf范例文件 (右鍵/另存目標)至本機再復制/貼上至服務器或上傳至服務器。
  #在M
  ##### @(#)procmail.m4 8.11 (Berkeley) 5/19/1998 #####
  Mprocmail, P=/usr/bin/procmail, F=DFMSPhnu9, S=11/31, R=21/31, T=DNS/RFC822/X-Unix,
  A=procmail -f- -Y -m $h $f $u
  # (空此行一定要先空tab)

  # 在my name for error messages設定的后面加上下面兩行
  # Avoid host map lookups if address has this pseudo-domain on it CPprocmail

  # 在Ruleset 98后面加上下面設定
  # Filter all mail through procmail
  #
  # Strip the pseudo-domain and continue (already gone through the filter)
  R$*<@$+.procmail>$* $@ $1<@$2.>$3
  R$*<@$+.procmail.>$* $@ $1<@$2.>$3
  #
  # No pseudo-domain, send to filtering mailer
  R$*<@$+.>$* $#procmail $@/etc/procmail/filter.rc $:$1<@$2.procmail>$3
  R$*<@$+>$* $#procmail $@/etc/procmail/filter.rc $:$1<@$2.procmail>$3

  9、建立過濾檔filter.rc

  vi /etc/procmail/filter.rc
  范例文件內容如下:
  LOGFILE=/var/log/procmail.log
  NL="
  "
  LOGABSTRACT=no

  POISONED_EXECUTABLES=/etc/procmail/poisoned-files
  INCLUDERC=/etc/procmail/html-trap.procmail

  :0 # re-send the message
  ! -oi -f "$@"

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 桦甸市| 思南县| 巩义市| 剑河县| 长宁区| 万年县| 天祝| 临湘市| 横峰县| 贞丰县| 志丹县| 林西县| 德安县| 阆中市| 育儿| 中阳县| 工布江达县| 桑日县| 闻喜县| 泉州市| 漠河县| 宁陵县| 沈丘县| 清水县| 凤庆县| 周口市| 乐安县| 搜索| 额尔古纳市| 保德县| 清水县| 平山县| 天峻县| 汽车| 合川市| 乐至县| 河曲县| 长兴县| 贵阳市| 井研县| 永顺县|