Flux rss
Collection CommentCaMarche.net
Rechercher : dans
Par : Pertinence Date Nom d'utilisateur
Statut : Résolu

[Debian] spamassassin + razor

bob031, le jeudi 15 mai 2008 à 21:08:03
Bonjour,

j'ai ce message d'erreur : Unable to connect to c304.cloudmark.com:2703; Reason: Invalid argument.

debian:/var/log# cat razor-agent.log
mai 11 20:39:31.333232 check[27856]: [ 2] [bootup] Logging initiated LogDebugLevel=3 to file:/var/log/razor-agent.log
mai 11 20:39:34.317006 check[27856]: [ 3] mail 1 is not known spam.
May 13 16:02:51.299622 check[2330]: [ 2] [bootup] Logging initiated LogDebugLevel=3 to file:/var/log/razor-agent.log
May 13 16:02:57.725008 check[2330]: [ 3] Unable to connect to c304.cloudmark.com:2703; Reason: Invalid argument.
May 13 17:30:31.854881 check[2333]: [ 2] [bootup] Logging initiated LogDebugLevel=3 to file:/var/log/razor-agent.log
May 15 20:07:33.050681 check[2328]: [ 2] [bootup] Logging initiated LogDebugLevel=3 to file:/var/log/razor-agent.log
May 15 20:07:39.501804 check[2328]: [ 3] Unable to connect to discovery.razor.cloudmark.com:2703; Reason: Invalid argument.
May 15 20:07:39.505120 check[2328]: [ 3] Unable to connect to discovery.razor.cloudmark.com:2703; Reason: Invalid argument.
May 15 20:07:39.508640 check[2328]: [ 3] Unable to connect to c305.cloudmark.com:2703; Reason: Invalid argument.
May 15 20:07:39.511467 check[2328]: [ 3] Unable to connect to discovery.razor.cloudmark.com:2703; Reason: Invalid argument.
debian:/var/log#


j'ai cherché un petit peu pour trouver ceci : razor-agents -discover usually cleans it up ici :
http://www.nabble.com/%27invalid-argument%27-from-razor-repo­rt-td12808954.html

j'applique ....donc :
.debian:/var/log# razor-admin -discover
debian:/var/log# cat razor-agent.log
....
May 15 20:07:39.505120 check[2328]: [ 3] Unable to connect to discovery.razor.cloudmark.com:2703; Reason: Invalid argument.
May 15 20:07:39.508640 check[2328]: [ 3] Unable to connect to c305.cloudmark.com:2703; Reason: Invalid argument.
May 15 20:07:39.511467 check[2328]: [ 3] Unable to connect to discovery.razor.cloudmark.com:2703; Reason: Invalid argument.
mai 15 20:58:30.925442 admin[27614]: [ 2] [bootup] Logging initiated LogDebugLevel=3 to file:/var/log/razor-agent.log
mai 15 20:58:30.926891 admin[27614]: [ 2]  Razor-Agents v2.84 starting razor-admin -discover
debian:/var/log#


si vous avez des commentaires, n'hésitez pas (je ne maîtrise pas vraiment).
merci.
Un Linux, c'est bien ...........plein de Linux, c'est mieux ­!
Debian lenny  // Fedora 2.6.24.7-92.fc8 // Gentoo 2.6.24-gen­too-r7 // Mandriva 2007.1 Spring
Configuration: Linux Debian
Firefox 3.0b4
Répondre à bob031  Signaler ce message aux modérateurs Aller au dernier message

1


  • Ce message vous semble utile, votez !
  • Signaler ce message aux modérateurs
bob031, le samedi 17 mai 2008 à 10:35:43
ok ! problème réglé !

documentation :
Commandes et daemon SpamAssassin
http://www.espace-groupware.com/index2.php?option=com_content&do_pdf=1&id=82

Edit :
How can I set up sa-learn (auto-learn) for SpamAssassin
http://www.bynari.net/...

Configuration de Postfix, le serveur de mail phare, avec ses services POP3, SMTP et IMAP, authentifications sécurisées et spamassassin.
http://css.alsacreations.com/Administration-serveur-dedie/Serveur-mail-Postfix Un Linux, c'est bien ...........plein de Linux, c'est mieux !
Debian lenny  // Fedora 2.6.24.7-92.fc8 // Gentoo 2.6.24-gentoo-r7 // Mandriva 2.6.25.4-2007.1 Spring
Répondre à bob031

2


  • Ce message vous semble utile, votez !
  • Signaler ce message aux modérateurs
bob031, le lundi 9 juin 2008 à 21:42:32
spamassassin et mandriva
docs :
http://www.linux-nantes.org/article.php3?id_article=148
http://artisan.karma-lab.net/node/79 un pinguin sur la banquise !
Répondre à bob031

3


  • Ce message vous semble utile, votez !
  • Signaler ce message aux modérateurs
bob031, le mardi 10 juin 2008 à 19:46:39
Répondre à bob031

4


  • Ce message vous semble utile, votez !
  • Signaler ce message aux modérateurs
bob031, le lundi 16 juin 2008 à 21:03:29
mandriva

initialisation de Bayes :
fichier /etc/mail/spamassassin/local.cf
# Activation du systeme Bayes
use_bayes                       1
bayes_auto_learn                1
bayes_learn_to_journal          1
bayes_journal_max_size          0
bayes_path                /usr/lib/perl5/vendor_perl/5.8.8/Mail/SpamAssassin/Bayes


[redfox@localhost ~]$ sa-learn --spam --mbox .kde/share/apps/kmail/mail/Spam
Learned tokens from 1 message(s) (1 message(s) examined)
[redfox@localhost ~]$ un pinguin sur la banquise !
Répondre à bob031

5


  • Ce message vous semble utile, votez !
  • Signaler ce message aux modérateurs
bob031, le mardi 1 juillet 2008 à 20:26:31
je cotninue mon exploration avec DCC :

j'ai enfin trouvé le tuto miracle :
http://kb.atmail.com/?p=52

j'ai suivi scrupuleusement (enfin presque !) et ça marche !

tests sur Mandriva :
les points importants :
A) les ports :
Par exemple, en utilisant iptables sous Linux, rajouter la règle suivante à /etc/sysconfig/iptables
# DCC for Spamassassin UDP reply packets
-A RH-Firewall-1-INPUT -p udp -m udp –dport 1024:65535 –sport 6277 -j ACCEPT


bien sûr j'ai adapté !
relancer iptables.

B) essai du réseau DCC :
pour savoir si le réseau DCC répond
# cdcc info


C) configurer spamassassin :
Editer le fichier suivant :
[root@localhost log]# vi /etc/mail/spamassassin/local.cf

Ajouter:
loadplugin Mail::SpamAssassin::Plugin::DCC
dcc_path /usr/local/bin/dccproc


rechercher le path de dcc dans votre machine et modifier en fonction.

D) redémarrer votre serveur mail.

E) Tester le fonctionnement de DCC via Spamassassin :
[root@localhost log]# wget http://kb.atmail.com/attach/spam-mail.txt
[root@localhost log]# /usr/bin/spamassassin -t -D < spam-mail.txt

vous devriez voir ceci :
[5075] dbg: dcc: network tests on, registering DCC
[5075] dbg: plugin: loading Mail::SpamAssassin::Plugin::DCC from @INC



voilà !


<edit
d'ailleurs pyzor et razor semblent fonctionner aussi :
[5075] dbg: plugin: loading Mail::SpamAssassin::Plugin::Pyzor from @INC
[5075] dbg: pyzor: network tests on, attempting Pyzor
[5075] dbg: plugin: loading Mail::SpamAssassin::Plugin::Razor2 from @INC
[5075] dbg: razor2: razor2 is available, version 2.82

fin edit >
un pinguin sur la banquise !
Répondre à bob031

6


  • Ce message vous semble utile, votez !
  • Signaler ce message aux modérateurs
bob031, le mardi 1 juillet 2008 à 21:07:02
même manip pour la Debian : OK !!!

cool ! un pinguin sur la banquise !
Répondre à bob031

7


  • Ce message vous semble utile, votez !
  • Signaler ce message aux modérateurs
bob031, le mardi 25 novembre 2008 à 21:34:26
salut,

un petit retour sur sa-learn (spamassassin) notamment :
How can I set up sa-learn (auto-learn) for SpamAssassin
cf post<1>

avec kmail (mandriva) cf commande post<4>
tuto : http://jmelst.net/modules.php?name=News&file=article&sid=77 un pinguin sur la banquise !
Répondre à bob031

8


  • Ce message vous semble utile, votez !
  • Signaler ce message aux modérateurs
bob031, le mercredi 26 novembre 2008 à 21:03:20
je continue sur spamassassin mais sur Fedora 9 :

# yum install spamassassin

# yum install evolution-spamassassin

http://www.howtoforge.com/the-perfect-desktop-fedora9-gnome-­p5

utilisation du Générateur de Configuration de Spamassassin ici :
http://www.yrex.com/spam/spamconfig.php
puis :
téléchargement du fichier nommé local.cf
copie du fichier local.cf dans /etc/mail/spamassassin/
note 1 : existence d'un fichier local.cf renommé en local.cf.ori
note 2 : la partie suivante n'a pas été réalisé (fichier inconnu) :

si le fichier user_prefs n'existe pas dans le home de l'utilisateur (cas pour la fedora), copiez-le à partir du home de root.
[root@localhost redfox]# cp ~root/.spamassassin/user_prefs ~redfox/.spamassassin/user_prefs
source : http://www.linux-pas-a-pas.org/forum-linux/s28-contre-spams-­spamassassin.html

voilà ou j'en suis pour l'instant, je suivrai les infos suivantes pour la Fedora 9 :
http://mail.savs.hcc.edu.tw/~chuavv/articles/spamassassin-en­.html

à suivre .. un pinguin sur la banquise !
Répondre à bob031

9


  • Ce message vous semble utile, votez !
  • Signaler ce message aux modérateurs
 bob031, le mercredi 26 novembre 2008 à 21:28:17
enfin :

Nov 26 21:13:20 fedora9 spamd[4728]: spamd: creating default_prefs: /home/redfox/.spamassassin/user_prefs
Nov 26 21:13:20 fedora9 spamd[4728]: config: created user preferences file: /home/redfox/.spamassassin/user_prefs
Nov 26 21:13:20 fedora9 spamd[4728]: spamd: processing message <v0421010eb70653b14e06@[208.192.102.193]> for redfox:500
Nov 26 21:13:26 fedora9 spamd[4728]: spamd: clean message (0.0/5.0) for redfox:500 in 7.3 seconds, 6494 bytes.
Nov 26 21:13:27 fedora9 spamd[4728]: spamd: result: . 0 - scantime=7.3,size=6494,user=redfox,uid=500,required_score=5.0,rhost=localhost,raddr=127.0.0.1,rport=34003,mid=<v0421010eb70653b14e06@[208.192.102.193]>,autolearn=ham
Nov 26 21:13:27 fedora9 spamd[4726]: prefork: child states: II
[root@fedora9 log]#

et :
[redfox@fedora9 spamassassin-3.2.5]$ cd
[redfox@fedora9 ~]$ ls -l .spamassassin/user_prefs
-rw-r--r-- 1 redfox redfox 1487 nov 26 21:13 .spamassassin/user_prefs
[redfox@fedora9 ~]$ cat .spamassassin/user_prefs
# SpamAssassin user preferences file. See 'perldoc Mail::SpamAssassin::Conf'
# for details of what can be tweaked.
###########################################################################

# How many points before a mail is considered spam.
# required_score 5

# Whitelist and blacklist addresses are now file-glob-style patterns, so
# "friend@somewhere.com", "*@isp.com", or "*.domain.net" will all work.
# whitelist_from someone@somewhere.com

# Add your own customised scores for some tests below. The default scores are
# read from the installed spamassassin rules files, but you can override them
# here. To see the list of tests and their default scores, go to
# http://spamassassin.apache.org/tests.html .
#
# score SYMBOLIC_TEST_NAME n.nn

# Speakers of Asian languages, like Chinese, Japanese and Korean, will almost
# definitely want to uncomment the following lines. They will switch off some
# rules that detect 8-bit characters, which commonly trigger on mails using CJK
# character sets, or that assume a western-style charset is in use.
#
# score HTML_COMMENT_8BITS 0
# score UPPERCASE_25_50 0
# score UPPERCASE_50_75 0
# score UPPERCASE_75_100 0
# score OBSCURED_EMAIL 0

# Speakers of any language that uses non-English, accented characters may wish
# to uncomment the following lines. They turn off rules that fire on
# misformatted messages generated by common mail apps in contravention of the
# email RFCs.

# score SUBJ_ILLEGAL_CHARS 0

[redfox@fedora9 ~]$

fichier d'origine !

je stoppe là ! un pinguin sur la banquise !
Répondre à bob031
[Debian][HowTo] Xorg7 - installer drivers nvidia Xorg7 - installer drivers nvidia Dans ce tutoriel nous allons aborder comment installer les drivers nvidia sous debian. Tout ce qui dit est valable pour d'autres distributions basées sur debian comme par exemple ubuntu. Toutefois pour cette... www.commentcamarche.net/faq/sujet-3456-debian-howto-xorg7-installer-drivers-nvidia
Scanner un réseau avec Nessus (sous Debian) Nessus est un scanner réseau qui essaie de détecter des failles de sécurité potentielles dans les machines d'un réseau (en se basant sur une liste de failles connues). Cet article va vous expliquer comment installer Nessus (sur une Debian) et... www.commentcamarche.net/faq/sujet-6956-scanner-un-reseau-avec-nessus-sous-debian
[Debian] Apt-get : NO_PUBKEY / GPG error Lors de la mise à jour de la distribution Debian, il est possible que l'outil apt-get affiche un message d'erreur de genre : W: GPG error: ftp://ftp.fr.debian.org testing Release: The following signatures couldn't be verified because the public... www.commentcamarche.net/faq/sujet-4445-debian-apt-get-no-pubkey-gpg-error
[Debian] Debian GNU/Linux 4.0 AMD64 - Installation SkypeDebian GNU/Linux 4.0 AMD64 - Installation Skype 1. Téléchargement 2. Installation 3. Création de l'environnement 4. Observations 1. Téléchargement Cette étape peut être faite en tant que simple utilisateur.mkdir /home/lami20j/src cd... www.commentcamarche.net/faq/sujet-6146-debian-debian-gnu-linux-4-0-amd64-installation-skype
Installation de FreeMind sous Linux DebianFreeMind est un excellent logiciel de mind-mapping. Voici comment l'installer sous Debian (et dérivées (Ubuntu...)). Lancez Synaptic (Menu Système > Administration > Gestionnaire de paquets Synaptic sous Ubuntu) Et allez dans le menu... www.commentcamarche.net/faq/sujet-8173-installation-de-freemind-sous-linux-debian
Sécuriser sa DebianSécuriser sa distribution Debian Voici un document, très intéressant pour mettre en place une sécurité efficace sur un système Debian. Assez conséquent (+ de 150 pages), le document aborde bon nombre de sujets, du chargement du bootloader jusqu'à... www.commentcamarche.net/faq/sujet-8606-securiser-sa-debian
J'aimerais Razorback 3.2 sur Emule (Résolu)Bonjour, Je viens de télécharger Emule et j'aimerais le serveur Razorback 3.2 (on m'a dit que c t le meilleur) mais je n'arrive pas à le trouver ni à le télécharger!! Quelqu'un peut il m'aider? Merci d'avance!!! Sandra www.commentcamarche.net/forum/affich-7492580-j-aimerais-razorback-3-2-sur-emule
Configuration carte reseau debian etch (Résolu)Bonjour, Je me lance dans la création d'un serveur linux pour remplacer celui de mon boulot un peu vieillot. Mais je suis déjà bloquée à...... la carte réseau :-S. Donc première chose, description : debian etch carte reseau intégrée sis 900... www.commentcamarche.net/forum/affich-3864462-configuration-carte-reseau-debian-etch
[Debian] ssh et commande scp (Résolu)Bonjour, voilà tout est dit ! 192.168.1.2 = mandriva 192.168.1.3 = debian les 2 machines sont connectées à un routeur ! la commande ssh fonctionne pour les 2 machines ....mais si je veux copier un fichier d'une machine à l'autre :... www.commentcamarche.net/forum/affich-4583763-debian-ssh-et-commande-scp