+ Responder ao Tópico



  1. #1
    pessoal, tenho +qmail+qmailscaner+vpopmail+spamassassin instalafo, tudo rodando na integra menos o "bonito"spamassassin.

    coloquei no meu iniciar o comando spamd -c -d e ele abre a porta 783 normalzinho, faço os testes e blz mas...
    manda qq email de spam e passa batido...pq sera heim?? alguem pode me salvar ?
    Valeu !!!

  2. #2
    wrochal
    Caro,

    Primeiramente você precisa ter os seguintes modulos instalado, no perl:

    Digest::SHA1
    Digest::HMAC
    Net:NS
    Time::HiRes
    HTML::Tagset
    HTML::Parser
    Pod::Usage
    Parse::Syslog
    Interpreters::Storable
    Statistics:istributions

    Também:

    perl-suid
    unzip

    Se você usa Debian:

    apt-get install libdigest-sha1-perl libdigest-hmac-perl libnet-dns-perl libtime-hires-perl libhtml-parser-perl libparse-syslog-perl libstorable-perl

    Edite as configurações do Spamassasim

    vi /etc/mail/spamassassin/local.cf

    rewrite_subject 1
    required_hits 5

    Renicie o Spam, e veja seus processos.

    ps -aux | grep spam

    Coloque no Qmail o Qmail-scanner

    vi /var/qmail/supervise/qmail-smtpd/run

    QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl" export QMAILQUEUE

    E altere o softlimit para 40000000

    Tem que ficar igual abaixo:

    Código :
    #!/bin/sh
    [b]QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl" export QMAILQUEUE[/b]
    QMAILDUID=`id -u vpopmail`
    NOFILESGID=`id -g vpopmail`
    MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
    LOCAL=`head -1 /var/qmail/control/me`
    if [ -z "$QMAILDUID" -o -z "$NOFILESGID" -o -z "$MAXSMTPD" -o -z "$LOCAL" ]; then
    echo QMAILDUID, NOFILESGID, MAXSMTPD, or LOCAL is unset in
    echo /var/qmail/supervise/qmail-smtpd/run
    exit 1
    fi
    if [ ! -f /var/qmail/control/rcpthosts ]; then
    echo "No /var/qmail/control/rcpthosts!"
    echo "Refusing to start SMTP listener because it'll create an open relay"
    exit 1
    fi
    exec /usr/local/bin/softlimit -m 40000000 \
    /usr/local/bin/tcpserver -v -R -l "$LOCAL" -x /etc/tcp.smtp.cdb -c "$MAXSMTPD" \
    -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp \
    /var/qmail/bin/qmail-smtpd under-linux.org \
    /home/vpopmail/bin/vchkpw /usr/bin/true 2>&1

    Pare o Qmail

    qmailctl stop

    E inicie novamente

    qmailctl start

    e verifique se esta tudo ok

    qmailctl stat

    Seria isso...

    falou, :toim:



  3. #3
    ja fiz e nada...mando a msg e as regras do qmailscaner barra oq eu coloquei em seu *.txt , mas spam mesmo...passa todos!
    pq sera heim...

  4. #4
    whinston
    cat /etc/mail/spamassassin/local.cf
    # How many hits before a message is considered spam.
    required_hits 3

    # Whether to change the subject of suspected spam
    rewrite_subject 1

    # Text to prepend to subject if rewrite_subject is used
    subject_tag *SPAM*
    rewrite_header SUBJECT ** SPAM **

    # Encapsulate spam in an attachment
    report_safe 0

    # Use terse version of the spam report
    use_terse_report 0

    # Enable the Bayes system
    use_bayes 1

    # Enable Bayes auto-learning
    auto_learn 1

    # learning system automatically, to train the Bayesian scanner.
    bayes_auto_learn_threshold_nonspam 0.1
    bayes_auto_learn_threshold_spam 5.0

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



  5. #5
    whinston
    cat /usr/local/share/spamassassin/10_misc.cf
    # SpamAssassin basic config file
    #
    # Please don't modify this file as your changes will be overwritten with
    # the next update. Use /etc/mail/spamassassin/local.cf instead.
    # See 'perldoc Mail::SpamAssassin::Conf' for details.
    #
    # <@LICENSE>
    # Copyright 2004 Apache Software Foundation
    #
    # Licensed under the Apache License, Version 2.0 (the "License");
    # you may not use this file except in compliance with the License.
    # You may obtain a copy of the License at
    #
    # http://www.apache.org/licenses/LICENSE-2.0
    #
    # Unless required by applicable law or agreed to in writing, software
    # distributed under the License is distributed on an "AS IS" BASIS,
    # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    # See the License for the specific language governing permissions and
    # limitations under the License.
    # </@LICENSE>
    #
    ###########################################################################

    # Default template. Try to keep it under 78 columns (inside the the dots below).
    # ........................................................................
    clear_report_template
    report Spam detection software, running on the system "_HOSTNAME_", has
    report identified this incoming email as possible spam. The original message
    report has been attached to this so you can view it (if it isn't spam) or label
    report similar future email. If you have any questions, see
    report _CONTACTADDRESS_ for details.
    report
    report Content preview: _PREVIEW_
    report
    report Content analysis details: (_SCORE_ points, _REQD_ required)
    report
    report " pts rule name description"
    report ---- ---------------------- --------------------------------------------------
    report _SUMMARY_
    # ........................................................................

    # A 'contact address' users should contact for more info. (replaces
    # _CONTACTADDRESS_ above if present)
    report_contact the administrator of that system

    ###########################################################################

    # Unsafe-for-viewing message report template.
    #
    # ......................................................................
    clear_unsafe_report_template
    unsafe_report The original message was not completely plain text, and may be unsafe to
    unsafe_report open with some email clients; in particular, it may contain a virus,
    unsafe_report or confirm that your address can receive spam. If you wish to view
    unsafe_report it, it may be safer to save it to a file and open it with an editor.
    # ......................................................................

    ###########################################################################
    # Database configuration options.
    #
    # user_scores_dsn MUST be in the form:
    # DBI:databasetype:databasename:hostnameort
    # ex. DBI:mysql:spamassassin:localhost
    #
    # user_scores_sql_username is the authorized username to connect to DSN
    # user_scores_sql_password is the password for the database username

    #user_scores_dsn DBI:mysql:spamassassin:localhost
    #user_scores_sql_username spam
    #user_scores_sql_password spamfilter

    ###########################################################################
    # Automatic-whitelist directory, for the default db-based whitelist
    # backend. By default, each user has their own, in their ~/.spamassassin
    # directory with mode 0600, but for system-wide SpamAssassin use, you may
    # want to share this across all users; uncomment and customise the below
    # lines. (Make sure the mode has --x bits set.)

    # auto_whitelist_factor 0.5

    # default: per-user whitelist:
    # auto_whitelist_path ~/.spamassassin/auto-whitelist
    # auto_whitelist_file_mode 0600

    # use this for a system-wide whitelist:
    # auto_whitelist_path /var/spool/spamassassin/auto-whitelist
    # auto_whitelist_file_mode 0666

    ##########################################################################
    # Headers to be added to mail (can be overriden by users in
    # ~/.spamassassin/user_prefs)
    # Make sure the header stays entirely on one line here

    clear_headers

    #X-Spam-Checker-Version: SpamAssassin 2.60-cvs (1.188-2003-05-24-exp)
    add_header all Checker-Version SpamAssassin _VERSION_ (_SUBVERSION_) on _HOSTNAME_

    #X-Spam-Flag: YES
    add_header spam Flag _YESNOCAPS_

    #X-Spam-Level: *************
    add_header all Level _STARS(*)_

    #X-Spam-Status: Yes, score=14.0 required=5.0 tests=BAYES_99,CALL_FREE
    # DATE_IN_PAST_12_24,DCC_CHECK,DRASTIC_REDUCED,FROM_HAS_MIXED_NUMS
    # FROM_HAS_MIXED_NUMS3,HOME_EMPLOYMENT,INVALID_DATE,INVALID_MSGID
    # LINES_OF_YELLING,MSGID_HAS_NO_AT,NO_REAL_NAME,ONCE_IN_LIFETIME
    # UNDISC_RECIPS autolearn=spam version=2.60-cvs
    add_header all Status "_YESNO_, score=_SCORE_ required=_REQD_ tests=_TESTS_ autolearn=_AUTOLEARN_ version=_VERSION_"

    ###########################################################################
    # Default prefs values: users can override these in their
    # ~/.spamassassin/user_prefs files.

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

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

    # Mail using languages used in these country codes will not be marked
    # as being possibly spam in a foreign language. This is an expensive
    # test, so it is set to "all" so the test will not be used by default.
    ok_languages all

    # Mail which scores outside this range will be fed back into SpamAssassin's
    # learning system automatically, to train the Bayesian scanner.
    bayes_auto_learn_threshold_nonspam 0.1
    bayes_auto_learn_threshold_spam 12.0

    # Set this to 0 to turn off auto-learning.
    bayes_auto_learn 1

    # report_safe controls the markup of spam. If you set it to 0, the message
    # body of spam messages will not be modified
    report_safe 1

    # Some common prefs settings can be set here, to take effect site-wide
    # unless the user override them. See the user_prefs.template file for
    # explanations.






Tópicos Similares

  1. Nagios instalado, mas nao configurado
    Por Bravo no fórum Servidores de Rede
    Respostas: 1
    Último Post: 21-03-2007, 00:44
  2. SPAMASSASSIN não bloqueia spam?
    Por ricardohb no fórum Servidores de Rede
    Respostas: 1
    Último Post: 24-01-2006, 12:43
  3. Spamassassin não identifica spams !!
    Por pablito no fórum Servidores de Rede
    Respostas: 10
    Último Post: 21-10-2005, 11:51
  4. squid instalado mas nao autentica
    Por icefox no fórum Servidores de Rede
    Respostas: 3
    Último Post: 06-08-2005, 19:18
  5. iptables instalado, mas não aceita regras.
    Por stallion no fórum Servidores de Rede
    Respostas: 5
    Último Post: 06-06-2005, 10:31

Visite: BR-Linux ·  VivaOLinux ·  Dicas-L