&~* *

,   ,   .  ,    .      (          ),              (Thunderbird          ).     -    ,  ,     ,     .

  -   ?

      -       .       ,   ,     :              .  ,     ,    :   , ,  :                   ,  ? 

, ,     -.

   

          -       IP-,    .       . ,     ,         (          - abuse).    ,  IP-     access    REJECT.

      .  access-      .      ,      ,      .

        -   IP-          .      (   - ,  - ),         DNS.

 

       DNS   -    (, spamcop.net)  DNS-,       ,     IP-.        ,  IP ,    ,   ,     .

        . ,  Sendmail      :

FEATURE(blacklist_recipients)dnl

FEATURE(`dnsbl', `relays.ordb.org')dnl

FEATURE(`dnsbl', `dul.ru')dnl

FEATURE(`dnsbl', `bl.spamcop.net')dnl

   DNSBL   : ,  .   ,           ,     - ,   ADSL.        -       ,    ,      .    ,        -      .         .

  

,        ?   ,        ,    4xx.            ,   .         - greylisting.

     Sendmail - milter-greylist.    ,  sendmail.mc   :

INPUT_MAIL_FILTER(`miltergreylist', `S=local:/var/milter-greylist/milter-greylist.sock, F=, T=S:4m;R:4m')dnl

  (,  -,        ..)    /usr/local/etc/mail/greylist.conf.

     (  OpenBSD  FreeBSD) - spamd.         pf.      : pf  ,   25- ,  ,   spamd ( 8025).        (     ,    ),       SMTP-,         , ,    DATA,    550  450 (    ).       ,      451    .

 FreeBSD  spamd     :

# cd /usr/ports/mail/spamd

# make install

      pf  :

table persist

no rdr inet proto tcp from to any port 25

rdr pass inet proto tcp from any to any port 25 -> 100.100.100.100 port 8025

    ,     (       25- ).      spamd ( 100.100.100.100 - ,    ,      127.0.0.1).  ,   ,   /etc/rc.conf      pf:

pf_enable="YES"

pf_flags=""

pflog_enable="YES"

pfspamd_enable="YES"

pfspamd_flags="-g -G 25:4:864 -v"

      (, -   ). ,  spamd         (  '-g'  '-G').    -     ,     .          ,        . ,     ,    (    ),      ,     .

 

           ,   .    -   ,     (callback).  :      DATA       ,    FROM.           RCPT TO   ,        .    ,     ,    .

 ,     . ,  ,      callback?        FROM,      -           .       ,   - ?    SMTP-     .

  

       ,  SPF,  Sender-ID  Yahoo DomainKeys (DK).     ,   DNS-        (     ),     ,         IP-.

          ,      .  milter-greylist   nospf -    ,  ,    SPF,       .   sip-milter.

  

 ,    ,  .    ,      ,     (    ,    ).  ,     ,    .          ,       (-  ).       ,     .

           :       ; ,  ,         ;      .   ,    ,  Razor.  (     Perl-)    .    ,         ,    ,  procmail:

# vi /etc/procmail.conf

:0 Wc

| razor-check

:0 Waf

/var/razor/carantine

   ,    /,    formail.    ( razor-admin -register),                 .

,         (,   ,   ).  ,    .        ,      ,   .          .

  

      ,  ,       ? ,  ,      . ,      ( ,   ?).       ?   ,         .

              .      :   989   1000      ,           98,9%.       ,    .. ,      ,      ,   -   ,     .

,    , .      DSPAM.    MTA   ,      (LDA).         (   POP3-),     .       ( -    );      /usr/local/etc/dspam.conf    (    ,       ),   LDA  ( )    . ,     CGI-,       (         Apache   suexec).             sendmail.mc  :define(`LOCAL_MAILER_PATH', `/usr/local/bin/dspam')dnl

define(`LOCAL_MAILER_ARGS', `dspam "--deliver=innocent,spam" --user $u -d %u')dnl

 DSPAM   CGI-,        - ,   ,    ,       ,      ..

,       ,      ,   .    -             .         ,    ,  ,    .

 

       - SpamAssassin.          :     SPF     .  ,         -  ,      (,      ,      ..).  ,        .      ,       .    ,     (  SpamAssassin,  ,   -    : procmail,    ..).

        Perl- -  CPAN.  Sendmail    milter (  ;    spamass-milter   ):

INPUT_MAIL_FILTER(`spamassassin', `S=local:/var/run/spamass-milter.sock, F=, T=S:4m;R:4m')dnl

      ( /usr/local/share/spamassassin)   ,   /usr/local/etc/mail/spamassassin/local.cf     ,       ,   ,     AWL (  ).  ,    ,    ,         :

# sa-learn --ham goodmails

# sa-learn --spam badmails

          ,      ,   procmail,      .  ,        Amavisd-new, ,   SpamAssassin    ,   -    (,   ).

     SpamAssassin  -    .         (Perl, -)       .

 ,     -  .     .     ,  ,   .       .  ,        .            .&~