Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1382 connectés 

  FORUM HardWare.fr
  Linux et OS Alternatifs
  réseaux et sécurité

  Postfix et Spamassassin ne dialoguent pas

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Postfix et Spamassassin ne dialoguent pas

n°903965
madsurfer
Boulet's eradicator
Posté le 17-04-2007 à 09:47:37  profilanswer
 

:hello:  
 
Je viens d'installer un serveur Fedora Core 6 avec Postfix (V2.3.3) et Spamassassin (V3.1.8). Le but est de mettre en oeuvre un relai de messagerie antispam.
 
J'ai configuré Postfix avec des restrictions au niveau des messages "Hello" et des RBLs (type ordb, spamcop) ont été mise en place.
Mais trop de spam passe au travers et j'ai donc décidé de mettre en oeuvre spamassassin.
 
J'ai cependant un probleme de communication entre postfix et spamassassin.
 
Voici mon fichier master.cf

Code :
  1. #
  2. # Postfix master process configuration file.  For details on the format
  3. # of the file, see the master(5) manual page (command: "man 5 master" ).
  4. #
  5. # ==========================================================================
  6. # service type  private unpriv  chroot  wakeup  maxproc command + args
  7. #               (yes)   (yes)   (yes)   (never) (100)
  8. # ==========================================================================
  9. #smtp      inet  n       -       n       -       250     smtpd -o content_filter=spamassassin:
  10. #smtp unix - - n - - smtp -o content_filter=spamassassin:
  11. smtp      inet  n       -       n       -       -       smtpd
  12. #  -o content_filter=spamfilter:dummy
  13. #submission inet n       -       n       -       -       smtpd
  14. #  -o smtpd_enforce_tls=yes
  15. #  -o smtpd_sasl_auth_enable=yes
  16. #  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
  17. #smtps     inet  n       -       n       -       -       smtpd
  18. #  -o smtpd_tls_wrappermode=yes
  19. #  -o smtpd_sasl_auth_enable=yes
  20. #  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
  21. #628      inet  n       -       n       -       -       qmqpd
  22. pickup    fifo  n       -       n       60      1       pickup
  23. cleanup   unix  n       -       n       -       0       cleanup
  24. qmgr      fifo  n       -       n       300     1       qmgr
  25. #qmgr     fifo  n       -       n       300     1       oqmgr
  26. tlsmgr    unix  -       -       n       1000?   1       tlsmgr
  27. rewrite   unix  -       -       n       -       -       trivial-rewrite
  28. bounce    unix  -       -       n       -       0       bounce
  29. defer     unix  -       -       n       -       0       bounce
  30. trace     unix  -       -       n       -       0       bounce
  31. verify    unix  -       -       n       -       1       verify
  32. flush     unix  n       -       n       1000?   0       flush
  33. proxymap  unix  -       -       n       -       -       proxymap
  34. smtp      unix  -       -       n       -       -       smtp
  35. # When relaying mail as backup MX, disable fallback_relay to avoid MX loops
  36. relay     unix  -       -       n       -       -       smtp
  37.         -o fallback_relay=
  38. #       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
  39. showq     unix  n       -       n       -       -       showq
  40. error     unix  -       -       n       -       -       error
  41. discard   unix  -       -       n       -       -       discard
  42. local     unix  -       n       n       -       -       local
  43. virtual   unix  -       n       n       -       -       virtual
  44. lmtp      unix  -       -       n       -       -       lmtp
  45. anvil     unix  -       -       n       -       1       anvil
  46. scache    unix  -       -       n       -       1       scache
  47. #
  48. # ====================================================================
  49. # Interfaces to non-Postfix software. Be sure to examine the manual
  50. # pages of the non-Postfix software to find out what options it wants.
  51. #
  52. # Many of the following services use the Postfix pipe(8) delivery
  53. # agent.  See the pipe(8) man page for information about ${recipient}
  54. # and other message envelope options.
  55. # ====================================================================
  56. #
  57. # maildrop. See the Postfix MAILDROP_README file for details.
  58. # Also specify in main.cf: maildrop_destination_recipient_limit=1
  59. #
  60. maildrop  unix  -       n       n       -       -       pipe
  61.   flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
  62. #
  63. # The Cyrus deliver program has changed incompatibly, multiple times.
  64. #
  65. old-cyrus unix  -       n       n       -       -       pipe
  66.   flags=R user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -m ${extension} ${user}
  67. # Cyrus 2.1.5 (Amos Gouaux)
  68. # Also specify in main.cf: cyrus_destination_recipient_limit=1
  69. cyrus     unix  -       n       n       -       -       pipe
  70.   user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -r ${sender} -m ${extension} ${user}
  71. #
  72. # See the Postfix UUCP_README file for configuration details.
  73. #
  74. uucp      unix  -       n       n       -       -       pipe
  75.   flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
  76. #
  77. # Other external delivery methods.
  78. #
  79. ifmail    unix  -       n       n       -       -       pipe
  80.   flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
  81. bsmtp     unix  -       n       n       -       -       pipe
  82.   flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
  83. #
  84. # Other external delivery methods.
  85. #
  86. ## Spamassassin : le filtre spamc
  87. #spamassassin  unix  -       n       n       -       -   pipe user=filter argv=/usr/local/bin/sa-filter -f ${sender} -- ${recipient}
  88. #spamassassin  unix  -       n       n       -       -    pipe argv=/usr/local/bin/spamchk.sh -f ${sender} -- ${recipient}
  89. #spamassassin  unix  -       n       n       -       -    pipe argv=/usr/bin/spamc -f ${sender} -- ${recipient}
  90. #spamassassin unix -     n       n       -       -       pipe argv=/usr/bin/spamc -f -e /usr/sbin/sendmail -oi -f ${sender} ${recipient}
  91. spamassassin  unix  -       n       n       -       -   pipe flags=Rq user=filter argv=/usr/local/bin/spamfilter.sh -f ${sender} -- ${recipient}
  92. ifmail    unix  -       n       n       -       -       pipe
  93.   flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
  94. bsmtp     unix  -       n       n       -       -       pipe
  95.   flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient

mood
Publicité
Posté le 17-04-2007 à 09:47:37  profilanswer
 

n°903966
toniotonio
Posté le 17-04-2007 à 09:50:55  profilanswer
 

il y a quoi dans spamfilter.sh ?
 
sinon as tu regardé du coté d'amavisd pour interfacer postfix et SA ?

n°903968
madsurfer
Boulet's eradicator
Posté le 17-04-2007 à 10:09:36  profilanswer
 

Voici ce qu'il y a dans mon fichier spamfilter.sh
 

Code :
  1. #!/bin/bash
  2. /usr/bin/spamc | /usr/sbin/sendmail -i "$@"
  3. exit $?


 
Amavisd j'aimerais pour l'instant ne pas m'encombrer de cette couche supplémentaire. Déjà si j'arrive à faire fonctionner ces 2 briques cela sera déjà un bon début.  :D  
 
Je l'utiliserais dans un second temps pour nettoyer mes mails.  ;)
 
 
Pour info, j'essai d'envoyer un spam sur le spamc mais cela ne fonctionne pas.
 

Code :
  1. [root@mail2 ~]#  spamc -c < /usr/share/doc/spamassassin-3.1.8/sample-spam.txt
  2. 0.0/5.0


Message édité par madsurfer le 17-04-2007 à 10:11:05
n°903970
toniotonio
Posté le 17-04-2007 à 10:15:00  profilanswer
 

question bete mais as tu demarrer spamd ?
 

n°903971
madsurfer
Boulet's eradicator
Posté le 17-04-2007 à 10:18:27  profilanswer
 

root     19116  0.0  8.5  26636 21656 ?        Ss   Apr13   0:04   /usr/bin/spamd -C /etc/mail/spamassassin -d -c -m5 -H -r /var/run
root     19118  0.0  8.9  27412 22800 ?        S    Apr13   0:01     spamd child
root     19119  0.0  8.0  26636 20388 ?        S    Apr13   0:02     spamd child
 
Spamd tourne et pourtant...  :heink:

n°903972
toniotonio
Posté le 17-04-2007 à 10:23:00  profilanswer
 

que donne  

Code :
  1. spamassassin --lint


 
et  
 

Code :
  1. spamassassin -D < /usr/share/doc/spamassassin-3.1.8/sample-spam.txt


 
 
 
autre option d'installation plutot que dans le master.cf (ou de toute facon il faudrait preferer amavisd dans cete situation), tu peux integrer spamassassin a ton mda (procmail ou maildrop)
c'est la facon la plus simple si tu ne veux pas installer amavisd.

n°904005
madsurfer
Boulet's eradicator
Posté le 17-04-2007 à 12:06:11  profilanswer
 

Code :
  1. [root@mail2 ~]# spamassassin --lint -D
  2. [17627] dbg: logger: adding facilities: all
  3. [17627] dbg: logger: logging level is DBG
  4. [17627] dbg: generic: SpamAssassin version 3.1.8
  5. [17627] dbg: config: score set 0 chosen.
  6. [17627] dbg: util: running in taint mode? yes
  7. [17627] dbg: util: taint mode: deleting unsafe environment variables, resetting PATH
  8. [17627] dbg: util: PATH included '/usr/kerberos/sbin', keeping
  9. [17627] dbg: util: PATH included '/usr/kerberos/bin', keeping
  10. [17627] dbg: util: PATH included '/usr/local/sbin', keeping
  11. [17627] dbg: util: PATH included '/usr/local/bin', keeping
  12. [17627] dbg: util: PATH included '/sbin', keeping
  13. [17627] dbg: util: PATH included '/bin', keeping
  14. [17627] dbg: util: PATH included '/usr/sbin', keeping
  15. [17627] dbg: util: PATH included '/usr/bin', keeping
  16. [17627] dbg: util: PATH included '/root/bin', which doesn't exist, dropping
  17. [17627] dbg: util: final PATH set to: /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
  18. [17627] dbg: message: ---- MIME PARSER START ----
  19. [17627] dbg: message: main message type: text/plain
  20. [17627] dbg: message: parsing normal part
  21. [17627] dbg: message: added part, type: text/plain
  22. [17627] dbg: message: ---- MIME PARSER END ----
  23. [17627] dbg: dns: is Net::DNS::Resolver available? yes
  24. [17627] dbg: dns: Net::DNS version: 0.59
  25. [17627] dbg: diag: perl platform: 5.008008 linux
  26. [17627] dbg: diag: module installed: Digest::SHA1, version 2.11
  27. [17627] dbg: diag: module installed: LWP::UserAgent, version 2.033
  28. [17627] dbg: diag: module installed: HTTP::Date, version 1.47
  29. [17627] dbg: diag: module installed: Archive::Tar, version 1.30
  30. [17627] dbg: diag: module installed: IO::Zlib, version 1.04
  31. [17627] dbg: diag: module installed: HTML::Parser, version 3.55
  32. [17627] dbg: diag: module installed: MIME::Base64, version 3.07
  33. [17627] dbg: diag: module installed: DB_File, version 1.814
  34. [17627] dbg: diag: module installed: Net::DNS, version 0.59
  35. [17627] dbg: diag: module installed: Net::SMTP, version 2.29
  36. [17627] dbg: diag: module installed: Mail::SPF::Query, version 1.999001
  37. [17627] dbg: diag: module installed: IP::Country::Fast, version 604.001
  38. [17627] dbg: diag: module installed: Razor2::Client::Agent, version 2.82
  39. [17627] dbg: diag: module installed: Net::Ident, version 1.20
  40. [17627] dbg: diag: module installed: IO::Socket::INET6, version 2.51
  41. [17627] dbg: diag: module installed: IO::Socket::SSL, version 1.01
  42. [17627] dbg: diag: module installed: Time::HiRes, version 1.86
  43. [17627] dbg: diag: module installed: DBI, version 1.52
  44. [17627] dbg: diag: module installed: Getopt::Long, version 2.35
  45. [17627] dbg: ignore: using a test message to lint rules
  46. [17627] dbg: config: using "/etc/mail/spamassassin" for site rules pre files
  47. [17627] dbg: config: read file /etc/mail/spamassassin/init.pre
  48. [17627] dbg: config: read file /etc/mail/spamassassin/v310.pre
  49. [17627] dbg: config: read file /etc/mail/spamassassin/v312.pre
  50. [17627] dbg: config: using "/usr/share/spamassassin" for sys rules pre files
  51. [17627] dbg: config: using "/usr/share/spamassassin" for default rules dir
  52. [17627] dbg: config: read file /usr/share/spamassassin/10_misc.cf
  53. [17627] dbg: config: read file /usr/share/spamassassin/20_advance_fee.cf
  54. [17627] dbg: config: read file /usr/share/spamassassin/20_anti_ratware.cf
  55. [17627] dbg: config: read file /usr/share/spamassassin/20_body_tests.cf
  56. [17627] dbg: config: read file /usr/share/spamassassin/20_compensate.cf
  57. [17627] dbg: config: read file /usr/share/spamassassin/20_dnsbl_tests.cf
  58. [17627] dbg: config: read file /usr/share/spamassassin/20_drugs.cf
  59. [17627] dbg: config: read file /usr/share/spamassassin/20_fake_helo_tests.cf
  60. [17627] dbg: config: read file /usr/share/spamassassin/20_head_tests.cf
  61. [17627] dbg: config: read file /usr/share/spamassassin/20_html_tests.cf
  62. [17627] dbg: config: read file /usr/share/spamassassin/20_meta_tests.cf
  63. [17627] dbg: config: read file /usr/share/spamassassin/20_net_tests.cf
  64. [17627] dbg: config: read file /usr/share/spamassassin/20_phrases.cf
  65. [17627] dbg: config: read file /usr/share/spamassassin/20_porn.cf
  66. [17627] dbg: config: read file /usr/share/spamassassin/20_ratware.cf
  67. [17627] dbg: config: read file /usr/share/spamassassin/20_uri_tests.cf
  68. [17627] dbg: config: read file /usr/share/spamassassin/23_bayes.cf
  69. [17627] dbg: config: read file /usr/share/spamassassin/25_accessdb.cf
  70. [17627] dbg: config: read file /usr/share/spamassassin/25_antivirus.cf
  71. [17627] dbg: config: read file /usr/share/spamassassin/25_body_tests_es.cf
  72. [17627] dbg: config: read file /usr/share/spamassassin/25_body_tests_pl.cf
  73. [17627] dbg: config: read file /usr/share/spamassassin/25_dcc.cf
  74. [17627] dbg: config: read file /usr/share/spamassassin/25_dkim.cf
  75. [17627] dbg: config: read file /usr/share/spamassassin/25_domainkeys.cf
  76. [17627] dbg: config: read file /usr/share/spamassassin/25_hashcash.cf
  77. [17627] dbg: config: read file /usr/share/spamassassin/25_pyzor.cf
  78. [17627] dbg: config: read file /usr/share/spamassassin/25_razor2.cf
  79. [17627] dbg: config: read file /usr/share/spamassassin/25_replace.cf
  80. [17627] dbg: config: read file /usr/share/spamassassin/25_spf.cf
  81. [17627] dbg: config: read file /usr/share/spamassassin/25_textcat.cf
  82. [17627] dbg: config: read file /usr/share/spamassassin/25_uribl.cf
  83. [17627] dbg: config: read file /usr/share/spamassassin/30_text_de.cf
  84. [17627] dbg: config: read file /usr/share/spamassassin/30_text_fr.cf
  85. [17627] dbg: config: read file /usr/share/spamassassin/30_text_it.cf
  86. [17627] dbg: config: read file /usr/share/spamassassin/30_text_nl.cf
  87. [17627] dbg: config: read file /usr/share/spamassassin/30_text_pl.cf
  88. [17627] dbg: config: read file /usr/share/spamassassin/30_text_pt_br.cf
  89. [17627] dbg: config: read file /usr/share/spamassassin/50_scores.cf
  90. [17627] dbg: config: read file /usr/share/spamassassin/60_awl.cf
  91. [17627] dbg: config: read file /usr/share/spamassassin/60_whitelist.cf
  92. [17627] dbg: config: read file /usr/share/spamassassin/60_whitelist_dk.cf
  93. [17627] dbg: config: read file /usr/share/spamassassin/60_whitelist_dkim.cf
  94. [17627] dbg: config: read file /usr/share/spamassassin/60_whitelist_spf.cf
  95. [17627] dbg: config: read file /usr/share/spamassassin/60_whitelist_subject.cf
  96. [17627] dbg: config: using "/etc/mail/spamassassin" for site rules dir
  97. [17627] dbg: config: read file /etc/mail/spamassassin/local.cf
  98. [17627] dbg: config: using "/root/.spamassassin/user_prefs" for user prefs file
  99. [17627] dbg: config: read file /root/.spamassassin/user_prefs
  100. [17627] dbg: plugin: loading Mail::SpamAssassin::Plugin::URIDNSBL from @INC
  101. [17627] dbg: plugin: registered Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x8eb8efc)
  102. [17627] dbg: plugin: loading Mail::SpamAssassin::Plugin::Hashcash from @INC
  103. [17627] dbg: plugin: registered Mail::SpamAssassin::Plugin::Hashcash=HASH(0xa1acff8)
  104. [17627] dbg: plugin: loading Mail::SpamAssassin::Plugin::SPF from @INC
  105. [17627] dbg: plugin: registered Mail::SpamAssassin::Plugin::SPF=HASH(0xa1d0318)
  106. [17627] dbg: plugin: loading Mail::SpamAssassin::Plugin::Pyzor from @INC
  107. [17627] dbg: pyzor: local tests only, disabling Pyzor
  108. [17627] dbg: plugin: registered Mail::SpamAssassin::Plugin::Pyzor=HASH(0xa1e7ac4)
  109. [17627] dbg: plugin: loading Mail::SpamAssassin::Plugin::Razor2 from @INC
  110. [17627] dbg: razor2: local tests only, skipping Razor
  111. [17627] dbg: plugin: registered Mail::SpamAssassin::Plugin::Razor2=HASH(0xa1b43c0)
  112. [17627] dbg: plugin: loading Mail::SpamAssassin::Plugin::SpamCop from @INC
  113. [17627] dbg: reporter: local tests only, disabling SpamCop
  114. [17627] dbg: plugin: registered Mail::SpamAssassin::Plugin::SpamCop=HASH(0xa1b6c88)
  115. [17627] dbg: plugin: loading Mail::SpamAssassin::Plugin::AWL from @INC
  116. [17627] dbg: plugin: registered Mail::SpamAssassin::Plugin::AWL=HASH(0xa240f78)
  117. [17627] dbg: plugin: loading Mail::SpamAssassin::Plugin::AutoLearnThreshold from @INC
  118. [17627] dbg: plugin: registered Mail::SpamAssassin::Plugin::AutoLearnThreshold=HASH(0xa238bf4)
  119. [17627] dbg: plugin: loading Mail::SpamAssassin::Plugin::WhiteListSubject from @INC
  120. [17627] dbg: plugin: registered Mail::SpamAssassin::Plugin::WhiteListSubject=HASH(0xa25bbf4)
  121. [17627] dbg: plugin: loading Mail::SpamAssassin::Plugin::MIMEHeader from @INC
  122. [17627] dbg: plugin: registered Mail::SpamAssassin::Plugin::MIMEHeader=HASH(0xa2696e8)
  123. [17627] dbg: plugin: loading Mail::SpamAssassin::Plugin::ReplaceTags from @INC
  124. [17627] dbg: plugin: registered Mail::SpamAssassin::Plugin::ReplaceTags=HASH(0xa2616b8)
  125. [17627] dbg: config: adding redirector regex: /^http:\/\/chkpt\.zdnet\.com\/chkpt\/\w+\/(.*)$/i
  126. [17627] dbg: config: adding redirector regex: /^http:\/\/www(?:\d+)?\.nate\.com\/r\/\w+\/(.*)$/i
  127. [17627] dbg: config: adding redirector regex: /^http:\/\/.+\.gov\/(?:.*\/)?externalLink\.jhtml\?.*url=(.*?)(?:&.*)?$/i
  128. [17627] dbg: config: adding redirector regex: /^http:\/\/redir\.internet\.com\/.+?\/.+?\/(.*)$/i
  129. [17627] dbg: config: adding redirector regex: /^http:\/\/(?:.*?\.)?adtech\.de\/.*(?:;|\|)link=(.*?)(?:;|$)/i
  130. [17627] dbg: config: adding redirector regex: m'^http.*?/redirect\.php\?.*(?<=[?&])goto=(.*?)(?:$|[&#])'i
  131. [17627] dbg: config: adding redirector regex: m'^https?:/*(?:[^/]+\.)?emf\d\.com/r\.cfm.*?&r=(.*)'i
  132. [17627] dbg: config: adding redirector regex: m'/(?:index.php)?\?.*(?<=[?&])URL=(.*?)(?:$|[&#])'i
  133. [17627] dbg: config: adding redirector regex: m'^http:/*(?:\w+\.)?google(?:\.\w{2,3}){1,2}/url\?.*?(?<=[?&])q=(.*?)(?:$|[&#])'i
  134. [17627] dbg: config: adding redirector regex: m'^http:/*(?:\w+\.)?google(?:\.\w{2,3}){1,2}/search\?.*?(?<=[?&])q=[^&]*?(?<=%20|..[=+\s])site:(.*?)(?:$|%20|[\s+&#])'i
  135. [17627] dbg: config: adding redirector regex: m'^http:/*(?:\w+\.)?google(?:\.\w{2,3}){1,2}/search\?.*?(?<=[?&])q=[^&]*?(?<=%20|..[=+\s])(?:"|%22)(.*?)(?:$|%22|["\s+&#])'i
  136. [17627] dbg: config: adding redirector regex: m'^http:/*(?:\w+\.)?google(?:\.\w{2,3}){1,2}/translate\?.*?(?<=[?&])u=(.*?)(?:$|[&#])'i
  137. [17627] dbg: plugin: Mail::SpamAssassin::Plugin::ReplaceTags=HASH(0xa2616b8) implements 'finish_parsing_end'
  138. [17627] dbg: replacetags: replacing tags
  139. [17627] dbg: replacetags: done replacing tags
  140. [17627] dbg: bayes: no dbs present, cannot tie DB R/O: /root/.spamassassin/bayes_toks
  141. [17627] dbg: config: score set 0 chosen.
  142. [17627] dbg: message: ---- MIME PARSER START ----
  143. [17627] dbg: message: main message type: text/plain
  144. [17627] dbg: message: parsing normal part
  145. [17627] dbg: message: added part, type: text/plain
  146. [17627] dbg: message: ---- MIME PARSER END ----
  147. [17627] dbg: bayes: no dbs present, cannot tie DB R/O: /root/.spamassassin/bayes_toks
  148. [17627] dbg: dns: is DNS available? 0
  149. [17627] dbg: metadata: X-Spam-Relays-Trusted:  
  150. [17627] dbg: metadata: X-Spam-Relays-Untrusted:  
  151. [17627] dbg: metadata: X-Spam-Relays-Internal:  
  152. [17627] dbg: metadata: X-Spam-Relays-External:  
  153. [17627] dbg: message: no encoding detected
  154. [17627] dbg: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x8eb8efc) implements 'parsed_metadata'
  155. [17627] dbg: rules: local tests only, ignoring RBL eval
  156. [17627] dbg: check: running tests for priority: 0
  157. [17627] dbg: rules: running header regexp tests; score so far=0
  158. [17627] dbg: rules: ran header rule __HAS_MSGID ======> got hit: "<"
  159. [17627] dbg: rules: ran header rule __MSGID_OK_DIGITS ======> got hit: "1176804086"
  160. [17627] dbg: rules: ran header rule __SANE_MSGID ======> got hit: "<1176804086@lint_rules>
  161. [17627] dbg: rules: "
  162. [17627] dbg: rules: ran header rule __MSGID_OK_HOST ======> got hit: "@lint_rules>"
  163. [17627] dbg: eval: all '*From' addrs: ignore@compiling.spamassassin.taint.org
  164. [17627] dbg: eval: all '*To' addrs:  
  165. [17627] dbg: rules: ran eval rule NO_RELAYS ======> got hit
  166. [17627] dbg: rules: ran eval rule __UNUSABLE_MSGID ======> got hit
  167. [17627] dbg: rules: running body-text per-line regexp tests; score so far=-0.001
  168. [17627] dbg: rules: ran body rule __NONEMPTY_BODY ======> got hit: "I"
  169. [17627] dbg: uri: running uri tests; score so far=-0.001
  170. [17627] dbg: bayes: no dbs present, cannot tie DB R/O: /root/.spamassassin/bayes_toks
  171. [17627] dbg: bayes: not scoring message, returning undef
  172. [17627] dbg: bayes: opportunistic call attempt failed, DB not readable
  173. [17627] dbg: rules: running raw-body-text per-line regexp tests; score so far=-0.001
  174. [17627] dbg: rules: running full-text regexp tests; score so far=-0.001
  175. [17627] dbg: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x8eb8efc) implements 'check_tick'
  176. [17627] dbg: check: running tests for priority: 500
  177. [17627] dbg: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x8eb8efc) implements 'check_post_dnsbl'
  178. [17627] dbg: rules: running meta tests; score so far=-0.001
  179. [17627] info: rules: meta test DIGEST_MULTIPLE has undefined dependency 'DCC_CHECK'
  180. [17627] dbg: rules: running header regexp tests; score so far=1.866
  181. [17627] dbg: rules: running body-text per-line regexp tests; score so far=1.866
  182. [17627] dbg: uri: running uri tests; score so far=1.866
  183. [17627] dbg: rules: running raw-body-text per-line regexp tests; score so far=1.866
  184. [17627] dbg: rules: running full-text regexp tests; score so far=1.866
  185. [17627] dbg: check: running tests for priority: 1000
  186. [17627] dbg: rules: running meta tests; score so far=1.866
  187. [17627] dbg: rules: running header regexp tests; score so far=1.866
  188. [17627] dbg: rules: running body-text per-line regexp tests; score so far=1.866
  189. [17627] dbg: uri: running uri tests; score so far=1.866
  190. [17627] dbg: rules: running raw-body-text per-line regexp tests; score so far=1.866
  191. [17627] dbg: rules: running full-text regexp tests; score so far=1.866
  192. [17627] dbg: check: is spam? score=1.866 required=4
  193. [17627] dbg: check: tests=MISSING_SUBJECT,NO_RECEIVED,NO_RELAYS,TO_CC_NONE
  194. [17627] dbg: check: subtests=__HAS_MSGID,__MSGID_OK_DIGITS,__MSGID_OK_HOST,__NONEMPTY_BODY,__SANE_MSGID,__UNUSABLE_MSGID


 
 

Code :
  1. [root@mail2 ~]# spamassassin -D < /usr/share/doc/spamassassin-3.1.8/sample-spam.txt
  2. [17660] dbg: logger: adding facilities: all
  3. [17660] dbg: logger: logging level is DBG
  4. [17660] dbg: generic: SpamAssassin version 3.1.8
  5. [17660] dbg: config: score set 0 chosen.
  6. [17660] dbg: util: running in taint mode? yes
  7. [17660] dbg: util: taint mode: deleting unsafe environment variables, resetting PATH
  8. [17660] dbg: util: PATH included '/usr/kerberos/sbin', keeping
  9. [17660] dbg: util: PATH included '/usr/kerberos/bin', keeping
  10. [17660] dbg: util: PATH included '/usr/local/sbin', keeping
  11. [17660] dbg: util: PATH included '/usr/local/bin', keeping
  12. [17660] dbg: util: PATH included '/sbin', keeping
  13. [17660] dbg: util: PATH included '/bin', keeping
  14. [17660] dbg: util: PATH included '/usr/sbin', keeping
  15. [17660] dbg: util: PATH included '/usr/bin', keeping
  16. [17660] dbg: util: PATH included '/root/bin', which doesn't exist, dropping
  17. [17660] dbg: util: final PATH set to: /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
  18. [17660] dbg: message: ---- MIME PARSER START ----
  19. [17660] dbg: message: main message type: text/plain
  20. [17660] dbg: message: parsing normal part
  21. [17660] dbg: message: added part, type: text/plain
  22. [17660] dbg: message: ---- MIME PARSER END ----
  23. [17660] dbg: dns: is Net::DNS::Resolver available? yes
  24. [17660] dbg: dns: Net::DNS version: 0.59
  25. [17660] dbg: config: using "/etc/mail/spamassassin" for site rules pre files
  26. [17660] dbg: config: read file /etc/mail/spamassassin/init.pre
  27. [17660] dbg: config: read file /etc/mail/spamassassin/v310.pre
  28. [17660] dbg: config: read file /etc/mail/spamassassin/v312.pre
  29. [17660] dbg: config: using "/usr/share/spamassassin" for sys rules pre files
  30. [17660] dbg: config: using "/usr/share/spamassassin" for default rules dir
  31. [17660] dbg: config: read file /usr/share/spamassassin/10_misc.cf
  32. [17660] dbg: config: read file /usr/share/spamassassin/20_advance_fee.cf
  33. [17660] dbg: config: read file /usr/share/spamassassin/20_anti_ratware.cf
  34. [17660] dbg: config: read file /usr/share/spamassassin/20_body_tests.cf
  35. [17660] dbg: config: read file /usr/share/spamassassin/20_compensate.cf
  36. [17660] dbg: config: read file /usr/share/spamassassin/20_dnsbl_tests.cf
  37. [17660] dbg: config: read file /usr/share/spamassassin/20_drugs.cf
  38. [17660] dbg: config: read file /usr/share/spamassassin/20_fake_helo_tests.cf
  39. [17660] dbg: config: read file /usr/share/spamassassin/20_head_tests.cf
  40. [17660] dbg: config: read file /usr/share/spamassassin/20_html_tests.cf
  41. [17660] dbg: config: read file /usr/share/spamassassin/20_meta_tests.cf
  42. [17660] dbg: config: read file /usr/share/spamassassin/20_net_tests.cf
  43. [17660] dbg: config: read file /usr/share/spamassassin/20_phrases.cf
  44. [17660] dbg: config: read file /usr/share/spamassassin/20_porn.cf
  45. [17660] dbg: config: read file /usr/share/spamassassin/20_ratware.cf
  46. [17660] dbg: config: read file /usr/share/spamassassin/20_uri_tests.cf
  47. [17660] dbg: config: read file /usr/share/spamassassin/23_bayes.cf
  48. [17660] dbg: config: read file /usr/share/spamassassin/25_accessdb.cf
  49. [17660] dbg: config: read file /usr/share/spamassassin/25_antivirus.cf
  50. [17660] dbg: config: read file /usr/share/spamassassin/25_body_tests_es.cf
  51. [17660] dbg: config: read file /usr/share/spamassassin/25_body_tests_pl.cf
  52. [17660] dbg: config: read file /usr/share/spamassassin/25_dcc.cf
  53. [17660] dbg: config: read file /usr/share/spamassassin/25_dkim.cf
  54. [17660] dbg: config: read file /usr/share/spamassassin/25_domainkeys.cf
  55. [17660] dbg: config: read file /usr/share/spamassassin/25_hashcash.cf
  56. [17660] dbg: config: read file /usr/share/spamassassin/25_pyzor.cf
  57. [17660] dbg: config: read file /usr/share/spamassassin/25_razor2.cf
  58. [17660] dbg: config: read file /usr/share/spamassassin/25_replace.cf
  59. [17660] dbg: config: read file /usr/share/spamassassin/25_spf.cf
  60. [17660] dbg: config: read file /usr/share/spamassassin/25_textcat.cf
  61. [17660] dbg: config: read file /usr/share/spamassassin/25_uribl.cf
  62. [17660] dbg: config: read file /usr/share/spamassassin/30_text_de.cf
  63. [17660] dbg: config: read file /usr/share/spamassassin/30_text_fr.cf
  64. [17660] dbg: config: read file /usr/share/spamassassin/30_text_it.cf
  65. [17660] dbg: config: read file /usr/share/spamassassin/30_text_nl.cf
  66. [17660] dbg: config: read file /usr/share/spamassassin/30_text_pl.cf
  67. [17660] dbg: config: read file /usr/share/spamassassin/30_text_pt_br.cf
  68. [17660] dbg: config: read file /usr/share/spamassassin/50_scores.cf
  69. [17660] dbg: config: read file /usr/share/spamassassin/60_awl.cf
  70. [17660] dbg: config: read file /usr/share/spamassassin/60_whitelist.cf
  71. [17660] dbg: config: read file /usr/share/spamassassin/60_whitelist_dk.cf
  72. [17660] dbg: config: read file /usr/share/spamassassin/60_whitelist_dkim.cf
  73. [17660] dbg: config: read file /usr/share/spamassassin/60_whitelist_spf.cf
  74. [17660] dbg: config: read file /usr/share/spamassassin/60_whitelist_subject.cf
  75. [17660] dbg: config: using "/etc/mail/spamassassin" for site rules dir
  76. [17660] dbg: config: read file /etc/mail/spamassassin/local.cf
  77. [17660] dbg: config: using "/root/.spamassassin" for user state dir
  78. [17660] dbg: config: using "/root/.spamassassin/user_prefs" for user prefs file
  79. [17660] dbg: config: read file /root/.spamassassin/user_prefs
  80. [17660] dbg: plugin: loading Mail::SpamAssassin::Plugin::URIDNSBL from @INC
  81. [17660] dbg: plugin: registered Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0xa0b5c40)
  82. [17660] dbg: plugin: loading Mail::SpamAssassin::Plugin::Hashcash from @INC
  83. [17660] dbg: plugin: registered Mail::SpamAssassin::Plugin::Hashcash=HASH(0xa0c1130)
  84. [17660] dbg: plugin: loading Mail::SpamAssassin::Plugin::SPF from @INC
  85. [17660] dbg: plugin: registered Mail::SpamAssassin::Plugin::SPF=HASH(0xa0eeba4)
  86. [17660] dbg: plugin: loading Mail::SpamAssassin::Plugin::Pyzor from @INC
  87. [17660] dbg: pyzor: network tests on, attempting Pyzor
  88. [17660] dbg: plugin: registered Mail::SpamAssassin::Plugin::Pyzor=HASH(0xa0fbf4c)
  89. [17660] dbg: plugin: loading Mail::SpamAssassin::Plugin::Razor2 from @INC
  90. [17660] dbg: razor2: razor2 is available, version 2.82
  91. [17660] dbg: plugin: registered Mail::SpamAssassin::Plugin::Razor2=HASH(0xa0cc1d0)
  92. [17660] dbg: plugin: loading Mail::SpamAssassin::Plugin::SpamCop from @INC
  93. [17660] dbg: reporter: network tests on, attempting SpamCop
  94. [17660] dbg: plugin: registered Mail::SpamAssassin::Plugin::SpamCop=HASH(0xa5547a4)
  95. [17660] dbg: plugin: loading Mail::SpamAssassin::Plugin::AWL from @INC
  96. [17660] dbg: plugin: registered Mail::SpamAssassin::Plugin::AWL=HASH(0xa56eeac)
  97. [17660] dbg: plugin: loading Mail::SpamAssassin::Plugin::AutoLearnThreshold from @INC
  98. [17660] dbg: plugin: registered Mail::SpamAssassin::Plugin::AutoLearnThreshold=HASH(0xa55bae0)
  99. [17660] dbg: plugin: loading Mail::SpamAssassin::Plugin::WhiteListSubject from @INC
  100. [17660] dbg: plugin: registered Mail::SpamAssassin::Plugin::WhiteListSubject=HASH(0xa58bc80)
  101. [17660] dbg: plugin: loading Mail::SpamAssassin::Plugin::MIMEHeader from @INC
  102. [17660] dbg: plugin: registered Mail::SpamAssassin::Plugin::MIMEHeader=HASH(0xa599818)
  103. [17660] dbg: plugin: loading Mail::SpamAssassin::Plugin::ReplaceTags from @INC
  104. [17660] dbg: plugin: registered Mail::SpamAssassin::Plugin::ReplaceTags=HASH(0xa5a092c)
  105. [17660] dbg: config: adding redirector regex: /^http:\/\/chkpt\.zdnet\.com\/chkpt\/\w+\/(.*)$/i
  106. [17660] dbg: config: adding redirector regex: /^http:\/\/www(?:\d+)?\.nate\.com\/r\/\w+\/(.*)$/i
  107. [17660] dbg: config: adding redirector regex: /^http:\/\/.+\.gov\/(?:.*\/)?externalLink\.jhtml\?.*url=(.*?)(?:&.*)?$/i
  108. [17660] dbg: config: adding redirector regex: /^http:\/\/redir\.internet\.com\/.+?\/.+?\/(.*)$/i
  109. [17660] dbg: config: adding redirector regex: /^http:\/\/(?:.*?\.)?adtech\.de\/.*(?:;|\|)link=(.*?)(?:;|$)/i
  110. [17660] dbg: config: adding redirector regex: m'^http.*?/redirect\.php\?.*(?<=[?&])goto=(.*?)(?:$|[&#])'i
  111. [17660] dbg: config: adding redirector regex: m'^https?:/*(?:[^/]+\.)?emf\d\.com/r\.cfm.*?&r=(.*)'i
  112. [17660] dbg: config: adding redirector regex: m'/(?:index.php)?\?.*(?<=[?&])URL=(.*?)(?:$|[&#])'i
  113. [17660] dbg: config: adding redirector regex: m'^http:/*(?:\w+\.)?google(?:\.\w{2,3}){1,2}/url\?.*?(?<=[?&])q=(.*?)(?:$|[&#])'i
  114. [17660] dbg: config: adding redirector regex: m'^http:/*(?:\w+\.)?google(?:\.\w{2,3}){1,2}/search\?.*?(?<=[?&])q=[^&]*?(?<=%20|..[=+\s])site:(.*?)(?:$|%20|[\s+&#])'i
  115. [17660] dbg: config: adding redirector regex: m'^http:/*(?:\w+\.)?google(?:\.\w{2,3}){1,2}/search\?.*?(?<=[?&])q=[^&]*?(?<=%20|..[=+\s])(?:"|%22)(.*?)(?:$|%22|["\s+&#])'i
  116. [17660] dbg: config: adding redirector regex: m'^http:/*(?:\w+\.)?google(?:\.\w{2,3}){1,2}/translate\?.*?(?<=[?&])u=(.*?)(?:$|[&#])'i
  117. [17660] dbg: plugin: Mail::SpamAssassin::Plugin::ReplaceTags=HASH(0xa5a092c) implements 'finish_parsing_end'
  118. [17660] dbg: replacetags: replacing tags
  119. [17660] dbg: replacetags: done replacing tags
  120. [17660] dbg: config: using "/root/.spamassassin" for user state dir
  121. [17660] dbg: bayes: no dbs present, cannot tie DB R/O: /root/.spamassassin/bayes_toks
  122. [17660] dbg: config: score set 1 chosen.
  123. [17660] dbg: bayes: no dbs present, cannot tie DB R/O: /root/.spamassassin/bayes_toks
  124. [17660] dbg: dns: name server: 195.68.0.1, family: 2, ipv6: 0
  125. [17660] dbg: dns: testing resolver nameservers: 195.68.0.1, 195.68.0.2
  126. [17660] dbg: dns: trying (3) yahoo.com...
  127. [17660] dbg: dns: looking up NS for 'yahoo.com'
  128. [17660] dbg: dns: NS lookup of yahoo.com using 195.68.0.1 succeeded => DNS available (set dns_available to override)
  129. [17660] dbg: dns: is DNS available? 1
  130. [17660] dbg: metadata: X-Spam-Relays-Trusted:  
  131. [17660] dbg: metadata: X-Spam-Relays-Untrusted:  
  132. [17660] dbg: metadata: X-Spam-Relays-Internal:  
  133. [17660] dbg: metadata: X-Spam-Relays-External:  
  134. [17660] dbg: message: ---- MIME PARSER START ----
  135. [17660] dbg: message: main message type: text/plain
  136. [17660] dbg: message: parsing normal part
  137. [17660] dbg: message: added part, type: text/plain
  138. [17660] dbg: message: ---- MIME PARSER END ----
  139. [17660] dbg: message: decoding other encoding type (7bit), ignoring
  140. [17660] dbg: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0xa0b5c40) implements 'parsed_metadata'
  141. [17660] dbg: uridnsbl: domains to query:  
  142. [17660] dbg: dns: checking RBL sbl-xbl.spamhaus.org., set sblxbl-lastexternal
  143. [17660] dbg: dns: checking RBL sa-accredit.habeas.com., set habeas-firsttrusted
  144. [17660] dbg: dns: checking RBL sbl-xbl.spamhaus.org., set sblxbl
  145. [17660] dbg: dns: checking RBL sa-other.bondedsender.org., set bsp-untrusted
  146. [17660] dbg: dns: checking RBL combined.njabl.org., set njabl-lastexternal
  147. [17660] dbg: dns: checking RBL combined.njabl.org., set njabl
  148. [17660] dbg: dns: checking RBL combined-HIB.dnsiplists.completewhois.com., set whois
  149. [17660] dbg: dns: checking RBL list.dsbl.org., set dsbl-lastexternal
  150. [17660] dbg: dns: checking RBL bl.spamcop.net., set spamcop
  151. [17660] dbg: dns: checking RBL sa-trusted.bondedsender.org., set bsp-firsttrusted
  152. [17660] dbg: dns: checking RBL combined-HIB.dnsiplists.completewhois.com., set whois-lastexternal
  153. [17660] dbg: dns: checking RBL dnsbl.sorbs.net., set sorbs-lastexternal
  154. [17660] dbg: dns: checking RBL dnsbl.sorbs.net., set sorbs
  155. [17660] dbg: dns: checking RBL iadb.isipp.com., set iadb-firsttrusted
  156. [17660] dbg: check: running tests for priority: 0
  157. [17660] dbg: rules: running header regexp tests; score so far=0
  158. [17660] dbg: rules: ran header rule __HAS_MSGID ======> got hit: "<"
  159. [17660] dbg: rules: ran header rule __CT ======> got hit: "t"
  160. [17660] dbg: rules: ran header rule __CTE ======> got hit: "7"
  161. [17660] dbg: rules: ran header rule __SANE_MSGID ======> got hit: "<GTUBE1.1010101@example.net>
  162. [17660] dbg: rules: "
  163. [17660] dbg: rules: ran header rule __CT_TEXT_PLAIN ======> got hit: "text/plain"
  164. [17660] dbg: rules: ran header rule __HAS_SUBJECT ======> got hit: "T"
  165. [17660] dbg: rules: ran header rule __MSGID_OK_HOST ======> got hit: "@example.net>"
  166. [17660] dbg: rules: ran header rule __MIME_VERSION ======> got hit: "1"
  167. [17660] dbg: rules: ran header rule __TOCC_EXISTS ======> got hit: "R"
  168. [17660] dbg: spf: no suitable relay for spf use found, skipping SPF-helo check
  169. [17660] dbg: eval: all '*From' addrs: sender@example.net
  170. [17660] dbg: eval: all '*To' addrs: recipient@example.net
  171. [17660] dbg: spf: no suitable relay for spf use found, skipping SPF check
  172. [17660] dbg: rules: ran eval rule NO_RELAYS ======> got hit
  173. [17660] dbg: spf: cannot get Envelope-From, cannot use SPF
  174. [17660] dbg: spf: def_spf_whitelist_from: could not find useable envelope sender
  175. [17660] dbg: rules: ran eval rule __UNUSABLE_MSGID ======> got hit
  176. [17660] dbg: spf: spf_whitelist_from: could not find useable envelope sender
  177. [17660] dbg: rules: running body-text per-line regexp tests; score so far=-0.001
  178. [17660] dbg: rules: ran body rule GTUBE ======> got hit: "XJS*C4JDBQADN1.NSBN3*2IDNEN*GTUBE-STANDARD-ANTI-UBE-TEST-EMAIL*C.34X"
  179. [17660] dbg: rules: ran body rule __NONEMPTY_BODY ======> got hit: "T"
  180. [17660] dbg: uri: running uri tests; score so far=999.999
  181. [17660] dbg: bayes: no dbs present, cannot tie DB R/O: /root/.spamassassin/bayes_toks
  182. [17660] dbg: bayes: not scoring message, returning undef
  183. [17660] dbg: bayes: opportunistic call attempt failed, DB not readable
  184. [17660] dbg: rules: running raw-body-text per-line regexp tests; score so far=999.999
  185. [17660] dbg: rules: running full-text regexp tests; score so far=999.999
  186. [17660] dbg: info: entering helper-app run mode
  187. [17660] dbg: info: leaving helper-app run mode
  188. [17660] dbg: razor2: razor2 check timed out after 5 seconds
  189. [17660] dbg: razor2: results: spam? 0
  190. [17660] dbg: razor2: results: engine 8, highest cf score: 0
  191. [17660] dbg: razor2: results: engine 4, highest cf score: 0
  192. [17660] dbg: util: current PATH is: /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
  193. [17660] dbg: util: executable for pyzor was found at /usr/bin/pyzor
  194. [17660] dbg: pyzor: pyzor is available: /usr/bin/pyzor
  195. [17660] dbg: info: entering helper-app run mode
  196. [17660] dbg: pyzor: opening pipe: /usr/bin/pyzor check < /tmp/.spamassassin17660kFnhCltmp
  197. [17662] dbg: util: setuid: ruid=0 euid=0
  198. [17660] dbg: pyzor: killed stale helper [17662]
  199. [17660] dbg: pyzor: [17662] terminated: exit=0x000f
  200. [17660] dbg: info: leaving helper-app run mode
  201. [17660] dbg: pyzor: check timed out after 5 seconds
  202. [17660] dbg: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0xa0b5c40) implements 'check_tick'
  203. [17660] dbg: check: running tests for priority: 500
  204. [17660] dbg: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0xa0b5c40) implements 'check_post_dnsbl'
  205. [17660] dbg: rules: running meta tests; score so far=999.999
  206. [17660] info: rules: meta test DIGEST_MULTIPLE has undefined dependency 'DCC_CHECK'
  207. [17660] dbg: rules: running header regexp tests; score so far=999.998
  208. [17660] dbg: rules: running body-text per-line regexp tests; score so far=999.998
  209. [17660] dbg: uri: running uri tests; score so far=999.998
  210. [17660] dbg: rules: running raw-body-text per-line regexp tests; score so far=999.998
  211. [17660] dbg: rules: running full-text regexp tests; score so far=999.998
  212. [17660] dbg: check: running tests for priority: 1000
  213. [17660] dbg: rules: running meta tests; score so far=999.998
  214. [17660] dbg: rules: running header regexp tests; score so far=999.998
  215. [17660] dbg: config: using "/root/.spamassassin" for user state dir
  216. [17660] dbg: locker: safe_lock: created /root/.spamassassin/auto-whitelist.lock.mail2.XXX.XXXX.17660
  217. [17660] dbg: locker: safe_lock: trying to get lock on /root/.spamassassin/auto-whitelist with 0 retries
  218. [17660] dbg: locker: safe_lock: link to /root/.spamassassin/auto-whitelist.lock: link ok
  219. [17660] dbg: auto-whitelist: tie-ing to DB file of type DB_File R/W in /root/.spamassassin/auto-whitelist
  220. [17660] dbg: auto-whitelist: db-based sender@example.net|ip=none scores 1/-0.002
  221. [17660] dbg: auto-whitelist: AWL active, pre-score: 999.998, autolearn score: -0.002, mean: -0.002, IP: undef
  222. [17660] dbg: auto-whitelist: add_score: new count: 2, new totscore: -0.004
  223. [17660] dbg: auto-whitelist: DB addr list: untie-ing and unlocking
  224. [17660] dbg: auto-whitelist: DB addr list: file locked, breaking lock
  225. [17660] dbg: locker: safe_unlock: unlink /root/.spamassassin/auto-whitelist.lock
  226. [17660] dbg: auto-whitelist: post auto-whitelist score: 999.998
  227. [17660] dbg: rules: running body-text per-line regexp tests; score so far=999.998
  228. [17660] dbg: uri: running uri tests; score so far=999.998
  229. [17660] dbg: rules: running raw-body-text per-line regexp tests; score so far=999.998
  230. [17660] dbg: rules: running full-text regexp tests; score so far=999.998
  231. [17660] dbg: plugin: Mail::SpamAssassin::Plugin::AutoLearnThreshold=HASH(0xa55bae0) implements 'autolearn_discriminator'
  232. [17660] dbg: learn: auto-learn: currently using scoreset 1
  233. [17660] dbg: learn: auto-learn: message score: 999.998, computed score for autolearn: 0
  234. [17660] dbg: learn: auto-learn? ham=0.1, spam=12, body-points=0, head-points=0, learned-points=0
  235. [17660] dbg: learn: auto-learn? no: scored as spam but autolearn wanted ham
  236. [17660] dbg: check: is spam? score=999.998 required=4
  237. [17660] dbg: check: tests=GTUBE,NO_RECEIVED,NO_RELAYS
  238. [17660] dbg: check: subtests=__CT,__CTE,__CT_TEXT_PLAIN,__HAS_MSGID,__HAS_SUBJECT,__MIME_VERSION,__MSGID_OK_HOST,__NONEMPTY_BODY,__SANE_MSGID,__TOCC_EXISTS,__UNUSABLE_MSGID
  239. Received: from localhost by mail2.a-sis.com
  240.         with SpamAssassin (version 3.1.8);
  241.         Tue, 17 Apr 2007 12:03:11 +0200
  242. From: Sender <sender@example.net>
  243. To: Recipient <recipient@example.net>
  244. Subject: *****SPAM-SPAM-SPAM Test spam mail (GTUBE)
  245. Date: Wed, 23 Jul 2003 23:30:00 +0200
  246. Message-Id: <GTUBE1.1010101@example.net>
  247. X-Spam-Flag: YES
  248. X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on mail2.XXXXX.XXXX
  249. X-Spam-Level: **************************************************
  250. X-Spam-Status: Yes, score=1000.0 required=4.0 tests=GTUBE,NO_RECEIVED,
  251.         NO_RELAYS autolearn=no version=3.1.8
  252. MIME-Version: 1.0
  253. Content-Type: multipart/mixed; boundary="----------=_46249B5F.B1542DAA"
  254. This is a multi-part message in MIME format.
  255. ------------=_46249B5F.B1542DAA
  256. Content-Type: text/plain
  257. Content-Disposition: inline
  258. Content-Transfer-Encoding: 8bit
  259. Spam detection software, running on the system "mail2.XXX.XXX", has
  260. identified this incoming email as possible spam.  The original message
  261. has been attached to this so you can view it (if it isn't spam) or label
  262. similar future email.  If you have any questions, see
  263. the administrator of that system for details.
  264. Content preview:  This is the GTUBE, the Generic Test for Unsolicited Bulk Email
  265.    If your spam filter supports it, the GTUBE provides a test by which you can
  266.    verify that the filter is installed correctly and is detecting incoming spam.
  267.    You can send yourself a test mail containing the following string of characters
  268.    (in upper case and with no white spaces and line breaks): [...]  
  269. Content analysis details:   (1000.0 points, 4.0 required)
  270. pts rule name              description
  271. ---- ---------------------- --------------------------------------------------
  272. -0.0 NO_RELAYS              Informational: message was not relayed via SMTP
  273. 1000 GTUBE                  BODY: Generic Test for Unsolicited Bulk Email
  274. -0.0 NO_RECEIVED            Informational: message has no Received headers
  275. ------------=_46249B5F.B1542DAA
  276. Content-Type: message/rfc822; x-spam-type=original
  277. Content-Description: original message before SpamAssassin
  278. Content-Disposition: inline
  279. Content-Transfer-Encoding: 8bit
  280. Subject: Test spam mail (GTUBE)
  281. Message-ID: <GTUBE1.1010101@example.net>
  282. Date: Wed, 23 Jul 2003 23:30:00 +0200
  283. From: Sender <sender@example.net>
  284. To: Recipient <recipient@example.net>
  285. Precedence: junk
  286. MIME-Version: 1.0
  287. Content-Type: text/plain; charset=us-ascii
  288. Content-Transfer-Encoding: 7bit
  289. This is the GTUBE, the
  290.         Generic
  291.         Test for
  292.         Unsolicited
  293.         Bulk
  294.         Email
  295. If your spam filter supports it, the GTUBE provides a test by which you
  296. can verify that the filter is installed correctly and is detecting incoming
  297. spam. You can send yourself a test mail containing the following string of
  298. characters (in upper case and with no white spaces and line breaks):
  299. XJS*C4JDBQADN1.NSBN3*2IDNEN*GTUBE-STANDARD-ANTI-UBE-TEST-EMAIL*C.34X
  300. You should send this test mail from an account outside of your network.
  301. ------------=_46249B5F.B1542DAA--
  302. [root@mail2 ~]#


Message édité par madsurfer le 17-04-2007 à 12:12:19
n°904009
toniotonio
Posté le 17-04-2007 à 12:30:06  profilanswer
 

SA semble ok
essaie de voir pour interfacer differemment avec postfix

n°907694
gtistyle
Posté le 27-04-2007 à 12:10:44  profilanswer
 

sinon si tu le souhaites
install mailscanner + clamav en + de postfix et spamassassin
 
mailscanner va gérer clamav et spamassassin
 

n°910420
trictrac
Posté le 07-05-2007 à 21:27:34  profilanswer
 

j'ai essayé cette methode, et ca a l'air plus simple


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Linux et OS Alternatifs
  réseaux et sécurité

  Postfix et Spamassassin ne dialoguent pas

 

Sujets relatifs
Postfix VS Hotmailpostfix+sasl+mysql
Postfix +MySQL +SASL2 +Postfixadminquestion fonctionnement postfix
[fedora] postfix rejet de mail des spammeursDifficultés pour désinstaller Postfix
[Résolu] mailman/postfix, ports à ouvrir ?config avancée postfix
Probléme+postfixPostfix smtp depuis l'extérieur
Plus de sujets relatifs à : Postfix et Spamassassin ne dialoguent pas


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR