+ Responder ao Tópico



  1. Oct 19 09:16:04 lobomau spamd[4582]: spamd: connection from localhost [127.0.0.1] at port 34228
    Oct 19 09:16:04 lobomau spamd[4582]: spamd: setuid to clamav succeeded
    Oct 19 09:16:04 lobomau spamd[4582]: spamd: creating default_prefs: /home/clamav/.spamassassin/user_prefs
    Oct 19 09:16:04 lobomau spamd[4582]: mkdir /home/clamav: Permission denied at /usr/lib/perl5/site_perl/5.8.7/Mail/SpamAssassin.pm line 1467
    Oct 19 09:16:04 lobomau spamd[4582]: config: cannot write to /home/clamav/.spamassassin/user_prefs: No such file or directory
    Oct 19 09:16:04 lobomau spamd[4582]: spamd: failed to create readable default_prefs: /home/clamav/.spamassassin/user_prefs
    Oct 19 09:16:04 lobomau spamd[4582]: mkdir /home/clamav: Permission denied at /usr/lib/perl5/site_perl/5.8.7/Mail/SpamAssassin.pm line 1467
    Oct 19 09:16:05 lobomau spamd[4582]: spamd: checking message <20071019121600.B023B29DED1@lobomau.provedor.com.br> for clamav:1035
    Oct 19 09:16:05 lobomau spamd[4582]: bayes: locker: safe_lock: cannot create tmp lockfile /home/clamav/.spamassassin/bayes.lock.lobomau.provedor.com.br.4582 for /home/clamav/.spamassassin/bayes.lock: No such file or directory
    Oct 19 09:16:05 lobomau spamd[4582]: spamd: clean message (0.0/5.0) for clamav:1035 in 0.2 seconds, 219249 bytes.
    Oct 19 09:16:05 lobomau spamd[4582]: spamd: result: . 0 - scantime=0.2,size=219249,user=clamav,uid=1035,required_score=5.0,rhost=localhost,raddr=127.0.0.1,rport=34228,mid=<20071019121600.B023B29DED1@lobomau.provedor.com.br>,autolearn=failed
    Oct 19 09:16:05 lobomau spamd[4457]: prefork: child states: II



    To usando o slackware, alguem me ajuda?

  2. Adicionar usuário e grupo para o daemon do spamassassin:
    # groupadd spamd
    # useradd spamd -g spamd -s /bin/false -d /home/spamassassin -c 'Spam Assassin'
    # mkdir /home/spamassassin -p
    # chown spamd.spamd /home/spamassassin -R

    Instalar:
    # perl -MCPAN -e shell
    cpan> install ExtUtils::MakeMaker
    cpan> install File::Spec
    cpan> install Pod::Usage
    cpan> install HTML::Parser
    cpan> install Sys::Syslog
    cpan> install DB_File
    cpan> install Net:NS
    cpan> install Mail::Audit
    cpan> install Mail::Internet
    cpan> install Net::SMTP
    cpan> install Digest::SHA1
    cpan> install Net::Ident
    cpan> install Mail::SpamAssassin

    Se algum dos modulos acima não instalar ou retornar erro force a instalação:

    # cd ~/.cpan/build/nomedomodulo
    # make install

    Criar /etc/rc.d/rc.spamd um script de inicialização:

    #!/bin/sh
    spamd_start(){
    spamd -x -u spamd -H /home/spamassassin -d
    }
    spamd_stop(){
    killall spamd 2>/dev/null
    killall spamd 2>/dev/null
    }
    spamd_restart(){
    spamd_stop
    spamd_start
    }
    case '$1' in
    'start')
    echo -n 'iniciando SpamAssassin ... '
    spamd_start
    echo OK
    ;;
    'stop')
    echo -n 'finalizando SpamAssassin ... '
    spamd_stop
    echo OK
    ;;
    'restart')
    echo -n 'reiniciando SpamAssassin ... '
    spamd_restart
    echo OK
    ;;
    *)
    echo 'Use: $0 start/stop/restart'
    ;;
    esac

    Torne executável:
    # chmod +x /etc/rc.d/rc.spamd

    Inicie o spamassassin:
    /etc/rc.d/rc.spamd restart

    Adicione no rc.local
    # joe /etc/rc.d/rc.local
    /etc/rc.d/rc.spamd start

    Prontinho agora e so configurar o /etc/mail/spamassassin/local.cf abaixo segue um exemplo de uma configuração minha derrepente a galera tem mais sugestoes:


    # This is the right place to customize your installation of SpamAssassin.
    #
    # See 'perldoc Mail::SpamAssassin::Conf' for details of what can be
    # tweaked.
    #
    # Only a small subset of options are listed below
    #
    ###########################################################################

    # Add *****SPAM***** to the Subject header of spam e-mails
    #
    # rewrite_header Subject *****SPAM*****

    # Save spam messages as a message/rfc822 MIME attachment instead of
    # modifying the original message (0: off, 2: use text/plain instead)
    #
    report_safe 1


    # Set which networks or hosts are considered 'trusted' by your mail
    # server (i.e. not spammers)
    #
    # trusted_networks 212.17.35.


    # Set file-locking method (flock is not safe over NFS, but is faster)
    #
    # lock_method flock


    # Set the threshold at which a message is considered spam (default: 5.0)
    #
    required_score 4.0


    # Use Bayesian classifier (default: 1)
    #
    use_bayes 1

    # Bayesian classifier auto-learning (default: 1)
    #
    bayes_auto_learn 1

    # Enable or disable network checks
    skip_rbl_checks 0
    use_razor2 1
    use_dcc 1
    use_pyzor 1

    # Mail using languages used in these country codes will not be marked
    # as being possibly spam in a foreign language.
    ok_languages all

    # Mail using locales used in these country codes will not be marked
    # as being possibly spam in a foreign language.
    ok_locales all

    # Set headers which may provide inappropriate cues to the Bayesian
    # classifier
    #
    # bayes_ignore_header X-Bogosity
    # bayes_ignore_header X-Spam-Flag
    # bayes_ignore_header X-Spam-Status

    Não esqueça que pra esse tipo de configuração voce tera que descomentar algumas linhas referente ao razor,pyzor e dcc nos arquivos v310.pre, v312.pre e v320.pre que por default vem comentadas.

    Abração






Tópicos Similares

  1. Spamassassin - Erro nos testes de bayes
    Por s.u.n no fórum Servidores de Rede
    Respostas: 0
    Último Post: 03-01-2007, 19:51
  2. Erro no spamassassin
    Por EzumA no fórum Servidores de Rede
    Respostas: 3
    Último Post: 07-11-2006, 21:54
  3. Menssagem de erro no qmail
    Por no fórum Servidores de Rede
    Respostas: 2
    Último Post: 03-02-2005, 20:41
  4. permission denied no NFS
    Por no fórum Servidores de Rede
    Respostas: 1
    Último Post: 16-12-2004, 13:34
  5. re: erro no linux
    Por haysar no fórum Servidores de Rede
    Respostas: 0
    Último Post: 12-06-2002, 17:48

Visite: BR-Linux ·  VivaOLinux ·  Dicas-L