[Amavis] antidrug config

antidrug config [Amavis] - Logiciels - Linux et OS Alternatifs

Marsh Posté le 10-05-2007 à 19:13:04    

Bonsoir à tous,
 
Sur un serveur mail (postfix+mysql+amavis+spamassassin), je reçois à 3h d'intervalle le même message du processus "cron" concernant amavis :
 

Code :
  1. String found where operator expected at (eval 909) line 1, near ""you" "are""
  2. (Missing operator before  "are"?)
  3. String found where operator expected at (eval 909) line 1, near ""are" "running""
  4. (Missing operator before  "running"?)
  5. String found where operator expected at (eval 909) line 1, near ""running" "SA""
  6. (Missing operator before  "SA"?)
  7. Number found where operator expected at (eval 909) line 1, near ""SA" 3.0.0"
  8. (Missing operator before  3.0.0?)
  9. String found where operator expected at (eval 909) line 1, near "3.0.0 "or""
  10. (Missing operator before  "or"?)
  11. String found where operator expected at (eval 909) line 1, near ""or" "higher""
  12. (Missing operator before  "higher"?)
  13. String found where operator expected at (eval 909) line 1, near ""higher" "you""
  14. (Missing operator before  "you"?)
  15. String found where operator expected at (eval 909) line 1, near ""you" "already""
  16. (Missing operator before  "already"?)
  17. String found where operator expected at (eval 909) line 1, near ""already" "have""
  18. (Missing operator before  "have"?)
  19. String found where operator expected at (eval 909) line 1, near ""have" "antidrug""
  20. (Missing operator before  "antidrug"?)
  21. String found where operator expected at (eval 909) line 1, near ""antidrug" "and""
  22. (Missing operator before  "and"?)
  23. String found where operator expected at (eval 909) line 1, near ""and" "this""
  24. (Missing operator before  "this"?)
  25. String found where operator expected at (eval 909) line 1, near ""this" "file""
  26. (Missing operator before  "file"?)
  27. config: unclosed 'if' in /etc/spamassassin/antidrug.cf: if you are running SA 3.0.0 or higher, you already have antidrug and this file


 
Je ne pense pas que ce soit très gênant, mais au cas où, je sollicite l'avis de spécialistes. Après examen du fichier de config "antidrug.cf", je ne vois rien concernant un quelconque 'if' unclosed...
 
Si vous avez plus d'infos là dessus, Merci d'avance pour votre aide ! :jap:

Reply

Marsh Posté le 10-05-2007 à 19:13:04   

Reply

Marsh Posté le 10-05-2007 à 23:08:01    

faudrait connaitre ta conf complete (postconf -n, master.cf, local.cf, amavisd.conf....) et l'origine du message  
 

Reply

Marsh Posté le 11-05-2007 à 18:19:37    

le postconf -n :

Code :
  1. append_dot_mydomain = yes
  2. biff = no
  3. command_directory = /usr/sbin
  4. config_directory = /etc/postfix
  5. content_filter = amavis:[127.0.0.1]:10024
  6. daemon_directory = /usr/libexec/postfix
  7. disable_vrfy_command = yes
  8. html_directory = no
  9. inet_interfaces = all
  10. mail_owner = postfix
  11. mailq_path = /usr/bin/mailq
  12. manpage_directory = /usr/local/man
  13. mydestination = localhost, localhost.localdomain
  14. mydomain = mondomaine.fr
  15. myhostname = mamachine.mondomaine.fr
  16. mynetworks = 127.0.0.0/8 192.168.x.0/24
  17. newaliases_path = /usr/bin/newaliases
  18. proxy_read_maps = proxy:unix:passwd.byname $virtual_alias_maps $virtual_mailbox_domains $virtual_mailbox_maps $virtual_mailbox_limit_maps
  19. queue_directory = /var/spool/postfix
  20. readme_directory = no
  21. receive_override_options = no_address_mappings
  22. relayhost = [smtp.fxxe.fr]
  23. sample_directory = /etc/postfix
  24. sendmail_path = /usr/sbin/sendmail
  25. setgid_group = postdrop
  26. smtpd_banner = $myhostname ESMTP (Debian/GNU)
  27. smtpd_client_restrictions = reject_unknown_client,
  28.         permit_mynetworks
  29. smtpd_helo_required = yes
  30. smtpd_recipient_restrictions = permit_mynetworks,
  31.         reject_unauth_destination,
  32.         reject_unknown_recipient_domain,
  33.         reject_non_fqdn_recipient
  34. smtpd_sender_restrictions = permit_mynetworks,
  35.         reject_unknown_sender_domain,
  36.         warn_if_reject reject_unverified_sender
  37. unknown_local_recipient_reject_code = 450
  38. virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_aliases.cf,proxy:mysql:/etc/postfix/mysql-virtual_aliases_mailbox.cf
  39. virtual_gid_maps = static:5000
  40. virtual_mailbox_base = /var/spool/vmail
  41. virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
  42. virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
  43. virtual_uid_maps = static:5000
 

le master.cf de Postfix :

Code :
  1. # ==========================================================================
  2. # service type  private unpriv  chroot  wakeup  maxproc command + args
  3. #               (yes)   (yes)   (yes)   (never) (100)
  4. # ==========================================================================
  5. smtp      inet  n       -       -       -       -       smtpd
  6. #submission inet n      -       -       -       -       smtpd
  7. # -o smtpd_etrn_restrictions=reject
  8. #628      inet  n       -       -       -       -       qmqpd
  9. pickup    fifo  n       -       -       60      1       pickup
  10. cleanup   unix  n       -       -       -       0       cleanup
  11. qmgr      fifo  n       -       -       300     1       qmgr
  12. #qmgr     fifo  n       -       -       300     1       oqmgr
  13. rewrite   unix  -       -       -       -       -       trivial-rewrite
  14. bounce    unix  -       -       -       -       0       bounce
  15. defer     unix  -       -       -       -       0       bounce
  16. trace     unix  -       -       -       -       0       bounce
  17. verify    unix  -       -       -       -       1       verify
  18. flush     unix  n       -       -       1000?   0       flush
  19. proxymap  unix  -       -       n       -       -       proxymap
  20. smtp      unix  -       -       -       -       -       smtp
  21. relay     unix  -       -       -       -       -       smtp
  22. #       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
  23. showq     unix  n       -       -       -       -       showq
  24. error     unix  -       -       -       -       -       error
  25. local     unix  -       n       n       -       -       local
  26. virtual   unix  -       n       n       -       -       virtual
  27. lmtp      unix  -       -       n       -       -       lmtp
  28. anvil     unix  -       -       n       -       1       anvil
  29. #
  30. # Interfaces to non-Postfix software. Be sure to examine the manual
  31. # pages of the non-Postfix software to find out what options it wants.
  32. #
  33. # maildrop. See the Postfix MAILDROP_README file for details.
  34. #
  35. maildrop  unix  -       n       n       -       -       pipe
  36.   flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
  37. uucp      unix  -       n       n       -       -       pipe
  38.   flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
  39. ifmail    unix  -       n       n       -       -       pipe
  40.   flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
  41. bsmtp     unix  -       n       n       -       -       pipe
  42.   flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -d -t$nexthop -f$sender $recipient
  43. scalemail-backend unix - n n - 2 pipe
  44.   flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
  45. # only used by postfix-tls
  46. #tlsmgr   fifo - - n 300 1 tlsmgr
  47. #smtps   inet n - n - - smtpd -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
  48. #587   inet n - n - - smtpd -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
  49. scache   unix - - n - 1 scache
  50. discard   unix - - n - - discard
  51. tlsmgr    unix  -       -       n       1000?   1       tlsmgr
  52. amavis    unix  -       -       -       -       2       smtp
  53.            -o smtp_data_done_timeout=1200
  54.    -o smtp_send_xforward_command=yes
  55. 127.0.0.1:10025 inet n - - - - smtpd
  56.            -o content_filter=
  57.    -o local_recipient_maps=
  58.    -o relay_recipient_maps=
  59.    -o smtpd_restriction_classes=
  60.    -o smtpd_client_restrictions=
  61.    -o smtpd_helo_restrictions=
  62.    -o smtpd_sender_restrictions=
  63.    -o smtpd_recipient_restrictions=permit_mynetworks,reject
  64.    -o mynetworks=127.0.0.0/8
  65.    -o strict_rfc821_envelopes=yes
  66.    -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
  67.    -o smtpd_bind_address=127.0.0.1
 

le local.cf de SA :

Code :
  1. # This is the right place to customize your installation of SpamAssassin.
  2. #
  3. # See 'perldoc Mail::SpamAssassin::Conf' for details of what can be
  4. # tweaked.
  5. #
  6. # Only a small subset of options are listed below
  7. #
  8. ###########################################################################
  9. #   Add *****SPAM***** to the Subject header of spam e-mails
  10. #
  11. # rewrite_header Subject *****SPAM*****
  12. #   Save spam messages as a message/rfc822 MIME attachment instead of
  13. #   modifying the original message (0: off, 2: use text/plain instead)
  14. #
  15. # report_safe 1
  16. #   Set which networks or hosts are considered 'trusted' by your mail
  17. #   server (i.e. not spammers)
  18. #
  19. # trusted_networks 212.17.35.
  20. #   Set file-locking method (flock is not safe over NFS, but is faster)
  21. #
  22. # lock_method flock
  23. #   Set the threshold at which a message is considered spam (default: 5.0)
  24. #
  25. # required_score 5.0
  26. #   Use Bayesian classifier (default: 1)
  27. #
  28. # use_bayes 1
  29. #   Bayesian classifier auto-learning (default: 1)
  30. #
  31. # bayes_auto_learn 1
  32. #   Set headers which may provide inappropriate cues to the Bayesian
  33. #   classifier
  34. #
  35. # bayes_ignore_header X-Bogosity
  36. # bayes_ignore_header X-Spam-Flag
  37. # bayes_ignore_header X-Spam-Status
 

Edit: J'oubliais l'origine du message...

 

En fait, il s'agit d'un mail envoyé automatiquement par le processus CRON :

 
Citation :

De : Cron Daemon <root@mamachine.mondomaine.fr>
A : <amavis@mamachine.mondomaine.fr>
Sujet : Cron <amavis@mamachine> test -e /usr/sbin/amavisd-new-cronjob && /usr/sbin/amavisd-new-cronjob sa-sync


Message édité par Doudos le 11-05-2007 à 18:22:27
Reply

Marsh Posté le 12-05-2007 à 01:45:57    

a priori la tache cron sert a faire un sa-sync (c'est un paquet debian non ?)
donc tu as surement un pb avec ta conf de spamassassin
lance un  
su -c "spamassassin -D --lint" amavis
 
(si amavis est ton user qui fait tourner amavisd bien sur)
 
et verifie la sortie
tu devrais retrouver l'erreur et plus de details
 
tu as installé SA a partir des sources ou bien en package ? quelle version ?


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

Marsh Posté le 12-05-2007 à 10:35:12    

Spamassassin doit utiliser un ancien fichier de configuration je pense...
 

Code :
  1. [5680] warn: config: failed to parse line, skipping: README:
  2. [5680] warn: config: failed to parse line, skipping: WARNING: YOU HAVE DOWNLOADED THIS RULESET from COMCAST. I am TERMINATING THIS ACCOUNT.
  3. [5680] warn: config: failed to parse line, skipping: Someone else will eventually have control of this webspace, possibly a malicious spammer.
  4. [5680] warn: config: failed to parse line, skipping: STOP using RDJ on this file *NOW*
  5. [5680] warn: config: failed to parse line, skipping: Also, make note of the fact that this file is for users of SA 2.64 and below.
  6. [5680] warn: String found where operator expected at (eval 938) line 1, near ""you" "are""
  7. [5680] warn:  (Missing operator before "are"?)
  8. [5680] warn: String found where operator expected at (eval 938) line 1, near ""are" "running""
  9. [5680] warn:  (Missing operator before "running"?)
  10. [5680] warn: String found where operator expected at (eval 938) line 1, near ""running" "SA""
  11. [5680] warn:  (Missing operator before "SA"?)
  12. [5680] warn: Number found where operator expected at (eval 938) line 1, near ""SA" 3.0.0"
  13. [5680] warn:  (Missing operator before 3.0.0?)
  14. [5680] warn: String found where operator expected at (eval 938) line 1, near "3.0.0 "or""
  15. [5680] warn:  (Missing operator before "or"?)
  16. [5680] warn: String found where operator expected at (eval 938) line 1, near ""or" "higher""
  17. [5680] warn:  (Missing operator before "higher"?)
  18. [5680] warn: String found where operator expected at (eval 938) line 1, near ""higher" "you""
  19. [5680] warn:  (Missing operator before "you"?)
  20. [5680] warn: String found where operator expected at (eval 938) line 1, near ""you" "already""
  21. [5680] warn:  (Missing operator before "already"?)
  22. [5680] warn: String found where operator expected at (eval 938) line 1, near ""already" "have""
  23. [5680] warn:  (Missing operator before "have"?)
  24. [5680] warn: String found where operator expected at (eval 938) line 1, near ""have" "antidrug""
  25. [5680] warn:  (Missing operator before "antidrug"?)
  26. [5680] warn: String found where operator expected at (eval 938) line 1, near ""antidrug" "and""
  27. [5680] warn:  (Missing operator before "and"?)
  28. [5680] warn: String found where operator expected at (eval 938) line 1, near ""and" "this""
  29. [5680] warn:  (Missing operator before "this"?)
  30. [5680] warn: String found where operator expected at (eval 938) line 1, near ""this" "file""
  31. [5680] warn:  (Missing operator before "file"?)
  32. [5680] warn: config: unclosed 'if' in /etc/spamassassin/antidrug.cf: if you are running SA 3.0.0 or higher, you already have antidrug and this file


 
La version actuelle a été installée à partir d'un paquet deb :

Citation :

SpamAssassin version 3.1.7-deb
   running on Perl version 5.8.8

Reply

Marsh Posté le 12-05-2007 à 10:43:39    

comme dit dans le message :
/etc/spamassassin/antidrug.cf  est a enlever


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

Marsh Posté le 12-05-2007 à 11:42:13    

Apparemment, après avoir renommé antidrug.cf, je n'ai plus de "warn".
 
Je confirme tout ça dans 2 heures, voir si il n'y a plus de message de cron...
 
Merci tonio ! :jap:

Reply

Sujets relatifs:

Leave a Replay

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