Список форумов Postfix: ???????????? postfix, ??????, ????? ??????, ????? Postfix: ???????????? postfix, ??????, ????? ??????, ?????
????????????? ?????? ?????? ?????? ????????????? postfix 

 FAQFAQ   ПоискПоиск   ПользователиПользователи   ГруппыГруппы   РегистрацияРегистрация 
 ПрофильПрофиль   Войти и проверить личные сообщенияВойти и проверить личные сообщения   ВходВход 

POSTFIX.RU: Файлы конфигурации | Документация | Download | Ссылки | Контакты
Объявления: Новости сайта:
22.03.07 состоялся переезд сайта к новому хостинг-провайдеру.
Подробности здесь >>>
 


DSPAM: bailing on error -2

 
Начать новую тему   Ответить на тему       Список форумов Postfix: ???????????? postfix, ??????, ????? ??????, ????? -> ??????? ??????
Предыдущая тема :: Следующая тема  
Автор Сообщение
drug.
???????
???????


Зарегистрирован: 26.10.2007
Сообщения: 3

СообщениеДобавлено: Пт Ноя 30, 2007 6:33 pm    Заголовок сообщения: DSPAM: bailing on error -2 Ответить с цитатой

? ???????, ??? ???? ??????, ?? ??? ??.
??? ??????? ???????????? dspam ??????? ????????? ??????:
Код:
Nov 30 18:07:00 sys-bsd dspam[16988]: bailing on error -2
Nov 30 18:07:00 sys-bsd dspam[16988]: received invalid result (! DSR_ISSPAM || DSR_INNOCENT) : -2
Nov 30 18:07:00 sys-bsd dspam[16988]: process_message returned error -2.  dropping message.


???????: FreeBSD 6.2
DSPAM ??????? ???????? ? ????????? ?????? Postfix + Cyrus-IMAP:
1. ??? ???????? ????? ? ??? ???????????? generic_maps
2. ??? ????????? ?? ????: ??? ??-unix ????????? virtual_mailbox_maps, ??? unix- ????????????? virtual_alias_maps.
3. ?????????? ? ????????????? ? sasldb.

???????????? postfix ????????:

Цитата:
queue_directory = /var/spool/postfix
command_directory = /usr/local/sbin
daemon_directory = /usr/local/libexec/postfix
sendmail_path = /usr/local/sbin/sendmail
newaliases_path = /usr/local/bin/newaliases
mailq_path = /usr/local/bin/mailq
setgid_group = maildrop
html_directory = no
manpage_directory = /usr/local/man
sample_directory = /usr/local/etc/postfix
readme_directory = no
mail_owner = postfix
default_privs = nobody
myhostname = sys-bsd.kb.local
mydomain = kb.local
myorigin = $mydomain
minimal_backoff_time = 300
maximal_backoff_time = 3000
inet_interfaces = $myhostname, localhost
mydestination = $mydomain, $myhostname, localhost.$mydomain, localhost
local_recipient_maps = hash:/usr/local/etc/postfix/local_recipients $alias_maps
unknown_local_recipient_reject_code = 550
mynetworks = 127.0.0.0/8
relay_domains =
fast_flush_domains =
smtpd_sasl_path = smtpd
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
smtpd_sasl_authenticated_header = yes
broken_sasl_auth_clients = yes
smtp_tls_security_level = may
smtpd_tls_security_level = may
smtpd_tls_auth_only = yes
smtpd_tls_CAfile = /var/spool/postfix/certs/ca-cert.pem
smtpd_tls_cert_file = /var/spool/postfix/certs/postfix-cert.pem
smtpd_tls_key_file = /var/spool/postfix/certs/postfix-key.pem
smtpd_tls_received_header = yes
smtpd_tls_ask_ccert = yes
relay_clientcerts = hash:/usr/local/etc/postfix/relay_clientcerts
smtpd_tls_loglevel = 1
tls_random_source = dev:/dev/urandom
proxy_interfaces = sys-gate.kb.local
smtp_generic_maps = hash:/usr/local/etc/postfix/generic
virtual_mailbox_domains = domain.ru
virtual_mailbox_maps = hash:/usr/local/etc/postfix/vmailbox
alias_maps = hash:/etc/mail/aliases
virtual_alias_maps = hash:/usr/local/etc/postfix/virtual
recipient_delimiter = +
virtual_transport = lmtp:unix:/var/imap/socket/lmtp
mailbox_transport = lmtp:unix:/var/imap/socket/lmtp

smtpd_helo_required = yes
strict_rfc821_envelopes = yes
disable_vrfy_command = yes
smtpd_soft_error_limit = 6
smtpd_soft_error_limit = 2
smtpd_hard_error_limit = 10
address_verify_negative_expire_time = 5d
address_verify_negative_refresh_time = 45m
address_verify_positive_expire_time = 28d
address_verify_positive_refresh_time = 7d
unverified_sender_reject_code = 550
header_checks = pcre:$config_directory/header_checks
mime_header_checks = $header_checks
message_size_limit = 3145728
smtpd_recipient_restrictions =
permit_mynetworks,
permit_tls_clientcerts,
permit_sasl_authenticated,
reject_unauth_destination,
reject_unknown_client_hostname,
reject_rbl_client dul.ru,
check_helo_access pcre:$config_directory/helo_checks,
reject_invalid_hostname,
reject_non_fqdn_hostname,
reject_unknown_hostname,
reject_non_fqdn_sender,
reject_unknown_sender_domain,
reject_unlisted_sender,
reject_unverified_sender,
reject_non_fqdn_recipient,
reject_unknown_recipient_domain,
reject_unlisted_recipient,
reject_unverified_recipient
smtpd_data_restrictions =
reject_unauth_pipelining,
reject_multi_recipient_bounce
smtpd_end_of_data_restrictions =
permit_mynetworks,
permit_tls_clientcerts,
permit_sasl_authenticated,
check_recipient_access pcre:$config_directory/dspam_checks
smtpd_etrn_restrictions =
permit_mynetworks,
reject

smtpd_banner = Com-Building LLC ESMTP $mail_name (mx.domain.ru)
smtp_always_send_ehlo = yes
smtp_helo_name = mx.domain.ru
local_destination_concurrency_limit = 2
debug_peer_level = 3


dspam_checks:
Цитата:
/./ FILTER dspam:unix:/var/run/dspam.sock


master.cf:
Цитата:
smtp inet n - n - - smtpd
pickup fifo n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
tlsmgr unix - - n 1000? 1 tlsmgr
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
trace unix - - n - 0 bounce
verify unix - - n - 1 verify
flush unix n - n 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix - - n - - smtp
relay unix - - n - - smtp
-o fallback_relay=
showq unix n - n - - showq
error unix - - n - - error
discard unix - - n - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil
scache unix - - n - 1 scache
retry unix - - n - - error
dspam unix - - n - 5 lmtp

localhost:10026 inet n - n - - smtpd
-o content_filter=
-o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
-o smtpd_helo_restrictions=
-o smtpd_client_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks=127.0.0.0/8
-o smtpd_authorized_xforward_hosts=127.0.0.0/8

?????? DSPAM (DSPAM ?????? ? ?????????? virtual_users):
Цитата:
Home /var/db/dspam
UserLog off
Notifications off
Opt out
LocalMX 127.0.0.1
MaxMessageSize 3145728
OnFail error
Debug *
DebugOpt process spam fp
TrackSources spam nonspam
ClientHost /var/run/dspam.sock
ClientIdent "sys-bsd21sEc6_t@Relay1"
DeliveryHost 127.0.0.1
DeliveryPort 10026
DeliveryIdent localhost
DeliveryProto SMTP
Trust root
Trust mail
Trust mailnull
Trust smmsp
Trust daemon
MySQLServer sys-core.kb.local
MySQLPort 3306
MySQLUser dspam
MySQLPass sp2mD
MySQLDb dspam
MySQLCompress true
MySQLSupressQuote on
MySQLConnectionCache 5
MySQLVirtualTable dspam_virtual_uids
MySQLVirtualUIDField uid
MySQLVirtualUsernameField username
MySQLUIDInSignature on

TrainingMode teft
TrainPristine on
TestConditionalTraining on
Algorithm chi-square
PValue robinson
Feature chained
Feature whitelist
Feature tb=6
ProcessorBias on
Preference "spamAction=tag"
Preference "spamSubject=[SPAM]"
Preference "signatureLocation=headers"
Preference "showFactors=off"
AllowOverride statisticalSedation
AllowOverride showFactors
AllowOverride optIn optOut
AllowOverride whitelistThreshold
FallbackDomains off
ParseToHeaders on
ChangeModeOnParse on
ChangeUserOnParse off
IgnoreHeader X-Spam-Status
IgnoreHeader X-Spam-Scanned
IgnoreHeader X-Spam-Flag
IgnoreHeader X-Spam-Yversion
IgnoreHeader X-Virus-Scanner-Result


??????????? ???????, ???????? DSPAM README, ??? ?????? ?????????? ??????:
Цитата:
$ cat /etc/mail/aliases|grep spam
spam: "|/usr/local/bin/dspamc --client --debug --class=spam --source=error"


??????????, ??? ?????????
Вернуться к началу
Посмотреть профиль Отправить личное сообщение
drug.
???????
???????


Зарегистрирован: 26.10.2007
Сообщения: 3

СообщениеДобавлено: Пн Дек 03, 2007 3:08 pm    Заголовок сообщения: Ответить с цитатой

????, ???? ????-?? ????????,???????????:
???? ?????? ???????? - ?????? ???????? ?????????? ??????????? ? README ???????????:
Цитата:

Because DSPAM learns each user's specific email behavior, it's necessary
to identify the user in order to program their specific filtering database.
This can be done in one of three ways:

The Simple Way:
If you are using the MySQL or PgSQL storage drivers, the original
numeric user id can be embedded in the signature, requiring only one
central spam alias to be necessary for the entire system. To configure
this, uncomment the appropriate UIDInSignature option in dspam.conf:
# MySQLUIDInSignature on
# PgSQLUIDInSignature on
Now all you'll need is a single system-wide alias, and DSPAM will train
the appropriate user when it sees the signature. An example of an alias
might look like:
spam:"|/usr/local/bin/dspam --user root --class=spam --source=error"
Similarly, you may also wish to have a false-positive alias for users who
prefer to tag spam rather than quarantine it:
notspam:"|/usr/local/bin/dspam --user root --class=innocent --source=error"
Note:
The 'root' user represents any existing user on the system. It is
necessary to supply a username on the commandline or DSPAM will bail on
an error, however the user will be changed internally once the signature
is read.

?? ???? ?? ????? ????? ????????????? ?????????????? ????? ?? spam-local_part@domain.ru/nonspam-local_part@domain.ru, ??????? ? ??????? ??? ????????? ??????:
Код:
spam:"|/usr/local/bin/dspam --user root --class=spam --source=error"
notspam:"|/usr/local/bin/dspam --user root --class=innocent --source=error"

? ?????????? ??? ??????????? ???????????? - uid-??, ??????????? ? ????????? DSPAM.

??? ??? ? ???? ?? ????????.
?? ???????? ?????? ???:
1. ????????? header-? ? ?????? ?????? ?? ????. ?????? - ???????? ? ???????????? ? ???? ?????????? ? ????. ????? DSPAM.
Цитата:
ParseToHeaders off
ChangeModeOnParse off
ChangeUserOnParse off

2. ????????? ????????? ? ???? ?????? (???? ? ????????? ???????/????????) - ???? ?? ????:
TrainPristine off
3. Postfix ? ???? ???????? ? ???????????? nobody, ????????????? ???? ????????:
Цитата:
Trust nobody

? ????? ???????: ???? ???????????? ????????? ? ????????? ?????? ?????? ?? ?????????? ? ??, ?? ????????? UID ?? ????????? ?? ????????.
?????????????: Postfix ????????? ???????? ???????? ? ???????????? nobody -> DSPAM ???????? ?? nobody (?????) -> ?????????? ??????? ???????????? nobody ? ???? ?????? ? ??????? virtual_users.
????????? ???? ???????? ???:
Код:
/usr/local/bin/dspam --debug --deliver=innocent --user nobody -- %u < spam.txt


????????. ??????? ??? ????? ?????? ????????: http://dspam.nuclearelephant.com/dspam-users/1524.html
????, ??? ? DSPAM ??? ?????? ????????????.

??????? ??????? ????-????.
Вернуться к началу
Посмотреть профиль Отправить личное сообщение
Andrew
???? ???? ?????...
???? ???? ?????...


Зарегистрирован: 09.04.2006
Сообщения: 45

СообщениеДобавлено: Чт Дек 20, 2007 8:39 pm    Заголовок сообщения: Ответить с цитатой

? ??? 3 ???? ????? ??? ????????? ???????? =)
?? ??????? ??? ??????? maildrop ? ?.?. ?????, ??? ???? ??? ????? ?????-?? ?????????????? ?????? ????????.

?????? ????? postfix+mysql+sasl+dspam+clamav
???????????? ? mysql ????????? ???????? ???????? postfixadmin.
??? ?????? ??? ??? ????. ???????????? ????????, ???????? dspam.
??? ??????? ????????? ?????? ?? spam-mailbox@domain ??????????? ???????? ??????, ??? ?????? ????? ???, ?? ?????????????? ???? ?? ??????, ?????? ???????? ???? ?????, ???? ?????? ???????? ???, ??? ?????. ??? ? ????? ???? ?????? ? ??????? alias, ? ?????? ????????????? 2-? ????, ??? ??? ?????????, virtual (? ????) ? ? ?????. ? ??? ??? ????????? ????????????
Вернуться к началу
Посмотреть профиль Отправить личное сообщение
Показать сообщения:   
Начать новую тему   Ответить на тему       Список форумов Postfix: ???????????? postfix, ??????, ????? ??????, ????? -> ??????? ?????? Часовой пояс: GMT + 3
Страница 1 из 1

 
Перейти:  
Вы не можете начинать темы
Вы не можете отвечать на сообщения
Вы не можете редактировать свои сообщения
Вы не можете удалять свои сообщения
Вы не можете голосовать в опросах

POSTFIX.RU: Файлы конфигурации | Документация | Download | Ссылки | Контакты












© Copyright 2005-2007, ITprofy.org
Powered by phpBB © 2001, 2005 phpBB Group
Русская поддержка phpBB