dspam и кривые руки

EXIM, sendmail, postfix, Dovecot и прочие. Решение проблем связанных с работой электронной почты

Модератор: xM

Правила форума
Убедительная просьба юзать теги [code] при оформлении листингов.
Сообщения не оформленные должным образом имеют все шансы быть незамеченными.
opt1k
лейтенант
Сообщения: 966
Зарегистрирован: 2007-12-05 9:45:18
Откуда: Mytischi

dspam и кривые руки

Непрочитанное сообщение opt1k » 2011-03-15 15:12:04

Добрый день.
Уже неделю ковыряю dspam и никак не могу его адаптировать для работы со своим почтовиком (exim, dovecot).
конфиг exim:

Код: Выделить всё

primary_hostname = myhost.ru

hide mysql_servers = localhost/exim/exim/exim

domainlist local_domains = ${lookup mysql{SELECT domain FROM domain WHERE domain='${domain}' AND active='1'}}

domainlist relay_to_domains = ${lookup mysql{SELECT domain FROM domain WHERE domain='${domain}' AND active='1'}}

hostlist   relay_from_hosts = localhost:127.0.0.0/8:192.168.0.0/16

acl_smtp_rcpt = acl_check_rcpt
acl_smtp_data = acl_check_data

av_scanner = clamd:/var/run/clamav/clamd.sock


qualify_domain = myhost.ru

qualify_recipient = myhost.ru

allow_domain_literals = false

exim_user = mailnull

exim_group = mail

never_users = root


rfc1413_query_timeout = 0s

sender_unqualified_hosts = +relay_from_hosts
recipient_unqualified_hosts = +relay_from_hosts


ignore_bounce_errors_after = 45m

timeout_frozen_after = 15d



helo_accept_junk_hosts = 192.168.0.0/16

auto_thaw = 1h

smtp_banner = "$primary_hostname, ESMTP EXIM $version_number"

smtp_accept_max = 50

smtp_accept_max_per_connection = 25

smtp_connect_backlog = 30

smtp_accept_max_per_host = 20

split_spool_directory = true

remote_max_parallel = 15

return_size_limit = 70k

message_size_limit = 64M

helo_allow_chars = _

smtp_enforce_sync = true

log_selector =  +all_parents +connection_reject +incoming_interface +lost_incoming_connection +received_sender +received_recipients +smtp_confirmation +smtp_syntax_error +smtp_protocol_error -queue_run

syslog_timestamp = no



begin acl

acl_check_rcpt:


  accept  hosts = :

  deny    message       = "incorrect symbol in address"
          domains       = +local_domains
          local_parts   = ^[.] : ^.*[@%!/|]

  deny    message       = "incorrect symbol in address"
          domains       = !+local_domains
          local_parts   = ^[./|] : ^.*[@%!] : ^.*/\\.\\./


  accept  local_parts   = postmaster
          domains       = +local_domains

  deny    message       = "HELO/EHLO require by SMTP RFC"
          condition     = ${if eq{$sender_helo_name}{}{yes}{no}}

  accept  authenticated = *

  deny    message       = "Your IP in HELO - access denied!"
          hosts         =  * : !+relay_from_hosts : !81-196.lissyara.su
          condition     = ${if eq{$sender_helo_name} {$sender_host_address}{true}{false}}


  deny    condition     = ${if eq{$sender_helo_name} {$interface_address}{yes}{no}}
          hosts         = !127.0.0.1 : !localhost : *
          message       = "main IP in your HELO! Access denied!"

  deny    condition     = ${if match{$sender_helo_name} {\N^\d+$\N}{yes}{no}}
          hosts         = !127.0.0.1 : !localhost : *
          message       = "can not be only number in HELO!"

  deny    message       = "your hostname is bad (adsl, poll, ppp & etc)."
          condition     = ${if match{$sender_host_name} {adsl|dialup|pool|peer|dhcp} {yes}{no}}

  warn
        set acl_m0 = 30s
  warn
        hosts = +relay_from_hosts:213.234.195.224/28:80.253.9.18/32
        set acl_m0 = 0s
  warn
        logwrite = Delay $acl_m0 for $sender_host_name [$sender_host_address] with HELO=$sender_helo_name. Mail from $sender_address to $local_part@$domain.
        delay = $acl_m0

                          
  accept  domains       = +local_domains
          endpass
          message       = "In my mailserver not stored this user"
          verify        = recipient

  accept  domains       = +relay_to_domains
          endpass
          message       = "main server not know how relay to this address"
          verify        = recipient

  deny    message       = you in blacklist: $dnslist_domain \n $dnslist_text
          dnslists      = opm.blitzed.org : cbl.abuseat.org : bl.csma.biz : dynablock.njabl.org

  accept  hosts         = +relay_from_hosts

  deny    message       = "Homo hominus lupus est"





acl_check_data:

  deny malware = *
  message = "In e-mail found VIRUS - $malware_name"


  accept



begin routers


dspam_addspam_router:
  driver = accept
  domains                      = +local_domains
  local_part_prefix = spam-
  transport = dspam_addspam_transport

dspam_notspam_router:
  driver = accept
  domains                      = +local_domains
  local_part_prefix = notspam-
  transport = dspam_notspam_transport





dnslookup:
  driver = dnslookup
  domains = ! +local_domains
  transport = remote_smtp
  ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
  no_more

system_aliases:
    driver      = redirect
    allow_fail
    allow_defer
    data = ${lookup mysql{SELECT goto FROM alias WHERE address='${quote_mysql:$local_part@$domain}' OR address='${quote_mysql:@$domain}'}}


dspam_spamscan_router:
  driver = accept
  domains                      = +local_domains
  no_verify
  condition = "${if and {{!eq {$received_protocol}{spam-scanned}} {!eq {$received_protocol}{local}} } {1}{0}}"
  transport = dspam_spamcheck_transport
  require_files = /usr/local/bin/dspam
  address_test = false

local_delivery_spam_router:
  driver                       = accept
  domains                      = +local_domains
  condition                    = ${if match{$h_X-DSPAM-Result:}{Spam}}
  transport                    = local_delivery_spam_transport
  no_more





dovecot_user:
  driver = accept
  condition = ${lookup mysql{SELECT goto FROM alias WHERE address='${quote_mysql:$local_part@$domain}' OR address='${quote_mysql:@$domain}'}{yes}{no}}
  transport = dovecot_delivery


begin transports






dspam_addspam_transport:
  driver = pipe
  command = "/usr/local/bin/dspam --debug --user $local_part@$domain --class=spam --source=error"
  return_path_add = false
  return_fail_output = true
  log_output = true
  home_directory = "/var/db/dspam"
  current_directory = "/var/db/dspam"
  user = mailnull
  group = mail

dspam_notspam_transport:
  driver = pipe
  command = "/usr/local/bin/dspam --debug --user $local_part@$domain --class=innocent --source=error --deliver=innocent %u"
  return_path_add = false
  return_fail_output = true
  log_output = true
  home_directory = "/var/db/dspam"
  current_directory = "/var/db/dspam"
  user = mailnull
  group = mail

dspam_spamcheck_transport:
  driver = pipe
  command = /usr/local/bin/dspam --debug --deliver=innocent --user "$local_part@$domain" -- %u
  user = mailnull
  group = mail
  return_path_add = false
  log_output = true
  return_fail_output = true
  headers_remove        = X-DSPAM-Result


local_delivery_spam_transport:
  driver = pipe
  command = /usr/local/libexec/dovecot/deliver -d $local_part@$domain -m Junk
  message_prefix =
  message_suffix =
  delivery_date_add
  envelope_to_add
  return_path_add
  user = mailnull





remote_smtp:
  driver = smtp

dovecot_delivery:
  driver = pipe
  command = /usr/local/libexec/dovecot/deliver -d $local_part@$domain
  message_prefix =
  message_suffix =
  delivery_date_add
  envelope_to_add
  return_path_add
  log_output
  user = mailnull


address_pipe:
  driver = pipe
  return_output

address_reply:
  driver = autoreply



begin retry

*                    *       F,2h,15m; G,16h,1h,1.5; F,4d,6h


begin rewrite


begin authenticators


auth_plain:
  driver = plaintext
  public_name = PLAIN
  server_condition = ${lookup mysql{SELECT username FROM mailbox WHERE username = '${quote_mysql:$auth2}' AND password = '${quote_mysql:$auth3}'}{yes}{no}}
  server_prompts = :
  server_set_id = $auth2


auth_login:
  driver = plaintext
  public_name = LOGIN
  server_condition = ${lookup mysql{SELECT username FROM mailbox WHERE username = '${quote_mysql:$auth1}' AND password = '${quote_mysql:$auth2}'}{yes}{no}}
  server_prompts = Username:: : Password::
  server_set_id = $auth1

auth_cram_md5:
  driver = cram_md5
  public_name = CRAM-MD5
  server_secret = ${lookup mysql{SELECT password FROM mailbox WHERE username = '${quote_mysql:$auth1}'}{$value}fail}
  server_set_id = $auth2

конфиг dovecot:

Код: Выделить всё

base_dir = /var/run/dovecot/

protocols = imap pop3


listen = *


ssl=no






disable_plaintext_auth = no


shutdown_clients = yes



log_timestamp = "%b %d %H:%M:%S "

syslog_facility = mail


login_dir = /var/run/dovecot/login

login_chroot = yes

login_user = dovecot

login_process_size = 64

login_process_per_connection = yes

login_processes_count = 3

login_max_processes_count = 64


login_greeting = dovecot MUA ready

login_log_format_elements = user=<%u> method=%m rip=%r lip=%l %c

login_log_format = %$: %s



verbose_proctitle = yes


first_valid_uid = 25

first_valid_gid = 0




mail_debug = yes

mail_location = maildir:/mnt/hdd1/%d/%n

protocol imap {
  imap_client_workarounds = delay-newmail outlook-idle netscape-eoh tb-extra-mailbox-sep
}


protocol pop3 {
  pop3_uidl_format = %08Xu%08Xv

  pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
}


protocol lda {
  postmaster_address = adm@myhost.ru

  auth_socket_path = /var/run/dovecot/auth-master
}















log_path = /var/log/dovecot.log
info_log_path = /var/log/dovecot-info.log

auth_verbose=yes
auth_debug=yes
auth_debug_passwords=yes
mail_debug=yes
verbose_ssl=yes




auth default {
  # аЁаПаИб?аОаК б?б?аЕаБб?аЕаМб?б? аМаЕб?аАаНаИаЗаМаОаВ аАб?б?аЕаНб?аИб?аИаКаАб?аИаИ, б?аАаЗаДаЕаЛб?аНаНб?аЙ аПб?аОаБаЕаЛаАаМаИ
  #   plain login digest-md5 cram-md5 ntlm rpa apop anonymous gssapi
  mechanisms = plain

   # а?аОаБаАаВаЛаЕаНаО аДаЛб? б?аАаБаОб?б? deliver аОб? dovecot
   socket listen {
     master {
       path = /var/run/dovecot/auth-master
       mode = 0600
       user = mailnull
       #group = mail
     }
   }


  passdb sql {
    args = /usr/local/etc/dovecot-sql.conf
  }

  userdb sql {
    args = /usr/local/etc/dovecot-sql.conf
  }
  user = root

}




plugin {
}
dovecot-sql.conf:

Код: Выделить всё

connect = host=localhost dbname=exim user=exim password=exim

default_pass_scheme = PLAIN


password_query = SELECT password FROM mailbox WHERE username = '%n@%d'
user_query = SELECT CONCAT('/mnt/hdd1/',LCASE(maildir)) AS home, 26 AS uid, 26 AS gid FROM mailbox WHERE username = '%u'
конфиг dspam:

Код: Выделить всё

Home /var/db/dspam
StorageDriver /usr/local/lib/dspam/libmysql_drv.so
#StorageDriver /usr/local/lib/libhash_drv.so
TrustedDeliveryAgent "/usr/local/sbin/exim -oMr spam-scanned"
OnFail error
Trust root
Trust mail
Trust mailnull
TrainingMode teft
TestConditionalTraining on
Feature chained noise
Algorithm graham burton
PValue graham
Preference "signatureLocation=headers"
Preference "showFactors=on"
Preference "spamAction=tag"
Preference "spamSubject=SPAM"
AllowOverride trainingMode
AllowOverride spamAction spamSubject
AllowOverride statisticalSedation
AllowOverride enableBNR
AllowOverride enableWhitelist
AllowOverride signatureLocation
AllowOverride showFactors
AllowOverride optIn optOut
AllowOverride whitelistThreshold
MySQLServer     localhost
MySQLPort       3306
MySQLUser               dspam
MySQLPass               SECRET
MySQLDb                 dspam
MySQLConnectionCache    1000
HashRecMax              98317
HashAutoExtend          on
HashMaxExtents          0
HashExtentSize          49157
HashMaxSeek             100
HashConnectionCache     100
IgnoreHeader X-Spam-Status
IgnoreHeader X-Spam-Score
IgnoreHeader X-Spam-Scanned
IgnoreHeader X-Virus-Scanner-Result
IgnoreHeader Date
IgnoreHeader Envelope-to
IgnoreHeader Delivery-date
IgnoreHeader Received
IgnoreHeader User-Agent
IgnoreHeader Content-Type
IgnoreHeader Content-Transfer-Encoding
IgnoreHeader To
Notifications   off
LocalMX 127.0.0.1
SystemLog on
Opt out
MaxMessageSize 200000
ProcessorBias on

далее логи dspam
Чистая установка, отпрвляю\получаю первое письмо:

Код: Выделить всё

66061: [03/15/2011 11:49:23] No QuarantineAgent option found. Using standard quarantine.
66061: [03/15/2011 11:49:23] DSPAM Instance Startup
66061: [03/15/2011 11:49:23] input args: /usr/local/bin/dspam --debug --deliver=innocent --user testuser@myhost.ru -- %u
66061: [03/15/2011 11:49:23] pass-thru args: /usr/local/sbin/exim -oMr spam-scanned %u
66061: [03/15/2011 11:49:23] processing user testuser@myhost.ru
66061: [03/15/2011 11:49:23] uid = 0, euid = 0, gid = 0, egid = 0
66061: [03/15/2011 11:49:23] loading preferences for user testuser@myhost.ru
66061: [03/15/2011 11:49:23] default preferences empty. reverting to dspam.conf preferences.
66061: [03/15/2011 11:49:23] Loading preferences from dspam.conf
66061: [03/15/2011 11:49:23] using /var/db/dspam/opt-in/testuser@myhost.ru.dspam as path
66061: [03/15/2011 11:49:23] using /var/db/dspam/opt-out/testuser@myhost.ru.nodspam as path
66061: [03/15/2011 11:49:23] sedation level set to: 0
66061: [03/15/2011 11:49:23] _mysql_drv_getpwnam: successful returning struct for name: testuser@myhost.ru
66061: [03/15/2011 11:49:23] _mysql_drv_getpwnam returning cached name testuser@myhost.ru.
66061: [03/15/2011 11:49:23] Loading 4 BNR patterns
66061: [03/15/2011 11:49:23] _mysql_drv_getpwnam returning cached name testuser@myhost.ru.
66061: [03/15/2011 11:49:23] [graham] [0.400000] From*п©п?п?п©п?п? (1frq, 0s, 2i)
66061: [03/15/2011 11:49:23] [burton] [0.400000] From*п©п?п?п©п?п? (1frq, 0s, 2i)
66061: [03/15/2011 11:49:23] [graham] [0.400000] penis (3frq, 0s, 2i)
66061: [03/15/2011 11:49:23] [burton] [0.400000] penis (3frq, 0s, 2i)
66061: [03/15/2011 11:49:23] [burton] [0.400000] penis (3frq, 0s, 2i)
66061: [03/15/2011 11:49:23] [graham] [0.400000] Message-ID*bebeo.ru> (1frq, 0s, 2i)
66061: [03/15/2011 11:49:23] [burton] [0.400000] Message-ID*bebeo.ru> (1frq, 0s, 2i)
66061: [03/15/2011 11:49:23] [graham] [0.400000] Return-path*blabla (1frq, 0s, 2i)
66061: [03/15/2011 11:49:23] [burton] [0.400000] Return-path*blabla (1frq, 0s, 2i)
66061: [03/15/2011 11:49:23] [graham] [0.400000] MIME-Version*1.0 (1frq, 0s, 2i)
66061: [03/15/2011 11:49:23] [burton] [0.400000] MIME-Version*1.0 (1frq, 0s, 2i)
66061: [03/15/2011 11:49:23] [graham] [0.400000] Return-path*<testuser (1frq, 0s, 2i)
66061: [03/15/2011 11:49:23] [burton] [0.400000] Return-path*<testuser (1frq, 0s, 2i)
66061: [03/15/2011 11:49:23] [graham] [0.400000] From*bebeo.ru> (1frq, 0s, 2i)
66061: [03/15/2011 11:49:23] [burton] [0.400000] From*bebeo.ru> (1frq, 0s, 2i)
66061: [03/15/2011 11:49:23] [graham] [0.400000] Message-ID*blabla (1frq, 0s, 2i)
66061: [03/15/2011 11:49:23] [burton] [0.400000] Message-ID*blabla (1frq, 0s, 2i)
66061: [03/15/2011 11:49:23] [graham] [0.400000] Return-path*bebeo.ru> (1frq, 0s, 2i)
66061: [03/15/2011 11:49:23] [burton] [0.400000] Return-path*bebeo.ru> (1frq, 0s, 2i)
66061: [03/15/2011 11:49:23] [graham] [0.400000] From*<testuser (1frq, 0s, 2i)
66061: [03/15/2011 11:49:23] [burton] [0.400000] From*<testuser (1frq, 0s, 2i)
66061: [03/15/2011 11:49:23] [graham] [0.400000] From*blabla (1frq, 0s, 2i)
66061: [03/15/2011 11:49:23] [burton] [0.400000] From*blabla (1frq, 0s, 2i)
66061: [03/15/2011 11:49:23] [graham] [0.400000] Subject*viagra (1frq, 0s, 2i)
66061: [03/15/2011 11:49:23] [burton] [0.400000] Subject*viagra (1frq, 0s, 2i)
66061: [03/15/2011 11:49:23] [graham] [0.400000] Message-ID*<4D28F028.9090203 (1frq, 0s, 2i)
66061: [03/15/2011 11:49:23] [burton] [0.400000] Message-ID*<4D28F028.9090203 (1frq, 0s, 2i)
66061: [03/15/2011 11:49:23] Graham-Bayesian Probability: 0.005112 Samples: 13
66061: [03/15/2011 11:49:23] Burton-Bayesian Probability: 0.003414 Samples: 14
66061: [03/15/2011 11:49:23] no factors specified; using default
66061: [03/15/2011 11:49:23] Result Confidence: 1.00
66061: [03/15/2011 11:49:23] _mysql_drv_getpwnam returning cached name testuser@myhost.ru.
66061: [03/15/2011 11:49:23] Control: [10 10] [10 11] Delta: [0 1]
66061: [03/15/2011 11:49:23] total processing time: 0.00968s
66061: [03/15/2011 11:49:23] _mysql_drv_getpwnam returning cached name testuser@myhost.ru.
66061: [03/15/2011 11:49:23] saving signature as 4d7f2813660613690468091
66061: [03/15/2011 11:49:23] _mysql_drv_getpwnam returning cached name testuser@myhost.ru.
66061: [03/15/2011 11:49:23] libdspam returned probability of 0.005112
66061: [03/15/2011 11:49:23] message result: NOT SPAM
66061: [03/15/2011 11:49:23] _mysql_drv_getpwnam returning cached name testuser@myhost.ru.
66061: [03/15/2011 11:49:23] delivering message
66061: [03/15/2011 11:49:23] Opening pipe to LDA: /usr/local/sbin/exim -oMr spam-scanned testuser@myhost.ru
66061: [03/15/2011 11:49:23] LDA returned success
66061: [03/15/2011 11:49:23] DSPAM Instance Shutdown.  Exit Code: 0
пересылаю письмо на ящик spam-testuser@myhost.ru:

Код: Выделить всё

66075: [03/15/2011 11:52:09] No QuarantineAgent option found. Using standard quarantine.
66075: [03/15/2011 11:52:09] DSPAM Instance Startup
66075: [03/15/2011 11:52:09] input args: /usr/local/bin/dspam --debug --user testuser@myhost.ru --class=spam --source=error
66075: [03/15/2011 11:52:09] pass-thru args:
66075: [03/15/2011 11:52:09] processing user testuser@myhost.ru
66075: [03/15/2011 11:52:09] uid = 26, euid = 0, gid = 6, egid = 6
66075: [03/15/2011 11:52:09] loading preferences for user testuser@myhost.ru
66075: [03/15/2011 11:52:09] default preferences empty. reverting to dspam.conf preferences.
66075: [03/15/2011 11:52:09] Loading preferences from dspam.conf
66075: [03/15/2011 11:52:09] using /var/db/dspam/opt-in/testuser@myhost.ru.dspam as path
66075: [03/15/2011 11:52:09] using /var/db/dspam/opt-out/testuser@myhost.ru.nodspam as path
66075: [03/15/2011 11:52:09] sedation level set to: 0
66075: [03/15/2011 11:52:09] _mysql_drv_getpwnam: successful returning struct for name: testuser@myhost.ru
66075: [03/15/2011 11:52:09] _mysql_drv_getpwnam returning cached name testuser@myhost.ru.
66075: [03/15/2011 11:52:09] DSPAM Instance Shutdown.  Exit Code: 0
ещё раз отправляю\получаю тоже самое письмо:

Код: Выделить всё

66080: [03/15/2011 11:53:31] No QuarantineAgent option found. Using standard quarantine.
66080: [03/15/2011 11:53:31] DSPAM Instance Startup
66080: [03/15/2011 11:53:31] input args: /usr/local/bin/dspam --debug --deliver=innocent --user testuser@myhost.ru -- %u
66080: [03/15/2011 11:53:31] pass-thru args: /usr/local/sbin/exim -oMr spam-scanned %u
66080: [03/15/2011 11:53:31] processing user testuser@myhost.ru
66080: [03/15/2011 11:53:31] uid = 0, euid = 0, gid = 0, egid = 0
66080: [03/15/2011 11:53:31] loading preferences for user testuser@myhost.ru
66080: [03/15/2011 11:53:31] default preferences empty. reverting to dspam.conf preferences.
66080: [03/15/2011 11:53:31] Loading preferences from dspam.conf
66080: [03/15/2011 11:53:31] using /var/db/dspam/opt-in/testuser@myhost.ru.dspam as path
66080: [03/15/2011 11:53:31] using /var/db/dspam/opt-out/testuser@myhost.ru.nodspam as path
66080: [03/15/2011 11:53:31] sedation level set to: 0
66080: [03/15/2011 11:53:31] _mysql_drv_getpwnam: successful returning struct for name: testuser@myhost.ru
66080: [03/15/2011 11:53:31] _mysql_drv_getpwnam returning cached name testuser@myhost.ru.
66080: [03/15/2011 11:53:31] Loading 4 BNR patterns
66080: [03/15/2011 11:53:31] _mysql_drv_getpwnam returning cached name testuser@myhost.ru.
66080: [03/15/2011 11:53:31] [graham] [0.010000] From*п©п?п?п©п?п? (1frq, 0s, 3i)
66080: [03/15/2011 11:53:31] [burton] [0.010000] From*п©п?п?п©п?п? (1frq, 0s, 3i)
66080: [03/15/2011 11:53:31] [graham] [0.010000] penis (3frq, 0s, 3i)
66080: [03/15/2011 11:53:31] [burton] [0.010000] penis (3frq, 0s, 3i)
66080: [03/15/2011 11:53:31] [burton] [0.010000] penis (3frq, 0s, 3i)
66080: [03/15/2011 11:53:31] [graham] [0.010000] Message-ID*bebeo.ru> (1frq, 0s, 3i)
66080: [03/15/2011 11:53:31] [burton] [0.010000] Message-ID*bebeo.ru> (1frq, 0s, 3i)
66080: [03/15/2011 11:53:31] [graham] [0.010000] Return-path*blabla (1frq, 0s, 3i)
66080: [03/15/2011 11:53:31] [burton] [0.010000] Return-path*blabla (1frq, 0s, 3i)
66080: [03/15/2011 11:53:31] [graham] [0.010000] MIME-Version*1.0 (1frq, 0s, 3i)
66080: [03/15/2011 11:53:31] [burton] [0.010000] MIME-Version*1.0 (1frq, 0s, 3i)
66080: [03/15/2011 11:53:31] [graham] [0.010000] Return-path*<testuser (1frq, 0s, 3i)
66080: [03/15/2011 11:53:31] [burton] [0.010000] Return-path*<testuser (1frq, 0s, 3i)
66080: [03/15/2011 11:53:31] [graham] [0.010000] From*bebeo.ru> (1frq, 0s, 3i)
66080: [03/15/2011 11:53:31] [burton] [0.010000] From*bebeo.ru> (1frq, 0s, 3i)
66080: [03/15/2011 11:53:31] [graham] [0.010000] Message-ID*blabla (1frq, 0s, 3i)
66080: [03/15/2011 11:53:31] [burton] [0.010000] Message-ID*blabla (1frq, 0s, 3i)
66080: [03/15/2011 11:53:31] [graham] [0.010000] Return-path*bebeo.ru> (1frq, 0s, 3i)
66080: [03/15/2011 11:53:31] [burton] [0.010000] Return-path*bebeo.ru> (1frq, 0s, 3i)
66080: [03/15/2011 11:53:31] [graham] [0.010000] From*<testuser (1frq, 0s, 3i)
66080: [03/15/2011 11:53:31] [burton] [0.010000] From*<testuser (1frq, 0s, 3i)
66080: [03/15/2011 11:53:31] [graham] [0.010000] From*blabla (1frq, 0s, 3i)
66080: [03/15/2011 11:53:31] [burton] [0.010000] From*blabla (1frq, 0s, 3i)
66080: [03/15/2011 11:53:31] [graham] [0.010000] Subject*viagra (1frq, 0s, 3i)
66080: [03/15/2011 11:53:31] [burton] [0.010000] Subject*viagra (1frq, 0s, 3i)
66080: [03/15/2011 11:53:31] [graham] [0.010000] Message-ID*<4D28F028.9090203 (1frq, 0s, 3i)
66080: [03/15/2011 11:53:31] [burton] [0.010000] Message-ID*<4D28F028.9090203 (1frq, 0s, 3i)
66080: [03/15/2011 11:53:31] Graham-Bayesian Probability: 0.000000 Samples: 13
66080: [03/15/2011 11:53:31] Burton-Bayesian Probability: 0.000000 Samples: 14
66080: [03/15/2011 11:53:31] no factors specified; using default
66080: [03/15/2011 11:53:31] Result Confidence: 0.99
66080: [03/15/2011 11:53:31] _mysql_drv_getpwnam returning cached name testuser@myhost.ru.
66080: [03/15/2011 11:53:31] Control: [10 10] [10 11] Delta: [0 1]
66080: [03/15/2011 11:53:31] total processing time: 0.01006s
66080: [03/15/2011 11:53:31] _mysql_drv_getpwnam returning cached name testuser@myhost.ru.
66080: [03/15/2011 11:53:31] saving signature as 4d7f290b660803735715048
66080: [03/15/2011 11:53:31] _mysql_drv_getpwnam returning cached name testuser@myhost.ru.
66080: [03/15/2011 11:53:31] libdspam returned probability of 0.000000
66080: [03/15/2011 11:53:31] message result: NOT SPAM
66080: [03/15/2011 11:53:31] _mysql_drv_getpwnam returning cached name testuser@myhost.ru.
66080: [03/15/2011 11:53:31] delivering message
66080: [03/15/2011 11:53:31] Opening pipe to LDA: /usr/local/sbin/exim -oMr spam-scanned testuser@myhost.ru
66080: [03/15/2011 11:53:31] LDA returned success
66080: [03/15/2011 11:53:31] DSPAM Instance Shutdown.  Exit Code: 0
В январе этого года поднимал связку без проблем, сейчас ну никак.
Логи дспама не дают исчерпывающего ответа :(
Куда копать?
Может кто-нить даст свои конфиги exim и dspam?

Хостинговая компания Host-Food.ru
Хостинг HostFood.ru
 

Услуги хостинговой компании Host-Food.ru

Хостинг HostFood.ru

Тарифы на хостинг в России, от 12 рублей: https://www.host-food.ru/tariffs/hosting/
Тарифы на виртуальные сервера (VPS/VDS/KVM) в РФ, от 189 руб.: https://www.host-food.ru/tariffs/virtualny-server-vps/
Выделенные сервера, Россия, Москва, от 2520 рублей (8 CPU, 8Gb RAM, 2x500Gb HDD, RAID 3ware 9750):
https://www.host-food.ru/tariffs/vydelennyi-server-ds/
Недорогие домены в популярных зонах: https://www.host-food.ru/domains/

opt1k
лейтенант
Сообщения: 966
Зарегистрирован: 2007-12-05 9:45:18
Откуда: Mytischi

Re: dspam и кривые руки

Непрочитанное сообщение opt1k » 2011-03-15 17:31:17

ну, неделю я немного преувеличил, с четверга ковырялся.
Проблему решил.

Аватара пользователя
Alex Keda
стреляли...
Сообщения: 35017
Зарегистрирован: 2004-10-18 14:25:19
Откуда: Made in USSR
Контактная информация:

Re: dspam и кривые руки

Непрочитанное сообщение Alex Keda » 2011-03-17 17:06:45

и чё было?
Убей их всех! Бог потом рассортирует...

opt1k
лейтенант
Сообщения: 966
Зарегистрирован: 2007-12-05 9:45:18
Откуда: Mytischi

Re: dspam и кривые руки

Непрочитанное сообщение opt1k » 2011-03-18 11:24:32

неудачное письмо которым проверял работу(может очень короткое, может ещё чего).
с другим всё заработало(отослал конфиг экзима).

opt1k
лейтенант
Сообщения: 966
Зарегистрирован: 2007-12-05 9:45:18
Откуда: Mytischi

Re: dspam и кривые руки

Непрочитанное сообщение opt1k » 2011-03-18 11:31:03

Кстати, постгрес я так и не смог заставить работать. Конфиги аналогичные mysql'овским, когда смотрю в логи то вижу что в письме которое я отсылал на обучение как спамовое все цепочки слов помечены как 0.400000, т.е. нейтральные.
Ну и хрен с ним с постгресом, сейчас перевожу всё включая почту на active directory, останется лишь мускул в котором хранится база каспера. Вот на этом мускуле и будет у меня дспам крутиться, или может даже буду использовать родную дспамовскую libhash, надо только почитать про неё.