Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[spamassassin] erreur lancement spamd (resolu)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
mcsky2
Guru
Guru


Joined: 25 Aug 2005
Posts: 312

PostPosted: Tue May 21, 2013 12:39 pm    Post subject: [spamassassin] erreur lancement spamd (resolu) Reply with quote

Bonjour,
Voulant mettre en place sous sendmail, spamassassin et spamassassin-milter, je n'arrive pas à les lancer :

child process [6871] exited or timed out without signaling production of a PID file: exit 255 at /usr/sbin/spamd line 2642.
* start-stop-daemon: failed to start `/usr/sbin/spamd'
* Failed to start spamd [ !! ]
* ERROR: spamd failed to start

A la ligne 2642, j'ai :

$SIG{USR1} = \&serverstarted;
defined( my $pid = fork ) or die "spamd: cannot fork: $!\n";
if ($pid) {
my $child_stat;
# Bug 6191, Bug 6258: takes almost two minutes on a slow machine
# for a forked child process to report back, bump limit to 180 seconds
for (my $retry=180, my $waited=0;
$retry > 0 && !$serverstarted && $waited != $pid;
$retry--)
{
warn("waitpid failed: $waited $!") if $waited;
sleep 1;
$waited = waitpid($pid, WNOHANG);
$child_stat = $? if $waited > 0;
}
die sprintf("child process [%s] exited or timed out ".
"without signaling production of a PID file: %s",
$pid, exit_status_str($child_stat,0)) unless $serverstarted;
exit;
}


A la fin de l'installation de spamassassin, il est dit d'utiliser sa-update mais je ne sais pas quoi y mettre en option et je ne suis pas certain que cela résoud le lancement de spamassassin.
Dans les documents Gentoo http://www.gentoo.org/doc/fr/mailfilter-guide.xml, il est question d'utiliser aussi amavisd-new.

Si vous avez de l'experience dans le domaine MTA, je suis preneur.
Merci d'avance pour vos lumières.


Last edited by mcsky2 on Wed May 22, 2013 10:37 pm; edited 1 time in total
Back to top
View user's profile Send private message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8708
Location: ~Brussels - Belgique

PostPosted: Tue May 21, 2013 12:42 pm    Post subject: Reply with quote

La doc FR est, hem..., un peu obsolète. As-tu regardé la version angalaise ?
http://www.gentoo.org/doc/en/mailfilter-guide.xml
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
guilc
Bodhisattva
Bodhisattva


Joined: 15 Nov 2003
Posts: 3326
Location: Paris - France

PostPosted: Tue May 21, 2013 7:32 pm    Post subject: Reply with quote

De mémoire, spamassassin est livré depuis quelques version sans aucune base. Donc s'il n'arrive pas à démarrer, c'est très probablement la cause.

C'est tout simple sa-update. Tu lances la commande sans rien ;)
Tu peux aussi mettre cette maj en cron pour récupérer les update régulières, et les compiler pourquoi pas, ça améliore les perfs de spamd. Perso, j'ai ça en crontab :
Code:
# MAJ base et regles compilées spamassassin
0 5 * * * /usr/bin/sa-update ; [ $? == 0 ] && /usr/bin/sa-compile --quiet && /etc/init.d/spamd reload --quiet

_________________
Merci de respecter les règles du forum.

Mon site perso : https://www.xwing.info
Mon PORTDIR_OVERLAY : https://gentoo.xwing.info ou layman -a xwing
Back to top
View user's profile Send private message
mcsky2
Guru
Guru


Joined: 25 Aug 2005
Posts: 312

PostPosted: Wed May 22, 2013 10:37 pm    Post subject: Reply with quote

Merci guilc, ca fonctionne.
Je ne sais pas trop pourquoi mais mon sa-update ne fonctionnait pas auparavant.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum