[Postfix + Amavis + Spamassassin] Spamassassin n'attribue pas de score

Spamassassin n'attribue pas de score [Postfix + Amavis + Spamassassin] - Logiciels - Linux et OS Alternatifs

Marsh Posté le 13-06-2007 à 17:12:34    

Bonjour, Voici mon problème :

 

Je tourne sous Ubuntu.
J'ai une configuration postfix / mysql avec mes alias et mes virtual users fonctionnelle.
Amavis scanne bien les messages à la recherche de virus et de spam, mais spamassassin
n'attibue pas de scores aux messages.

 

Voici un extrait de mon mail.log pour expliquer le tout :

 
Code :
  1. Jun 13 16:33:58 moe postfix/qmgr[18579]: 001AF3A42E1: from=<20.cent@free.fr>, size=11725, nrcpt=1 (queue active)
  2. Jun 13 16:33:58 moe postfix/smtpd[18591]: disconnect from localhost.localdomain[127.0.0.1]
  3. Jun 13 16:33:58 moe amavis[17397]: (17397-02) Passed CLEAN, [80.12.242.138] [90.31.155.183] <test@mondomaine.fr> -> <test@mondomaine2.fr>, Message-ID: <46700070.7050009@free.fr>, mail_id: Y+s8c9VQ0aT3, Hits: -, queued_as: 001AF3A42E1, 307 ms
  4. Jun 13 16:33:58 moe postfix/smtp[18589]: 85C1C3A42CB: to=<test@mondomaine2.fr>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.57, delays=0.24/0.02/0.01/0.31, dsn=2.6.0, status=sent (250 2.6.0 Ok, id=17397-02, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 001AF3A42E1)
  5. Jun 13 16:33:58 moe postfix/qmgr[18579]: 85C1C3A42CB: removed
  6. Jun 13 16:33:58 moe postfix/virtual[18592]: 001AF3A42E1: to=<vince@breizhatao.fr>, relay=virtual, delay=0.16, delays=0.07/0.05/0/0.04, dsn=2.0.0, status=sent (delivered to maildir)
 

La chose qui m'intrigue dans ce log est 'Hits: -' , ce n'est pas à cet endroit que spamassassin est censé mettre le score que le message a obtenu ?

 

D'autre part, les entêtes de mes mails ne sont pas modifiés.

 

Pourriez vous m'aider a mettre en place mon filtre spam + antivirus sur mes mails ?

 

mon 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       -       -       -       -       smtpd
  10. #submission inet n       -       -       -       -       smtpd
  11. #  -o smtpd_enforce_tls=yes
  12. #  -o smtpd_sasl_auth_enable=yes
  13. #  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
  14. #smtps     inet  n       -       -       -       -       smtpd
  15. #  -o smtpd_tls_wrappermode=yes
  16. #  -o smtpd_sasl_auth_enable=yes
  17. #  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
  18. #628      inet  n       -       -       -       -       qmqpd
  19. pickup    fifo  n       -       -       60      1       pickup
  20. cleanup   unix  n       -       n       -       0       cleanup
  21. qmgr      fifo  n       -       n       300     1       qmgr
  22. #qmgr     fifo  n       -       -       300     1       oqmgr
  23. tlsmgr    unix  -       -       -       1000?   1       tlsmgr
  24. rewrite   unix  -       -       n       -       -       trivial-rewrite
  25. bounce    unix  -       -       -       -       0       bounce
  26. defer     unix  -       -       -       -       0       bounce
  27. trace     unix  -       -       -       -       0       bounce
  28. verify    unix  -       -       -       -       1       verify
  29. flush     unix  n       -       -       1000?   0       flush
  30. proxymap  unix  -       -       n       -       -       proxymap
  31. smtp      unix  -       -       -       -       -       smtp
  32. # When relaying mail as backup MX, disable fallback_relay to avoid MX loops
  33. relay     unix  -       -       -       -       -       smtp
  34.         -o fallback_relay=
  35. #       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
  36. showq     unix  n       -       -       -       -       showq
  37. error     unix  -       -       -       -       -       error
  38. discard   unix  -       -       -       -       -       discard
  39. local     unix  -       n       n       -       -       local
  40. virtual   unix  -       n       n       -       -       virtual
  41. lmtp      unix  -       -       -       -       -       lmtp
  42. anvil     unix  -       -       -       -       1       anvil
  43. scache    unix  -       -       -       -       1       scache
  44. #
  45. # ====================================================================
  46. # Interfaces to non-Postfix software. Be sure to examine the manual
  47. # pages of the non-Postfix software to find out what options it wants.
  48. #
  49. # Many of the following services use the Postfix pipe(8) delivery
  50. # agent.  See the pipe(8) man page for information about ${recipient}
  51. # and other message envelope options.
  52. # ====================================================================
  53. #
  54. # maildrop. See the Postfix MAILDROP_README file for details.
  55. # Also specify in main.cf: maildrop_destination_recipient_limit=1
  56. #
  57. maildrop  unix  -       n       n       -       -       pipe
  58.   flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
  59. #
  60. # See the Postfix UUCP_README file for configuration details.
  61. #
  62. uucp      unix  -       n       n       -       -       pipe
  63.   flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
  64. #
  65. # Other external delivery methods.
  66. #
  67. ifmail    unix  -       n       n       -       -       pipe
  68.   flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
  69. bsmtp     unix  -       n       n       -       -       pipe
  70.   flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
  71. scalemail-backend unix  -       n       n       -       2       pipe
  72.   flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
  73. mailman   unix  -       n       n       -       -       pipe
  74.   flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
  75.   ${nexthop} ${user}
  76. amavis unix - - - - 2 smtp
  77.         -o smtp_data_done_timeout=1200
  78.         -o smtp_send_xforward_command=yes
  79. 127.0.0.1:10025 inet n - - - - smtpd
  80.         -o content_filter=
  81.         -o local_recipient_maps=
  82.         -o relay_recipient_maps=
  83.         -o smtpd_restriction_classes=
  84.         -o smtpd_client_restrictions=
  85.         -o smtpd_helo_restrictions=
  86.         -o smtpd_sender_restrictions=
  87.         -o smtpd_recipient_restrictions=permit_mynetworks,reject
  88.         -o mynetworks=127.0.0.0/8
  89.         -o strict_rfc821_envelopes=yes
  90.         -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
  91.         -o smtpd_bind_address=127.0.0.1
 


mon master.cf :

Code :
  1. smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
  2. biff = no
  3. # appending .domain is the MUA's job.
  4. append_dot_mydomain = no
  5. # Uncomment the next line to generate "delayed mail" warnings
  6. #delay_warning_time = 4h
  7. # TLS parameters
  8. smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
  9. smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
  10. smtpd_use_tls = yes
  11. smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
  12. smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
  13. # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
  14. # information on enabling SSL in the smtp client.
  15. myhostname = moe.mondomaine2.fr
  16. alias_maps = hash:/etc/aliases
  17. alias_database = hash:/etc/aliases
  18. myorigin = /etc/mailname
  19. mydestination = mail.mondomaine2.fr, moe.mondomaine2.fr, localhost.mondomaine2.fr, localhost
  20. relayhost =
  21. mynetworks = 127.0.0.0/8 192.168.0.0/24
  22. mailbox_command = maildrop
  23. mailbox_size_limit = 0
  24. recipient_delimiter = +
  25. inet_interfaces = all
  26. inet_protocols = ipv4
  27. smtpd_sasl_local_domain =
  28. smtpd_sasl_auth_enable = yes
  29. smtpd_sasl_security_options = noanonymous
  30. broken_sasl_auth_clients = yes
  31. smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
  32. smtpd_tls_auth_only = no
  33. smtp_use_tls = yes
  34. smtp_tls_note_starttls_offer = yes
  35. smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
  36. smtpd_tls_loglevel = 1
  37. smtpd_tls_received_header = yes
  38. smtpd_tls_session_cache_timeout = 3600s
  39. tls_random_source = dev:/dev/urandom
  40. # Support Amavis
  41. content_filter = amavis:[127.0.0.1]:10024
  42. receive_override_options = no_address_mappings
  43. # Support Mysql
  44. virtual_alias_maps = mysql:/etc/postfix/mysql/mysql_virtual_alias_maps.cf
  45. virtual_gid_maps = static:5000
  46. virtual_mailbox_base = /home/vmail
  47. virtual_mailbox_domains = mysql:/etc/postfix/mysql/mysql_virtual_domains_maps.cf
  48. virtual_mailbox_limit = 51200000
  49. virtual_mailbox_maps = mysql:/etc/postfix/mysql/mysql_virtual_mailbox_maps.cf
  50. virtual_minimum_uid = 5000
  51. virtual_transport = virtual
  52. #virtual_transport = maildrop
  53. #maildrop_destination_recipient_limit = 1
  54. virtual_uid_maps = static:5000
  55. # Support du quota
  56. virtual_create_maildirsize = yes
  57. virtual_mailbox_extended = yes
  58. virtual_mailbox_limit_maps = mysql:/etc/postfix/mysql/mysql_virtual_mailbox_limit_maps.cf
  59. virtual_mailbox_limit_override = yes
  60. virtual_maildir_limit_message = Desole, la boite email de l'utilisateur est pleine, essayez plus tard.
  61. virtual_overquota_bounce = yes
  62. # Suport du relay
  63. #relay_domains = mysql:/etc/postfix/mysql/mysql_relay_domains_maps.cf
 

Voila, merci pour votre aide ;)


Message édité par PII350 le 13-06-2007 à 17:14:38
Reply

Marsh Posté le 13-06-2007 à 17:12:34   

Reply

Marsh Posté le 13-06-2007 à 18:22:47    

faudrait voir ta conf d'amavisd et un postconf -n
 
peux tu preciser les versions de chaque softs ?


---------------
Messagerie dédiée, Relais Mail Antispam/Antivirus, Infogérance 24/7: http://www.eole-its.com
Reply

Marsh Posté le 13-06-2007 à 18:44:02    

Merci de t'intéresser à mon problème ;)  
 
version amavisd-new : 1:2.4.1-1
version Postfix : 2.3.3-1
 
postconf -n :
 

Code :
  1. alias_database = hash:/etc/aliases
  2. alias_maps = hash:/etc/aliases
  3. append_dot_mydomain = no
  4. biff = no
  5. broken_sasl_auth_clients = yes
  6. config_directory = /etc/postfix
  7. content_filter = amavis:[127.0.0.1]:10024
  8. inet_interfaces = all
  9. inet_protocols = ipv4
  10. mailbox_command = maildrop
  11. mailbox_size_limit = 0
  12. mydestination = mail.breizhatao.fr, moe.breizhatao.fr, localhost.breizhatao.fr, localhost
  13. myhostname = moe.breizhatao.fr
  14. mynetworks = 127.0.0.0/8 192.168.0.0/24
  15. myorigin = /etc/mailname
  16. receive_override_options = no_address_mappings
  17. recipient_delimiter = +
  18. relayhost =
  19. smtp_tls_note_starttls_offer = yes
  20. smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
  21. smtp_use_tls = yes
  22. smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
  23. smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
  24. smtpd_sasl_auth_enable = yes
  25. smtpd_sasl_local_domain =
  26. smtpd_sasl_security_options = noanonymous
  27. smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
  28. smtpd_tls_auth_only = no
  29. smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
  30. smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
  31. smtpd_tls_loglevel = 1
  32. smtpd_tls_received_header = yes
  33. smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
  34. smtpd_tls_session_cache_timeout = 3600s
  35. smtpd_use_tls = yes
  36. tls_random_source = dev:/dev/urandom
  37. virtual_alias_maps = mysql:/etc/postfix/mysql/mysql_virtual_alias_maps.cf
  38. virtual_gid_maps = static:5000
  39. virtual_mailbox_base = /home/vmail
  40. virtual_mailbox_domains = mysql:/etc/postfix/mysql/mysql_virtual_domains_maps.cf
  41. virtual_mailbox_limit = 51200000
  42. virtual_mailbox_maps = mysql:/etc/postfix/mysql/mysql_virtual_mailbox_maps.cf
  43. virtual_minimum_uid = 5000
  44. virtual_transport = virtual
  45. virtual_uid_maps = static:5000


 
et mon amavisd.conf :
 

Code :
  1. use strict;
  2. $MYHOME = '/var/lib/amavis';   # (default is '/var/amavis')
  3. $mydomain = 'breizhatao.fr';
  4. # $myhostname = 'serveur.domain.tld';  # fqdn of this host, default by uname(3)
  5. $daemon_user  = 'amavis';        # (no default (undef))
  6. $daemon_group = 'amavis';        # (no default (undef))
  7. $TEMPBASE = $MYHOME;           # (must be set if other config vars use is)
  8. $pid_file  = "/var/run/amavis/amavisd.pid";  # (default: "$MYHOME/amavisd.pid" )
  9. $lock_file = "/var/run/amavis/amavisd.lock"; # (default: "$MYHOME/amavisd.lock" )
  10. $ENV{TMPDIR} = $TEMPBASE;       # wise to set TMPDIR, but not obligatory
  11. $max_servers  =  4;   # number of pre-forked children          (default 2)
  12. $max_requests = 10;   # retire a child after that many accepts (default 10)
  13. $child_timeout=5*60;  # abort child if it does not complete each task in n sec
  14.                       # (default: 8*60 seconds)
  15. # @bypass_virus_checks_acl = qw( . );  # uncomment to DISABLE anti-virus code
  16. # @bypass_spam_checks_acl  = qw( . );  # uncomment to DISABLE anti-spam code
  17. @local_domains_acl = ( ".$mydomain" );  # $mydomain and its subdomains
  18. $relayhost_is_client = 0;         # (defaults to false)
  19. $insert_received_line = 1;
  20. $unix_socketname = undef;
  21. $inet_socket_port = 10024;
  22. $inet_socket_bind = '127.0.0.1';
  23. @inet_acl = qw( 127.0.0.1 );
  24. $DO_SYSLOG = 1;
  25. $LOGFILE = "/var/log/amavis.log";  # (defaults to empty, no log)
  26. #$log_level = 1;                # (defaults to 0)
  27. $log_templ = '[? %#V |[? %#F |[?%#D|Not-Delivered|Passed]|BANNED name/type (%F)]|INFECTED (%V)], #
  28. [?%o|(?)|<%o>] -> [<%R>|,][? %i ||, quarantine %i], Message-ID: %m, Hits: %c';
  29. read_l10n_templates('en_US', '/etc/amavis');
  30. $final_virus_destiny      = D_REJECT; # (defaults to D_BOUNCE)
  31. $final_banned_destiny     = D_REJECT;  # (defaults to D_BOUNCE)
  32. $final_spam_destiny       = D_PASS;  # (defaults to D_REJECT)
  33. $final_bad_header_destiny = D_PASS;  # (defaults to D_PASS), D_BOUNCE suggested
  34. $viruses_that_fake_sender_re = new_RE(
  35.   qr'nimda|hybris|klez|bugbear|yaha|braid|sobig|fizzer|palyh|peido|holar'i,
  36.   qr'tanatos|lentin|bridex|mimail|trojan\.dropper|dumaru|parite|spaces'i,
  37.   qr'dloader|galil|gibe|swen|netwatch|bics|sbrowse|sober|rox|val(hal)?la'i,
  38.   qr'frethem|sircam|be?agle|tanx|mydoom|novarg|shimg|netsky|somefool|moodown'i,
  39.   qr'@mm|@MM',    # mass mailing viruses as labeled by f-prot and uvscan
  40.   qr'Worm'i,      # worms as labeled by ClamAV, Kaspersky, etc
  41.   [qr'^(EICAR|Joke\.|Junk\.)'i         => 0],
  42.   [qr'^(WM97|OF97|W95/CIH-|JS/Fort)'i  => 0],
  43.   [qr/.*/ => 1],  # true by default  (remove or comment-out if undesired)
  44. );
  45. $virus_admin = "postmaster\@$mydomain";                # due to D_DISCARD default
  46. $mailfrom_to_quarantine = '';   # override sender address with null return path
  47. $QUARANTINEDIR = '/var/lib/amavis/virusmails';
  48. $virus_quarantine_to  = 'virus-quarantine';    # traditional local quarantine
  49. $spam_quarantine_to = 'spam-quarantine';
  50. $X_HEADER_TAG = 'X-Virus-Scanned';        # (default: undef)
  51. $X_HEADER_LINE = "by $myversion (Debian) at $mydomain";
  52. $undecipherable_subject_tag = '***UNCHECKED*** ';  # undef disables it
  53. $remove_existing_x_scanned_headers = 0; # leave existing X-Virus-Scanned alone
  54. #$remove_existing_x_scanned_headers= 1; # remove existing headers
  55.                                         # (defaults to false)
  56. #$remove_existing_spam_headers = 0;     # leave existing X-Spam* headers alone
  57. $remove_existing_spam_headers  = 1;     # remove existing spam headers if
  58.                                         # spam scanning is enabled (default)
  59. $keep_decoded_original_re = new_RE(
  60. # qr'^MAIL$',   # retain full original message for virus checking (can be slow)
  61.   qr'^MAIL-UNDECIPHERABLE$',  # retain full mail if it contains undecipherables
  62.   qr'^(ASCII(?! cpio)|text|uuencoded|xxencoded|binhex)'i,
  63. # qr'^Zip archive data',
  64. );
  65. $banned_filename_re = new_RE(
  66. #  qr'^UNDECIPHERABLE$',  # is or contains any undecipherable components
  67.    qr'\.[^.]*\.(exe|vbs|pif|scr|bat|cmd|com|dll)$'i, # some double extensions
  68.    qr'[{}]',     # curly braces in names (serve as Class ID extensions - CLSID)
  69. #  qr'.\.(exe|vbs|pif|scr|bat|cmd|com)$'i,           # banned extension - basic
  70. #  qr'.\.(ade|adp|bas|bat|chm|cmd|com|cpl|crt|exe|hlp|hta|inf|ins|isp|js|
  71. #         jse|lnk|mdb|mde|msc|msi|msp|mst|pcd|pif|reg|scr|sct|shs|shb|vb|
  72. #         vbe|vbs|wsc|wsf|wsh)$'ix,                  # banned extension - long
  73. #  qr'.\.(mim|b64|bhx|hqx|xxe|uu|uue)$'i, # banned extension - WinZip vulnerab.
  74. #  qr'^\.(zip|lha|tnef|cab)$'i,                      # banned file(1) types
  75. #  qr'^\.exe$'i,                                     # banned file(1) types
  76. #  qr'^application/x-msdownload$'i,                  # banned MIME types
  77. #  qr'^application/x-msdos-program$'i,
  78.    qr'^message/partial$'i,  # rfc2046. this one is deadly for Outcrook
  79. #  qr'^message/external-body$'i, # block rfc2046
  80. );
  81. @lookup_sql_dsn =
  82.    ( ['DBI:mysql:database=postfix;host=127.0.0.1;port=3306', 'postfix', 'monpass'] );
  83. $sql_select_policy = 'SELECT "Y" as local FROM domains WHERE CONCAT("@",domain) IN (%k)';
  84. $sql_select_white_black_list = undef;  # undef disables SQL white/blacklisting
  85. $recipient_delimiter = '+';                # (default is '+')
  86. $replace_existing_extension = 1;        # (default is false)
  87. $localpart_is_case_sensitive = 0;        # (default is false)
  88. $blacklist_sender_re = new_RE(
  89.     qr'^(bulkmail|offers|cheapbenefits|earnmoney|foryou|greatcasino)@'i,
  90.     qr'^(investments|lose_weight_today|market\.alert|money2you|MyGreenCard)@'i,
  91.     qr'^(new\.tld\.registry|opt-out|opt-in|optin|saveonl|smoking2002k)@'i,
  92.     qr'^(specialoffer|specialoffers|stockalert|stopsnoring|wantsome)@'i,
  93.     qr'^(workathome|yesitsfree|your_friend|greatoffers)@'i,
  94.     qr'^(inkjetplanet|marketopt|MakeMoney)\d*@'i,
  95. );
  96. map { $whitelist_sender{lc($_)}=1 } (qw(
  97.   nobody@cert.org
  98.   owner-alert@iss.net
  99.   slashdot@slashdot.org
  100.   bugtraq@securityfocus.com
  101.   NTBUGTRAQ@LISTSERV.NTBUGTRAQ.COM
  102.   security-alerts@linuxsecurity.com
  103.   amavis-user-admin@lists.sourceforge.net
  104.   razor-users-admin@lists.sourceforge.net
  105.   notification-return@lists.sophos.com
  106.   mailman-announce-admin@python.org
  107.   zope-announce-admin@zope.org
  108.   owner-postfix-users@postfix.org
  109.   owner-postfix-announce@postfix.org
  110.   owner-sendmail-announce@lists.sendmail.org
  111.   sendmail-announce-request@lists.sendmail.org
  112.   ca+envelope@sendmail.org
  113.   owner-technews@postel.ACM.ORG
  114.   lvs-users-admin@LinuxVirtualServer.org
  115.   ietf-123-owner@loki.ietf.org
  116.   cvs-commits-list-admin@gnome.org
  117.   rt-users-admin@lists.fsck.com
  118.   owner-announce@mnogosearch.org
  119.   owner-hackers@ntp.org
  120.   owner-bugs@ntp.org
  121.   clp-request@comp.nus.edu.sg
  122.   surveys-errors@lists.nua.ie
  123.   emailNews@genomeweb.com
  124.   owner-textbreakingnews@CNNIMAIL12.CNN.COM
  125.   yahoo-dev-null@yahoo-inc.com
  126. ));
  127. $MAXLEVELS = 14;                # (default is undef, no limit)
  128. $MAXFILES = 1500;                # (default is undef, no limit)
  129. $MIN_EXPANSION_QUOTA =      100*1024;  # bytes  (default undef, not enforced)
  130. $MAX_EXPANSION_QUOTA = 300*1024*1024;  # bytes  (default undef, not enforced)
  131. $MIN_EXPANSION_FACTOR =   5;  # times original mail size  (must be specified)
  132. $MAX_EXPANSION_FACTOR = 500;  # times original mail size  (must be specified)
  133. $path = '/usr/local/sbin:/usr/local/bin:/usr/sbin:/sbin:/usr/bin:/bin';
  134. $file   = 'file';   # file(1) utility; use 3.41 or later to avoid vulnerability
  135. $gzip   = 'gzip';
  136. $bzip2  = 'bzip2';
  137. $lzop   = 'lzop';
  138. $uncompress = ['uncompress', 'gzip -d', 'zcat'];
  139. $unfreeze   = ['unfreeze', 'freeze -d', 'melt', 'fcat'];
  140. $arc        = ['nomarch', 'arc'];
  141. $unarj      = ['arj', 'unarj'];  # both can extract, arj is recommended
  142. $unrar      = ['rar', 'unrar'];  # both can extract, same options
  143. $zoo    = 'zoo';
  144. $lha    = 'lha';
  145. $cpio   = 'cpio';   # comment out if cpio does not support GNU options
  146. $sa_local_tests_only = 0;   # (default: false)
  147. #$sa_auto_whitelist = 1;    # turn on AWL (default: false)
  148. # Timout for SpamAssassin. This is only used if spamassassin does NOT
  149. # override it (which it often does if sa_local_tests_only is not true)
  150. $sa_timeout = 30;           # timeout in seconds for a call to SpamAssassin
  151.                             # (default is 30 seconds, undef disables it)
  152. # AWL (auto whitelisting), requires spamassassin 2.44 or better
  153. # $sa_auto_whitelist = 1;   # defaults to undef
  154. $sa_mail_body_size_limit = 150*1024;
  155. $sa_tag_level_deflt  = 3.0; # add spam info headers if at, or above that level
  156. $sa_tag2_level_deflt = 4.0; # add 'spam detected' headers at that level
  157. $sa_kill_level_deflt = $sa_tag2_level_deflt;
  158. $sa_dsn_cutoff_level = 10;
  159. $sa_spam_subject_tag = '***SPAM*** ';
  160. $first_infected_stops_scan = 1;
  161. @av_scanners = (
  162. ### http://www.clamav.net/
  163. ['Clam Antivirus-clamd',
  164.   \&ask_daemon, ["CONTSCAN {}\n", "/var/run/clamav/clamd.ctl"],
  165.   qr/\bOK$/, qr/\bFOUND$/,
  166.   qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],
  167. # NOTE: run clamd under the same user as amavisd;  match the socket
  168. # name (LocalSocket) in clamav.conf to the socket name in this entry
  169. # When running chrooted one may prefer: ["CONTSCAN {}\n","$MYHOME/clamd"],
  170. );
  171. @av_scanners_backup = (
  172.   ### http://www.clamav.net/
  173.   ['Clam Antivirus - clamscan', 'clamscan',
  174.     "--stdout --no-summary -r --tempdir=$TEMPBASE {}", [0], [1],
  175.     qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],
  176. );
  177. 1;  # insure a defined return


 
J'espère que cela t'éclairera plus que moi car j'ai fouillé sur le net toute la journée et je ne sait vraiment plus de quel coté chercher... :sweat:


Message édité par PII350 le 13-06-2007 à 19:08:26
Reply

Marsh Posté le 13-06-2007 à 18:49:52    

tu as mis 2 fois le postconf :pt1cable:


---------------
Messagerie dédiée, Relais Mail Antispam/Antivirus, Infogérance 24/7: http://www.eole-its.com
Reply

Marsh Posté le 13-06-2007 à 19:09:06    

Oups  :sweat: !
 
=> Edité :)

Reply

Marsh Posté le 13-06-2007 à 19:21:56    

decommente le  $log_level = 1;  
et met le a 5
 
puis relance amavis
envoie un mail et poste les logs


---------------
Messagerie dédiée, Relais Mail Antispam/Antivirus, Infogérance 24/7: http://www.eole-its.com
Reply

Marsh Posté le 13-06-2007 à 19:30:56    

# tail -f /var/log/mail.log

Code :
  1. un 13 19:25:57 moe amavis[20503]: starting.  /usr/sbin/amavisd-new at moe.breizhatao.fr amavisd-new-2.4.1 (20060508), Unicode aware, LANG=fr_FR.UTF-8
  2. Jun 13 19:25:58 moe amavis[20503]: Perl version               5.008008
  3. Jun 13 19:25:59 moe amavis[20510]: Module Amavis::Conf        2.065
  4. Jun 13 19:25:59 moe amavis[20510]: Module Archive::Tar        1.29
  5. Jun 13 19:25:59 moe amavis[20510]: Module Archive::Zip        1.16
  6. Jun 13 19:25:59 moe amavis[20510]: Module BerkeleyDB          0.27
  7. Jun 13 19:25:59 moe amavis[20510]: Module Compress::Zlib      1.41
  8. Jun 13 19:25:59 moe amavis[20510]: Module Convert::TNEF       0.17
  9. Jun 13 19:25:59 moe amavis[20510]: Module Convert::UUlib      1.051
  10. Jun 13 19:25:59 moe amavis[20510]: Module Digest::MD5         2.36
  11. Jun 13 19:25:59 moe amavis[20510]: Module MIME::Entity        5.420
  12. Jun 13 19:25:59 moe amavis[20510]: Module MIME::Parser        5.420
  13. Jun 13 19:25:59 moe amavis[20510]: Module MIME::Tools         5.420
  14. Jun 13 19:25:59 moe amavis[20510]: Module Mail::Header        1.74
  15. Jun 13 19:25:59 moe amavis[20510]: Module Mail::Internet      1.74
  16. Jun 13 19:25:59 moe amavis[20510]: Module Net::Cmd            2.26
  17. Jun 13 19:25:59 moe amavis[20510]: Module Net::SMTP           2.29
  18. Jun 13 19:25:59 moe amavis[20510]: Module Net::Server         0.90
  19. Jun 13 19:25:59 moe amavis[20510]: Module Time::HiRes         1.86
  20. Jun 13 19:25:59 moe amavis[20510]: Module Unix::Syslog        0.100
  21. Jun 13 19:25:59 moe amavis[20510]: Amavis::DB code      loaded
  22. Jun 13 19:25:59 moe amavis[20510]: Amavis::Cache code   loaded
  23. Jun 13 19:25:59 moe amavis[20510]: SQL base code        NOT loaded
  24. Jun 13 19:25:59 moe amavis[20510]: SQL::Log code        NOT loaded
  25. Jun 13 19:25:59 moe amavis[20510]: SQL::Quarantine      NOT loaded
  26. Jun 13 19:25:59 moe amavis[20510]: Lookup::SQL code     NOT loaded
  27. Jun 13 19:25:59 moe amavis[20510]: Lookup::LDAP code    NOT loaded
  28. Jun 13 19:25:59 moe amavis[20510]: AM.PDP-in proto code loaded
  29. Jun 13 19:25:59 moe amavis[20510]: SMTP-in proto code   loaded
  30. Jun 13 19:25:59 moe amavis[20510]: Courier proto code   NOT loaded
  31. Jun 13 19:25:59 moe amavis[20510]: SMTP-out proto code  loaded
  32. Jun 13 19:25:59 moe amavis[20510]: Pipe-out proto code  NOT loaded
  33. Jun 13 19:25:59 moe amavis[20510]: BSMTP-out proto code NOT loaded
  34. Jun 13 19:25:59 moe amavis[20510]: Local-out proto code loaded
  35. Jun 13 19:25:59 moe amavis[20510]: OS_Fingerprint code  NOT loaded
  36. Jun 13 19:25:59 moe amavis[20510]: ANTI-VIRUS code      NOT loaded
  37. Jun 13 19:25:59 moe amavis[20510]: ANTI-SPAM code       NOT loaded
  38. Jun 13 19:25:59 moe amavis[20510]: ANTI-SPAM-SA code    NOT loaded
  39. Jun 13 19:25:59 moe amavis[20510]: Unpackers code       loaded
  40. Jun 13 19:25:59 moe amavis[20510]: Found $file            at /usr/bin/file
  41. Jun 13 19:25:59 moe amavis[20510]: No $dspam,             not using it
  42. Jun 13 19:25:59 moe amavis[20510]: Internal decoder for .mail
  43. Jun 13 19:25:59 moe amavis[20510]: Internal decoder for .asc
  44. Jun 13 19:25:59 moe amavis[20510]: Internal decoder for .uue
  45. Jun 13 19:25:59 moe amavis[20510]: Internal decoder for .hqx
  46. Jun 13 19:25:59 moe amavis[20510]: Internal decoder for .ync
  47. Jun 13 19:25:59 moe amavis[20510]: No decoder for       .F    tried: unfreeze, freeze -d, melt, fcat
  48. Jun 13 19:25:59 moe amavis[20510]: Found decoder for    .Z    at /bin/uncompress
  49. Jun 13 19:25:59 moe amavis[20510]: Internal decoder for .gz
  50. Jun 13 19:25:59 moe amavis[20510]: Found decoder for    .bz2  at /bin/bzip2 -d
  51. Jun 13 19:25:59 moe amavis[20510]: No decoder for       .lzo  tried: lzop -d
  52. Jun 13 19:25:59 moe amavis[20510]: No decoder for       .rpm  tried: rpm2cpio.pl, rpm2cpio
  53. Jun 13 19:25:59 moe amavis[20510]: No decoder for       .cpio tried: pax
  54. Jun 13 19:25:59 moe amavis[20510]: Found decoder for    .cpio at /bin/cpio
  55. Jun 13 19:25:59 moe amavis[20510]: No decoder for       .tar  tried: pax
  56. Jun 13 19:25:59 moe amavis[20510]: Found decoder for    .tar  at /bin/cpio
  57. Jun 13 19:25:59 moe amavis[20510]: Found decoder for    .deb  at /usr/bin/ar
  58. Jun 13 19:25:59 moe amavis[20510]: Internal decoder for .zip
  59. Jun 13 19:25:59 moe amavis[20510]: No decoder for       .rar  tried: rar, unrar
  60. Jun 13 19:25:59 moe amavis[20510]: Found decoder for    .arj  at /usr/bin/arj
  61. Jun 13 19:25:59 moe amavis[20510]: No decoder for       .arc  tried: nomarch, arc
  62. Jun 13 19:25:59 moe amavis[20510]: Found decoder for    .zoo  at /usr/bin/zoo
  63. Jun 13 19:25:59 moe amavis[20510]: No decoder for       .lha  tried: lha
  64. Jun 13 19:25:59 moe amavis[20510]: No decoder for       .doc  tried: ripole
  65. Jun 13 19:25:59 moe amavis[20510]: No decoder for       .cab  tried: cabextract
  66. Jun 13 19:25:59 moe amavis[20510]: No decoder for       .tnef
  67. Jun 13 19:25:59 moe amavis[20510]: Internal decoder for .tnef
  68. Jun 13 19:25:59 moe amavis[20510]: Found decoder for    .exe  at /usr/bin/arj
  69. Jun 13 19:25:59 moe amavis[20510]: Creating db in /var/lib/amavis/db/; BerkeleyDB 0.27, libdb 4.3
  70. Jun 13 19:27:00 moe postfix/smtpd[20530]: connect from smtp24.orange.fr[193.252.22.25]
  71. Jun 13 19:27:01 moe postfix/smtpd[20530]: E67363A429F: client=smtp24.orange.fr[193.252.22.25]
  72. Jun 13 19:27:01 moe postfix/cleanup[20534]: E67363A429F: message-id=<467028F5.9060309@free.fr>
  73. Jun 13 19:27:01 moe postfix/smtpd[20530]: disconnect from smtp24.orange.fr[193.252.22.25]


 
EDIT : Log plus complet


Message édité par PII350 le 13-06-2007 à 19:41:24
Reply

Marsh Posté le 13-06-2007 à 19:35:30    

il aurait fallu plus de log (jusquau reload d'amavisd)


---------------
Messagerie dédiée, Relais Mail Antispam/Antivirus, Infogérance 24/7: http://www.eole-its.com
Reply

Marsh Posté le 13-06-2007 à 19:41:58    

edited  ;)
 
j'avais pa vu qu'on pouvai monter le niveu du log pour amavis...
Le problème me saute aux yeux :
 

Code :
  1. ANTI-VIRUS code      NOT loaded
  2. ANTI-SPAM code       NOT loaded
  3. ANTI-SPAM-SA code    NOT loaded


 
mais je ne sais pas quoi modifier pour changer ca ...


Message édité par PII350 le 13-06-2007 à 19:46:51
Reply

Marsh Posté le 13-06-2007 à 19:45:51    

spamassassin n'est pas chargé
 
t'es sur qu'il est installé ?
 
si oui comment ?
 


---------------
Messagerie dédiée, Relais Mail Antispam/Antivirus, Infogérance 24/7: http://www.eole-its.com
Reply

Marsh Posté le 13-06-2007 à 19:45:51   

Reply

Marsh Posté le 13-06-2007 à 19:49:28    

oui, spamassasin est installé et le demon spamd tourne :
 

Code :
  1. root@moe:~# apt-get install spamassassin
  2. Lecture des listes de paquets... Fait
  3. Construction de l'arbre des dépendances
  4. Reading state information... Fait
  5. spamassassin est déjà la plus récente version disponible.
  6. 0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
  7. root@moe:~# /etc/init.d/spamassassin restart
  8. Restarting SpamAssassin Mail Filter Daemon: spamd.

Reply

Marsh Posté le 13-06-2007 à 19:52:33    

le demon spamd est inutile avec amavisd
 
je ne connais pas l'installation en paquets de ces softs, il doit y a avoir un truc de plus parametrer.
 
je te conseillerais plutot l'installation a la main de SA, c'est bien plus fiable...
 
 
 


---------------
Messagerie dédiée, Relais Mail Antispam/Antivirus, Infogérance 24/7: http://www.eole-its.com
Reply

Marsh Posté le 13-06-2007 à 20:12:30    

J'ai désinstallé le paquet spamassassin et je suis en train de réaliser l'installation de spamassassin à la mains avec la méthode indiquée sur le site de ta signature (http://www.starbridge.org/spip/spip.php?article12&artsuite=6#sommaire_5) mais j'ai une erreur que je ne comprends pas :
 

Code :
  1. Fetching with LWP:
  2.   ftp://ftp.perl.org/pub/CPAN/modules/03modlist.data.gz
  3. Going to read /home/vince/.cpan/sources/modules/03modlist.data.gz
  4. Going to write /home/vince/.cpan/Metadata
  5. Fetching with LWP:
  6.   ftp://ftp.perl.org/pub/CPAN/autho [...] 855.tar.gz
  7. CPAN: Digest::MD5 loaded ok
  8. Fetching with LWP:
  9.   ftp://ftp.perl.org/pub/CPAN/autho [...] /CHECKSUMS
  10. Checksum for /home/vince/.cpan/sources/authors/id/A/AN/ANDK/Bundle-CPAN-1.855.tar.gz ok
  11. Scanning cache /home/vince/.cpan/build for sizes
  12. Use of uninitialized value in chdir at /usr/share/perl/5.8/CPAN.pm line 928.
  13. Use of chdir('') or chdir(undef) as chdir() is deprecated at /usr/share/perl/5.8/CPAN.pm line 928.
  14. Uncompressed /home/vince/.cpan/sources/authors/id/A/AN/ANDK/Bundle-CPAN-1.855.tar.gz successfully
  15. Using Tar:/bin/tar xvf /home/vince/.cpan/sources/authors/id/A/AN/ANDK/Bundle-CPAN-1.855.tar:
  16. Couldn't untar /home/vince/.cpan/sources/authors/id/A/AN/ANDK/Bundle-CPAN-1.855.tar


 
Saurais tu d'où ca vient (je ne connais pas du tout cpan) ?
 
Merci pour ton aide et pour ta patience  ;)

Reply

Marsh Posté le 13-06-2007 à 20:41:22    

je ne connais pas bien CPAN non plus
il doit te manquer une dependance, essaye de voir plus haut dans le tuto
de plus le tuto est fait pour debian, je ne l'ai pas testé avec ubuntu.
 
 
essaye de commencer par  
 

Code :
  1. perl -MCPAN -e shell                   
  2.         o conf prerequisites_policy ask
  3. install CPAN
  4. reload CPAN


 
pour voir deja ce que ca donne


---------------
Messagerie dédiée, Relais Mail Antispam/Antivirus, Infogérance 24/7: http://www.eole-its.com
Reply

Marsh Posté le 13-06-2007 à 20:51:07    

Voila ce que me donne ces commandes :

Code :
  1. root@moe:~# perl -MCPAN -e shell
  2. Terminal does not support AddHistory.
  3. cpan shell -- CPAN exploration and modules installation (v1.7602)
  4. ReadLine support available (try 'install Bundle::CPAN')
  5. cpan> o conf prerequisites_policy ask
  6.     prerequisites_policy ask
  7. cpan> install CPAN
  8. CPAN: Storable loaded ok
  9. Going to read /home/vince/.cpan/Metadata
  10.   Database was generated on Wed, 13 Jun 2007 12:09:12 GMT
  11. Running install for module CPAN
  12. Running make for A/AN/ANDK/CPAN-1.9102.tar.gz
  13. CPAN: Digest::MD5 loaded ok
  14. CPAN: Compress::Zlib loaded ok
  15. Checksum for /home/vince/.cpan/sources/authors/id/A/AN/ANDK/CPAN-1.9102.tar.gz ok
  16. Scanning cache /home/vince/.cpan/build for sizes
  17. Use of uninitialized value in chdir at /usr/share/perl/5.8/CPAN.pm line 928.
  18. Use of chdir('') or chdir(undef) as chdir() is deprecated at /usr/share/perl/5.8/CPAN.pm line 928.
  19. Uncompressed /home/vince/.cpan/sources/authors/id/A/AN/ANDK/CPAN-1.9102.tar.gz successfully
  20. Using Tar:/bin/tar xvf /home/vince/.cpan/sources/authors/id/A/AN/ANDK/CPAN-1.9102.tar:
  21. Couldn't untar /home/vince/.cpan/sources/authors/id/A/AN/ANDK/CPAN-1.9102.tar
  22. cpan> reload CPAN
  23. ................................................................................................................................................................................................................................
  24. 224 subroutines redefined


 
rien de bon, je pense ...  :sweat:

Reply

Marsh Posté le 13-06-2007 à 21:25:36    

au demarrage du shell de cpan tu as parametré par defaut ?
sinon tu peux essayer d'effacer le .cpan dans ton home puis relancer
 


---------------
Messagerie dédiée, Relais Mail Antispam/Antivirus, Infogérance 24/7: http://www.eole-its.com
Reply

Marsh Posté le 13-06-2007 à 21:32:05    

J'ai essayé d'effacer le .cpan et de relancer mais ça n'a rien changé.
 
Je me suis résolu a installer tous les modules a la main via cpan.org  :sweat:  
(heureusement qu'il n'y en a pas trop...)

Reply

Marsh Posté le 13-06-2007 à 21:57:02    

oui c'est le mieux  


---------------
Messagerie dédiée, Relais Mail Antispam/Antivirus, Infogérance 24/7: http://www.eole-its.com
Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed