亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 3617 | 回復(fù): 7
打印 上一主題 下一主題

[Mail] 安裝完qmail-scanner后,不能收郵件了(已解決) [復(fù)制鏈接]

論壇徽章:
1
操作系統(tǒng)版塊每日發(fā)帖之星
日期:2016-07-11 06:20:00
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2006-11-17 22:04 |只看該作者 |倒序?yàn)g覽
我安裝完qmail-scanner后,不能收郵件了.
日志中有如下錯誤;
@40000000455db9bf27d1cb54 status: local 1/10 remote 0/20
@40000000455db9bf29c7fdd4 delivery 14: deferral: mailfilter(44):_Syntax_error./

我的 .qmail-default 內(nèi)容如下:
| preline /usr/local/bin/maildrop mailfilter


   mailfilter內(nèi)容如下:
VHOME=`/home/vpopmail/bin/vuserinfo -d $EXT@$HOST`                                                               

VSPAM=`/home/vpopmail/bin/vuserinfo -d $EXT@$HOST`


`test -d $VHOME/Maildir/`

if( $RETURNCODE != 0 )

{
   echo "Sorry , but the user $EXT@$HOST dos not exist"

   EXITCODE=77
   exit

}

if ( $SIZE < 262144 )                                                                                             

{     
exception {                                                                                                  
               xfilter "/usr/bin/spamc -f -u $EXT@$HOST"                                                         
       }                                                                                                        
}                                                                                                               

if (/^X-Spam-Flag: YES/)                                                                                          

{                                                                                                                 
       to "$VSPAM/Maildir/.Trash/."                                                                                

       EXITCODE=0                                                                                                
}                                                                                                                  

else                                                                                                              

{                                                                                                                                                                                                                           
       to "$VHOME/Maildir/."                                                                                      
}

各位高人快來幫忙!多謝,多謝了!

[ 本帖最后由 meself_110 于 2007-6-7 20:18 編輯 ]

論壇徽章:
1
操作系統(tǒng)版塊每日發(fā)帖之星
日期:2016-07-11 06:20:00
2 [報告]
發(fā)表于 2006-12-02 12:42 |只看該作者
問題前些天已經(jīng)解決了,mailfilter文件寫錯了

[ 本帖最后由 meself_110 于 2006-12-2 12:43 編輯 ]

論壇徽章:
0
3 [報告]
發(fā)表于 2007-04-21 12:46 |只看該作者
請問正確的mailfilter是怎么樣的?我的也報錯:

/var/log/qmail/current 日志如下:
  1. 2007-04-21 12:33:12.671484500 status: local 0/10 remote 0/20
  2. 2007-04-21 12:34:20.661304500 starting delivery 22: msg 8245127 to local test.com-testuser@test.com
  3. 2007-04-21 12:34:20.661316500 status: local 1/10 remote 0/20
  4. 2007-04-21 12:34:20.668990500 delivery 22: deferral: mailfilter(45):_Syntax_error./
  5. 2007-04-21 12:34:20.669001500 status: local 0/10 remote 0/20
  6. 2007-04-21 12:35:29.658550500 starting delivery 23: msg 8244512 to local test.com-testuser@365le.com
  7. 2007-04-21 12:35:29.658562500 status: local 1/10 remote 0/20
  8. 2007-04-21 12:35:29.666194500 delivery 23: deferral: mailfilter(45):_Syntax_error./
  9. 2007-04-21 12:35:29.666206500 status: local 0/10 remote 0/20
復(fù)制代碼


/var/log/maillog日志如下:

  1. Apr 21 12:06:30 mail spamd[8072]: Failed to run USER_IN_DEF_SPF_WL SpamAssassin test, skipping:__(Can't locate object method "check_for_def_spf_whitelist_from" via package "Mail::SpamAssassin::PerMsgStatus" at /usr/lib/perl5/vendor_perl/5.8.0/Mail/SpamAssassin/PerMsgStatus.pm line 2312, <GEN16> line 37._)
  2. Apr 21 12:06:30 mail spamd[8072]: Failed to run USER_IN_SPF_WHITELIST SpamAssassin test, skipping:__(Can't locate object method "check_for_spf_whitelist_from" via package "Mail::SpamAssassin::PerMsgStatus" at /usr/lib/perl5/vendor_perl/5.8.0/Mail/SpamAssassin/PerMsgStatus.pm line 2312, <GEN16> line 37._)
  3. Apr 21 12:06:31 mail spamd[8072]: identified spam (11.7/5.0) for qscand:1047 in 1.4 seconds, 1552 bytes.
  4. Apr 21 12:06:31 mail spamd[8072]: result: Y 11 - DATE_IN_FUTURE_03_06,EXCUSE_4,FORGED_RCVD_HELO,FORGED_YAHOO_RCVD,FROM_ENDS_IN_NUMS,FROM_HAS_MIXED_NUMS,INVALID_DATE,INVALID_MSGID,NORMAL_HTTP_TO_IP,NO_REAL_NAME,RAZOR2_CF_RANGE_51_100,RAZOR2_CHECK,SELECTED_YOU,UNDISC_RECIPS scantime=1.4,size=1552,mid=<9PS291LhupY>,autolearn=no
  5. Apr 21 12:06:31 mail qmail-scanner[19637]: Clear:RC:1(127.0.0.1):SA:1(11.7/5.0): 1.427029 1552 <> okuranadmin@365le.com Qmail-Scanner_anti-spam_test_(4/4):_checking_SpamAssassin_[if_present]_(There_yo <9PS291LhupY> 1177128390.19639-0.mail.365le.com:653 orig-mail.365le.com117712839077519637:1552
復(fù)制代碼


mailfiter內(nèi)容如下:

  1. 1 VHOME=`/home/vpopmail/bin/vuserinfo -d $EXT@$HOST`
  2.       2
  3.       3 VSPAM=`/home/vpopmail/bin/vuserinfo -d $EXT@$HOST`
  4.       4
  5.       5
  6.       6
  7.       7 `test -d $VHOME/Maildir/`
  8.       8
  9.       9 if( $RETURNCODE != 0 )
  10.      10
  11.      11 {
  12.      12
  13.      13    echo "Sorry , but the user $EXT@$HOST dos not exist"
  14.      14
  15.      15    EXITCODE=77
  16.      16
  17.      17    exit
  18.      18
  19.      19 }
  20.      20
  21.      21
  22.      22
  23.      23 if ( $SIZE < 262144 )
  24.      24
  25.      25 {
  26.      26
  27.      27  exception {
  28.      28
  29.      29                xfilter "/usr/bin/spamc -f -u $EXT@$HOST"
  30.      30
  31.      31        }
  32.      32
  33.      33 }
  34.      34
  35.      35 if (/^X-Spam-Flag: YES/)
  36.      36
  37.      37 {
  38.      38
  39.      39        to "$VSPAM/Maildir/.Trash/."
  40.      40
  41.      41        EXITCODE=0
  42.      42
  43.      43 }
  44.      44
  45.      45 else
  46.      46
  47.      47 {                                                                                                                                   
  48.      48
  49.      49        to "$VHOME/Maildir/."
  50.      50
  51.      51 }
  52.      52
  53.      53
復(fù)制代碼

論壇徽章:
0
4 [報告]
發(fā)表于 2007-04-24 21:19 |只看該作者
  1. VHOME=`/home/vpopmail/bin/vuserinfo -d $EXT@$HOST`
  2. VSPAM=`/home/vpopmail/bin/vuserinfo -d $EXT@$HOST`

  3. `test -d $VHOME/Maildir/`
  4. if( $RETURNCODE != 0 )
  5. {
  6.         echo "Sorry , but the user $EXT@$HOST dos not exist"
  7.         EXITCODE=77
  8.         exit
  9. }

  10. if ( $SIZE < 262144 )
  11. {
  12.         exception {
  13.                 xfilter "/usr/bin/spamc -f -u $EXT@$HOST"
  14.         }
  15. }

  16. if (/^X-Spam-Flag: YES/)
  17. {
  18.         to "$VSPAM/Maildir/.Trash/."
  19.         EXITCODE=0
  20. }
  21. else
  22. {                                                                                                                                   
  23.         to "$VHOME/Maildir/."
  24. }
復(fù)制代碼


注意格式

論壇徽章:
0
5 [報告]
發(fā)表于 2007-04-25 10:39 |只看該作者
非常感謝大麻兄的幫助,可我看了半天好像只是空行多了點(diǎn)外,沒發(fā)現(xiàn)有什么不一樣的?沒想到會這么嚴(yán)格啊。再次感謝大麻兄!

另外日志中有部分說 Failed 或Can't locate object method的,不知有什么問題沒有,現(xiàn)在可以防垃圾了。

下面是從163給test發(fā)的一封垃圾廣告的完整日志



  1. /var/log/maillog

  2. Apr 25 10:24:27 mail imapd: Connection, ip=[::ffff:127.0.0.1]
  3. Apr 25 10:24:27 mail imapd: LOGIN, user=test, ip=[::ffff:127.0.0.1], protocol=IMAP
  4. Apr 25 10:24:27 mail imapd: LOGOUT, user=test, ip=[::ffff:127.0.0.1], headers=0, body=0, time=0
  5. Apr 25 10:24:48 mail imapd: Connection, ip=[::ffff:127.0.0.1]
  6. Apr 25 10:24:48 mail imapd: LOGIN, user=test, ip=[::ffff:127.0.0.1], protocol=IMAP
  7. Apr 25 10:24:49 mail imapd: LOGOUT, user=test, ip=[::ffff:127.0.0.1], headers=4114, body=0, time=1
  8. Apr 25 10:24:50 mail spamd[3048]: connection from localhost.localdomain [127.0.0.1] at port 33594
  9. Apr 25 10:24:50 mail spamd[3048]: checking message <9293949.3530181177467902600.JavaMail.root@bj163app81.163.com> for qscand:1047.
  10. Apr 25 10:24:50 mail spamd[3048]: Failed to run __ENV_AND_HDR_FROM_MATCH SpamAssassin test, skipping:__(Can't locate object method "check_for_matching_env_and_hdr_from" via package "Mail::SpamAssassin::PerMsgStatus" at /usr/lib/perl5/vendor_perl/5.8.0/Mail/SpamAssassin/PerMsgStatus.pm line 2312, <GEN10> line 57._)
  11. Apr 25 10:24:50 mail spamd[3048]: Failed to run USER_IN_DEF_SPF_WL SpamAssassin test, skipping:__(Can't locate object method "check_for_def_spf_whitelist_from" via package "Mail::SpamAssassin::PerMsgStatus" at /usr/lib/perl5/vendor_perl/5.8.0/Mail/SpamAssassin/PerMsgStatus.pm line 2312, <GEN10> line 57._)
  12. Apr 25 10:24:50 mail spamd[3048]: Failed to run USER_IN_SPF_WHITELIST SpamAssassin test, skipping:__(Can't locate object method "check_for_spf_whitelist_from" via package "Mail::SpamAssassin::PerMsgStatus" at /usr/lib/perl5/vendor_perl/5.8.0/Mail/SpamAssassin/PerMsgStatus.pm line 2312, <GEN10> line 57._)
  13. Apr 25 10:24:50 mail imapd: Connection, ip=[::ffff:127.0.0.1]
  14. Apr 25 10:24:50 mail imapd: LOGIN, user=test, ip=[::ffff:127.0.0.1], protocol=IMAP
  15. Apr 25 10:24:51 mail imapd: LOGOUT, user=test, ip=[::ffff:127.0.0.1], headers=618, body=0, time=1
  16. Apr 25 10:24:53 mail spamd[3048]: identified spam (9.2/5.0) for qscand:1047 in 2.5 seconds, 2651 bytes.
  17. Apr 25 10:24:53 mail spamd[3048]: result: Y  9 - AWL,CHARSET_FARAWAY_HEADER,CN_BODY_3,CN_BODY_8,CN_SUBJECT_1,CN_SUBJECT_5,CN_SUBJECT_6,HTML_60_70,HTML_MESSAGE,MIME_BASE64_TEXT,MIME_CHARSET_FARAWAY,MPART_ALT_DIFF scantime=2.5,size=2651,mid=<9293949.3530181177467902600.JavaMail.root@bj163app81.163.com>,autolearn=no
  18. Apr 25 10:24:53 mail qmail-scanner[3323]: Clear:RC:0(220.181.13.81):SA:1(9.2/5.0): 7.944176 2651 songxiatong@163.com test@******.com =?gbk?B?08W73SC6z9f3ILeixrE=?= <9293949.3530181177467902600.JavaMail.root@bj163app81.163.com> 1177467885.3325-1.mail.******.com:699 1177467885.3325-0.mail.******.com:169 orig-mail.******.com11774678857753323:2651
  19. Apr 25 10:24:53 mail spamd[3049]: connection from localhost.localdomain [127.0.0.1] at port 33597
  20. Apr 25 10:24:53 mail spamd[3049]: processing message <9293949.3530181177467902600.JavaMail.root@bj163app81.163.com> for test@******.com:1047.
  21. Apr 25 10:24:53 mail spamd[3049]: Failed to run __ENV_AND_HDR_FROM_MATCH SpamAssassin test, skipping:__(Can't locate object method "check_for_matching_env_and_hdr_from" via package "Mail::SpamAssassin::PerMsgStatus" at /usr/lib/perl5/vendor_perl/5.8.0/Mail/SpamAssassin/PerMsgStatus.pm line 2312, <GEN10> line 68._)
  22. Apr 25 10:24:53 mail spamd[3049]: Failed to run USER_IN_DEF_SPF_WL SpamAssassin test, skipping:__(Can't locate object method "check_for_def_spf_whitelist_from" via package "Mail::SpamAssassin::PerMsgStatus" at /usr/lib/perl5/vendor_perl/5.8.0/Mail/SpamAssassin/PerMsgStatus.pm line 2312, <GEN10> line 68._)
  23. Apr 25 10:24:53 mail spamd[3049]: Failed to run USER_IN_SPF_WHITELIST SpamAssassin test, skipping:__(Can't locate object method "check_for_spf_whitelist_from" via package "Mail::SpamAssassin::PerMsgStatus" at /usr/lib/perl5/vendor_perl/5.8.0/Mail/SpamAssassin/PerMsgStatus.pm line 2312, <GEN10> line 68._)
  24. Apr 25 10:24:55 mail spamd[3049]: identified spam (9.2/5.0) for test@******.com:1047 in 2.5 seconds, 3325 bytes.
  25. Apr 25 10:24:55 mail spamd[3049]: result: Y  9 - AWL,CHARSET_FARAWAY_HEADER,CN_BODY_3,CN_BODY_8,CN_SUBJECT_1,CN_SUBJECT_5,CN_SUBJECT_6,HTML_60_70,HTML_MESSAGE,MIME_BASE64_TEXT,MIME_CHARSET_FARAWAY,MPART_ALT_DIFF scantime=2.5,size=3325,mid=<9293949.3530181177467902600.JavaMail.root@bj163app81.163.com>,autolearn=no
  26. Apr 25 10:25:00 mail imapd: Connection, ip=[::ffff:127.0.0.1]
  27. Apr 25 10:25:00 mail imapd: LOGIN, user=test, ip=[::ffff:127.0.0.1], protocol=IMAP
  28. Apr 25 10:25:00 mail imapd: LOGOUT, user=test, ip=[::ffff:127.0.0.1], headers=0, body=0, time=0
  29. Apr 25 10:25:00 mail imapd: Connection, ip=[::ffff:127.0.0.1]
  30. Apr 25 10:25:00 mail imapd: LOGIN, user=test, ip=[::ffff:127.0.0.1], protocol=IMAP
  31. Apr 25 10:25:00 mail imapd: LOGOUT, user=test, ip=[::ffff:127.0.0.1], headers=0, body=0, time=0
  32. Apr 25 10:25:00 mail imapd: Connection, ip=[::ffff:127.0.0.1]
  33. Apr 25 10:25:00 mail imapd: LOGIN, user=test, ip=[::ffff:127.0.0.1], protocol=IMAP
  34. Apr 25 10:25:01 mail imapd: LOGOUT, user=test, ip=[::ffff:127.0.0.1], headers=3941, body=0, time=1
  35. Apr 25 10:25:02 mail imapd: Connection, ip=[::ffff:127.0.0.1]
  36. Apr 25 10:25:02 mail imapd: LOGIN, user=test, ip=[::ffff:127.0.0.1], protocol=IMAP
  37. Apr 25 10:25:03 mail imapd: LOGOUT, user=test, ip=[::ffff:127.0.0.1], headers=1299, body=0, time=1
  38. Apr 25 10:25:08 mail imapd: Connection, ip=[::ffff:127.0.0.1]
  39. Apr 25 10:25:08 mail imapd: LOGIN, user=test, ip=[::ffff:127.0.0.1], protocol=IMAP
  40. Apr 25 10:25:08 mail imapd: LOGOUT, user=test, ip=[::ffff:127.0.0.1], headers=0, body=2753, time=0
  41. Apr 25 10:25:28 mail imapd: Connection, ip=[::ffff:127.0.0.1]
  42. Apr 25 10:25:28 mail imapd: LOGIN, user=test, ip=[::ffff:127.0.0.1], protocol=IMAP
  43. Apr 25 10:25:29 mail imapd: LOGOUT, user=test, ip=[::ffff:127.0.0.1], headers=0, body=843, time=1
復(fù)制代碼


相應(yīng)的/var/log/qmail/smtpd/current日志,這個看上去倒沒事。



  1. tai64nlocal </var/log/qmail/smtpd/current

  2. 2007-04-25 10:24:53.292548500 new msg 8245108
  3. 2007-04-25 10:24:53.292554500 info msg 8245108: bytes 3251 from <test163@163.com> qp 3333 uid 1049
  4. 2007-04-25 10:24:53.389692500 starting delivery 9: msg 8245108 to local ********.com-test@********.com
  5. 2007-04-25 10:24:53.389702500 status: local 1/10 remote 0/20
  6. 2007-04-25 10:24:55.995805500 delivery 9: success: did_0+0+1/
  7. 2007-04-25 10:24:55.995906500 status: local 0/10 remote 0/20
  8. 2007-04-25 10:24:55.995965500 end msg 8245108

復(fù)制代碼

論壇徽章:
0
6 [報告]
發(fā)表于 2007-04-26 10:45 |只看該作者
spamassassin 的調(diào)式錯誤,并不用去理會他,注意升級就是了。

論壇徽章:
0
7 [報告]
發(fā)表于 2007-04-26 20:21 |只看該作者
好的,非常感謝大麻兄的幫助,可標(biāo)題不是我的,改不了問題已解決字樣了。:)

論壇徽章:
1
操作系統(tǒng)版塊每日發(fā)帖之星
日期:2016-07-11 06:20:00
8 [報告]
發(fā)表于 2007-06-07 20:20 |只看該作者
非常感謝大麻兄對我們這些新人的幫助!感謝wlacf 的執(zhí)著!
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP