| 订阅 | 在线投稿
分享
 
 
当前位置: 王朝网络 >> perl >> ji yu Sendmail he Perl de you jian fu jian guo lv xi tong

ji yu Sendmail he Perl de you jian fu jian guo lv xi tong

2008-05-18 22:12:25 编辑來源:互联网 评论
 
 
 
本文为【基于Sendmail和Perl的邮件附件过滤系统】的拼音翻译版
  yi qian yan :
  sui zhe email zai qi ye li guang fan shi yong , ta yi jing cheng wei chuan bo bing du de zui zhu yao de shou duan , bao hu qi ye
  yong hu mian shou ke neng dai bing du de you jian fu jian de gan ran , you qi shi ke zhi xing wen jian de you jian fu jian , wo men
  xu yao guo lv na xie ke neng dai you bing du de fu jian de you jian , dang qian zhu yao de zuo fa shi zai Sendmail ba
  you jian song dao yong hu xin xiang qian you Procmail jin xing guo lv , dan shi geng hao de fang fa shi zai SMTP chuan song qi jian
  you Sendmail ben shen jin xing guo lv , ben wen jiu shi chong dian zai yu jiang shu ru he shi yong Sendmail zai SMTP
  chuan shu qi jian jin xing guo lv 。
  er ji yu Sendmail de guo lv qi de you dian
  jiao zhi yu chuan tong de Procmail de you jian guo lv qi , ji yu Sendmail de you ru xia you dian :
  1) dui mei feng you jian guo lv yi ci , er bu shi dui mei ge jie shou zhe guo lv yi ci ( chuan tong de ji yu Procmail de zuo fa )。
  2) ru guo an zhuang zai qi ye de zhu you jian fu wu qi shang , ke yi zai di yi dao ru kou ju jue jin lai de dai you ke zhi xing fu jian de you jian 。
  3) ke yi li yong internet shang you jing yan de cheng xu yuan xie de guo lv cheng xu , er bu shi zi ji xie de Procmail guo lv cheng xu 。
  4) ke yi fang zhi qi ye nei bu yong hu fa chu ke zhi xing de fu jian de you jian gei wai bu yong hu , cheng wei hao de internet gong min 。
  san suo xu ruan jian
  wo men xuan yong kai fang yuan de ji yu Sendmail he Perl yu yan de MIMEDefang guo lv xi tong , ta li yong
  zui xin ban ben Sendmail ti gong de mail filter API qie shi yong Perl yu yan xie de cheng xu he guo lv gui ze 。
  qi zhu ye zai :
  http://www.roaringpenguin.com/mimedefang/
  si bu zhou
  a. xia zai suo xu de xiang guan ruan jian
  yi tai zheng zai gong zuo de Linux fu wu qi ( zhe li wo yong de shi Redhat 7.2)
  Perl 5.001 huo zhe geng gao (Redhat 7.2 yi jing dai you )
  si ge suo xu de Perl fu jia mo kuai
  MIME-tools-5.410.tar.gz
  IO-stringy-1.212.tar.gz
  MIME-Base64-2.11.tar.gz
  MailTools-1.1401.tar.gz
  Sendmail 8.12.1
  MIMEDefang 2.1
  b. bian yi bing an zhuang si ge Perl mo kuai
  zhi jie jin ru mei ge mu lu yun xing perl Makefile.PL;make;make test;make install ji ke 。
  cd /root
  for i in ./*;do tar xvfz $i;done
  cd mei ge xiang ying de mo kuai mu lu
  perl Makefile.PL
  make
  make test ( que bao ni ce shi cheng gong )
  make install
  c. bian yi Sendmail jia ru MILTER zhi chi
  fang xia mian de xing zai devtools/Site/site.config.m4 ( yong VI chuang jian gai wen jian )
  APPENDDEF(`conf_sendmail_ENVDEF',`-DMILTER')
  que bao bian yi guo cheng zhong kan dao Sendmail dai shen shu -DMILTER jin xing bian yi 。
  xin de Sendmail ban ben jia qiang le an quan xing , bu zai yun xing yi suid, xu yao she zhi yong hu ming he zu ming smmsp,
  zai /etc/passwd zhong jia ru xia mian de xing :
  smmsp:x:25:25:Sendmail:/:
  zai /etc/group zhong jia ru xia mian de xing :
  smmsp:x:25:
  cd /root/sendmail-8.12.1
  cd sendmail
  sh Build
  cd ../cf/cf
  cp generic-linux.mc sendmail.mc
  vi sendmail.mc ( qie fang xia mian de xing dao gai wen jian zhong )
  define(`confPRIVACY_FLAGS', `authwarnings,needmailhelo,novrfy,noexpn,restrictqrun')dnl
  INPUT_MAIL_FILTER(`mimedefang', `S=unix:/var/run/mimedefang.sock, F=T, T=S:60s;R:60s;E:5m')
  FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
  FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl
  FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl
  FEATURE(`access_db')dnl
  FEATURE(redirect)dnl
  FEATURE(always_add_domain)dnl
  FEATURE(use_cw_file)dnl
  FEATURE(use_ct_file)dnl
  FEATURE(local_procmail,`',`procmail -t -Y -a $h -d $u')dnl
  MAILER(smtp)dnl
  MAILER(procmail)dnl
  Cwlocalhost.localdomain
  qi zhong INPUT_MAIL_FILTER xing shi MIMEDefang suo bi xu de 。
  sh Build sendmail.cf
  sh Build install-cf
  cd ../..
  cd sendmail
  sh Build install
  cd ../libmilter
  sh Build install ( chuang jian libmilter ku wen jian gong MIMEDefang shi yong )
  dui qi ta de ge zhong ying yong cheng xu mu lu , tong yang yong sh Build install an zhuang 。
  d. bian yi MIMEDefang
  cd sendmail-8.12.1
  mkdir -p /usr/local/include/sendmail
  cp -R include/* /usr/local/include/sendmail
  cp -R sendmail/*.h /usr/local/include/sendmail
  mkdir -p /usr/local/lib
  cp obj.Linux.2.4.9-7smp.i686/*/*.a /usr/local/lib
  zhu : yong ni de obj.Linux.xxxxx ping tai de wen jian dai ti shang mian de obj.Linux.2.4.9-7smp.i686
  cd mimedefang-2.1
  ./configure
  make
  make install
  e. she zhi guo lv qi gui ze
  zai mimedefang-2.1/example xia mian you ge zhong yu ding yi de gui ze , ni xu yao kao bei yi ge dao
  /etc/mimedefang-filter
  xia mian shi wo yong de gui ze 。
  wo kao bei le suggested-minimum-filter-for-windows-clients dao /etc/mail xia qie gai cheng xia mian de
  $Administrator = 'itsecurity@yourdomain.com';
  $DaemonAddress = 'itsecurity@yourdomain.com';
  $Stupidity{"flatten"} = 0;
  $Stupidity{"NoMultipleInlines"} = 0;
  sub filter_begin {
  }
  sub filter {
  my($entity, $fname, $ext, $type) = @_;
  if (re_match_ext($entity, '^\.(exe|com|bat|vbs|scr|shs|dll|vxd|pif|reg|ocx)$')) {
  action_discard();
  action_notify_sender("Your message with attachment '$fname' had been deleted by our mail server because of security issue\n");
  return action_quarantine($entity, "The message with attchment '$fname' was deleted by mail server.");
  }
  return action_accept();
  }
  1;
  shang mian de guo lv gui ze biao shi shan chu dai shang mian suo lie chu de kuo zhan ming de you jian qie tong zhi fa song zhe you jian bei shan chu ,
  jie shou qi ta suo you de you jian 。 wo ye geng gai /usr/local/bin/mimedefang.pl wen jian yi zhi bu yao
  bao liu you jian fu jian zai /var/spool/MIMEDefang mu lu zhong , gai wen jian you xiang xi de zi wo jie shi ,
  qing bian ji gai wen jian qu diao bao liu yi fen bei shan chu you jian fu jian zai ying pan shang de bu fen 。
  f. qi dong xi tong bing ce shi
  jian dan di kao bei example mu lu xia de wei redhat er xie de redhat-sendmail-init-script dao
  /etc/rc.d/init.d/sendmail bing qie geng gai Sendmail qi dong bu fen wei
  /usr/sbin/sendmail -L sm-mta -bd -q30m
  /usr/sbin/sendmail -L sm-msp-queue -Ac -q30m
  ru guo ni de you jian fu wu qi mei tian xu yao chu li cheng qian shang wan de you jian , ze kao lv kao bei ling yi ge jiao ben
  redhat-sendmail-init-script-with-multiplexor dao /etc/rc.d/init.d/sendmail,
  jia kuai chu li su du 。
  zui hou yong /etc/rc.d/init.d/sendmail start qi dong sendmail, fa song dai .exe de fu jian jin xing ce shi 。【原文】【汉音对照
 
 
 
 
 
 
 
 
 
日版宠物情人插曲《Winding Road》歌词

日版宠物情人2017的插曲,很带节奏感,日语的,女生唱的。 最后听见是在第8集的时候女主手割伤了,然后男主用嘴帮她吸了一下,插曲就出来了。 歌手:Def...

兄弟共妻,我成了他们夜里的美食

老钟家的两个儿子很特别,就是跟其他的人不太一样,魔一般的执着。兄弟俩都到了要结婚的年龄了,不管自家老爹怎么磨破嘴皮子,兄弟俩说不娶就不娶,老父母为兄弟两操碎了心...

如何磨出破洞牛仔裤?牛仔裤怎么剪破洞?

把牛仔裤磨出有线的破洞 1、具体工具就是磨脚石,下面垫一个硬物,然后用磨脚石一直磨一直磨,到把那块磨薄了,用手撕开就好了。出来的洞啊很自然的。需要猫须的话调几...

我就是扫描下图得到了敬业福和爱国福

先来看下敬业福和爱国福 今年春节,支付宝再次推出了“五福红包”活动,表示要“把欠大家的敬业福都还给大家”。 今天该活动正式启动,和去年一样,需要收集“五福”...

冰箱异味产生的原因和臭味去除的方法

有时候我们打开冰箱就会闻到一股异味,冰箱里的这种异味是因为一些物质发出的气味的混合体,闻起来让人恶心。 产生这些异味的主要原因有以下几点。 1、很多人有这种习...

 
 
   yi qian yan :    sui zhe email zai qi ye li guang fan shi yong , ta yi jing cheng wei chuan bo bing du de zui zhu yao de shou duan , bao hu qi ye    yong hu mian shou ke neng dai bing du de you jian fu jian de gan ran , you qi shi ke zhi xing wen jian de you jian fu jian , wo men    xu yao guo lv na xie ke neng dai you bing du de fu jian de you jian , dang qian zhu yao de zuo fa shi zai Sendmail ba    you jian song dao yong hu xin xiang qian you Procmail jin xing guo lv , dan shi geng hao de fang fa shi zai SMTP chuan song qi jian    you Sendmail ben shen jin xing guo lv , ben wen jiu shi chong dian zai yu jiang shu ru he shi yong Sendmail zai SMTP    chuan shu qi jian jin xing guo lv 。    er ji yu Sendmail de guo lv qi de you dian    jiao zhi yu chuan tong de Procmail de you jian guo lv qi , ji yu Sendmail de you ru xia you dian :   1) dui mei feng you jian guo lv yi ci , er bu shi dui mei ge jie shou zhe guo lv yi ci ( chuan tong de ji yu Procmail de zuo fa )。   2) ru guo an zhuang zai qi ye de zhu you jian fu wu qi shang , ke yi zai di yi dao ru kou ju jue jin lai de dai you ke zhi xing fu jian de you jian 。   3) ke yi li yong internet shang you jing yan de cheng xu yuan xie de guo lv cheng xu , er bu shi zi ji xie de Procmail guo lv cheng xu 。   4) ke yi fang zhi qi ye nei bu yong hu fa chu ke zhi xing de fu jian de you jian gei wai bu yong hu , cheng wei hao de internet gong min 。    san suo xu ruan jian    wo men xuan yong kai fang yuan de ji yu Sendmail he Perl yu yan de MIMEDefang guo lv xi tong , ta li yong    zui xin ban ben Sendmail ti gong de mail filter API qie shi yong Perl yu yan xie de cheng xu he guo lv gui ze 。    qi zhu ye zai :   http://www.roaringpenguin.com/mimedefang/    si bu zhou   a. xia zai suo xu de xiang guan ruan jian    yi tai zheng zai gong zuo de Linux fu wu qi ( zhe li wo yong de shi Redhat 7.2)   Perl 5.001 huo zhe geng gao (Redhat 7.2 yi jing dai you )    si ge suo xu de Perl fu jia mo kuai   MIME-tools-5.410.tar.gz   IO-stringy-1.212.tar.gz   MIME-Base64-2.11.tar.gz   MailTools-1.1401.tar.gz   Sendmail 8.12.1   MIMEDefang 2.1   b. bian yi bing an zhuang si ge Perl mo kuai    zhi jie jin ru mei ge mu lu yun xing perl Makefile.PL;make;make test;make install ji ke 。   cd /root   for i in ./*;do tar xvfz $i;done   cd mei ge xiang ying de mo kuai mu lu   perl Makefile.PL   make   make test ( que bao ni ce shi cheng gong )   make install   c. bian yi Sendmail jia ru MILTER zhi chi    fang xia mian de xing zai devtools/Site/site.config.m4 ( yong VI chuang jian gai wen jian )   APPENDDEF(`conf_sendmail_ENVDEF',`-DMILTER')    que bao bian yi guo cheng zhong kan dao Sendmail dai shen shu -DMILTER jin xing bian yi 。    xin de Sendmail ban ben jia qiang le an quan xing , bu zai yun xing yi suid, xu yao she zhi yong hu ming he zu ming smmsp,    zai /etc/passwd zhong jia ru xia mian de xing :   smmsp:x:25:25:Sendmail:/:    zai /etc/group zhong jia ru xia mian de xing :   smmsp:x:25:   cd /root/sendmail-8.12.1   cd sendmail   sh Build   cd ../cf/cf   cp generic-linux.mc sendmail.mc   vi sendmail.mc ( qie fang xia mian de xing dao gai wen jian zhong )   define(`confPRIVACY_FLAGS', `authwarnings,needmailhelo,novrfy,noexpn,restrictqrun')dnl   INPUT_MAIL_FILTER(`mimedefang', `S=unix:/var/run/mimedefang.sock, F=T, T=S:60s;R:60s;E:5m')   FEATURE(`smrsh',`/usr/sbin/smrsh')dnl   FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl   FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl   FEATURE(`access_db')dnl   FEATURE(redirect)dnl   FEATURE(always_add_domain)dnl   FEATURE(use_cw_file)dnl   FEATURE(use_ct_file)dnl   FEATURE(local_procmail,`',`procmail -t -Y -a $h -d $u')dnl   MAILER(smtp)dnl   MAILER(procmail)dnl   Cwlocalhost.localdomain    qi zhong INPUT_MAIL_FILTER xing shi MIMEDefang suo bi xu de 。   sh Build sendmail.cf   sh Build install-cf   cd ../..   cd sendmail   sh Build install   cd ../libmilter   sh Build install ( chuang jian libmilter ku wen jian gong MIMEDefang shi yong )    dui qi ta de ge zhong ying yong cheng xu mu lu , tong yang yong sh Build install an zhuang 。   d. bian yi MIMEDefang   cd sendmail-8.12.1   mkdir -p /usr/local/include/sendmail   cp -R include/* /usr/local/include/sendmail   cp -R sendmail/*.h /usr/local/include/sendmail   mkdir -p /usr/local/lib   cp obj.Linux.2.4.9-7smp.i686/*/*.a /usr/local/lib    zhu : yong ni de obj.Linux.xxxxx ping tai de wen jian dai ti shang mian de obj.Linux.2.4.9-7smp.i686   cd mimedefang-2.1   ./configure   make   make install   e. she zhi guo lv qi gui ze    zai mimedefang-2.1/example xia mian you ge zhong yu ding yi de gui ze , ni xu yao kao bei yi ge dao   /etc/mimedefang-filter    xia mian shi wo yong de gui ze 。    wo kao bei le suggested-minimum-filter-for-windows-clients dao /etc/mail xia qie gai cheng xia mian de   $Administrator = 'itsecurity@yourdomain.com';   $DaemonAddress = 'itsecurity@yourdomain.com';   $Stupidity{"flatten"} = 0;   $Stupidity{"NoMultipleInlines"} = 0;   sub filter_begin {   }   sub filter {   my($entity, $fname, $ext, $type) = @_;   if (re_match_ext($entity, '^\.(exe|com|bat|vbs|scr|shs|dll|vxd|pif|reg|ocx)$')) {   action_discard();   action_notify_sender("Your message with attachment '$fname' had been deleted by our mail server because of security issue\n");   return action_quarantine($entity, "The message with attchment '$fname' was deleted by mail server.");   }   return action_accept();   }   1;    shang mian de guo lv gui ze biao shi shan chu dai shang mian suo lie chu de kuo zhan ming de you jian qie tong zhi fa song zhe you jian bei shan chu ,    jie shou qi ta suo you de you jian 。 wo ye geng gai /usr/local/bin/mimedefang.pl wen jian yi zhi bu yao    bao liu you jian fu jian zai /var/spool/MIMEDefang mu lu zhong , gai wen jian you xiang xi de zi wo jie shi ,    qing bian ji gai wen jian qu diao bao liu yi fen bei shan chu you jian fu jian zai ying pan shang de bu fen 。   f. qi dong xi tong bing ce shi    jian dan di kao bei example mu lu xia de wei redhat er xie de redhat-sendmail-init-script dao   /etc/rc.d/init.d/sendmail bing qie geng gai Sendmail qi dong bu fen wei   /usr/sbin/sendmail -L sm-mta -bd -q30m   /usr/sbin/sendmail -L sm-msp-queue -Ac -q30m    ru guo ni de you jian fu wu qi mei tian xu yao chu li cheng qian shang wan de you jian , ze kao lv kao bei ling yi ge jiao ben   redhat-sendmail-init-script-with-multiplexor dao /etc/rc.d/init.d/sendmail,    jia kuai chu li su du 。    zui hou yong /etc/rc.d/init.d/sendmail start qi dong sendmail, fa song dai .exe de fu jian jin xing ce shi 。
󰈣󰈤
  免责声明:本文仅代表作者个人观点,与王朝网络无关。王朝网络登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述,其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
华丽的模特拍摄(8)
华丽的模特拍摄(7)
华丽的模特拍摄(6)
华丽的模特拍摄(5)
八里沟
朝阳宫
天下峨眉 云上金顶
老家(四)
 
>>返回首页<<
 
 
 为你推荐
 
 
 
 转载本文
 UBB代码 HTML代码
复制到剪贴板...
 
 热帖排行
 
 
 
 
 
©2005- 王朝网络 版权所有