Rechercher : dans
Par :

[Debian] spamassassin + razor

Dernière réponse le 8 sep 2009 à 21:06:27 bob031, le 15 mai 2008 à 21:08:03 
 Signaler ce message aux modérateurs

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

Meilleures réponses pour « [Debian] spamassassin + razor » dans :
[Debian][HowTo] Xorg7 - installer drivers nvidia Voir 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...
[Debian] Apt-get : NO_PUBKEY / GPG error VoirLors 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...
[Ubuntu/Debian] Installation automatique des drivers Nvidia/Ati VoirInstallation automatique des drivers Ati et Nvidia de votre carte graphique sous Ubuntu /Debian Introduction Installation de Envy Installation du driver Dernière étape Compléments Introduction Il y a plusieurs manières...
Scanner un réseau avec Nessus (sous Debian) VoirNessus 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...

1

bob031, le 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

bob031, le 9 jun 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

bob031, le 10 jun 2008 à 19:46:39
Répondre à bob031

4

bob031, le 16 jun 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

bob031, le 1 jui 2008 à 20:26:31
  • +1

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

bob031, le 1 jui 2008 à 21:07:02

Même manip pour la Debian : OK !!!

cool ! un pinguin sur la banquise !

Répondre à bob031

7

bob031, le 25 nov 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

bob031, le 26 nov 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

bob031, le 26 nov 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

10

bob031, le 1 fév 2009 à 22:27:35

Installation de dcc sur fedora 9 :

http://www.rhyolite.com/dcc/

ok !

à voir : razor et pyzor ...


<EDIT :

# spamassassin -x -D --lint
EDIT> un pinguin sur la banquise !

Répondre à bob031

11

 bob031, le 8 sep 2009 à 21:06:27

Je reviens sur la debian avec DCC qui plante toujours :

> root@debian[192.168.1.3]:/var/log# cat mail.err
Sep  5 11:24:17 debian dccproc[2500]: connect(194.228.41.73,6277): Network is unreachable
Sep  5 11:24:20 debian dccproc[2500]: no DCC answer from 194.228.41.73,6277 after 0 ms
Sep  5 15:59:25 debian dccproc[2946]: no DCC answer from 194.228.41.73,6277 after 775 ms
> root@debian[192.168.1.3]:/var/log


toujours pas trouvé comment régler le souci ....sinon relire la doc.
un penguin sur la banquise !

Répondre à bob031