>>
>>Как быть? В чем моя ошибка?
>
>покажи mc-файл MAILER(local)dnl
MAILER(smtp)dnl
LOCAL_CONFIG
#For full log to maillog
D{ME_Check}1
Ksyslog syslog
Kstorage macro
KDenied_IP hash /etc/mail/Denied_IP
KNOSPAM hash /etc/mail/nospam_relays
##################### SSSSSSSSSSSs
KNOSPAM01 regex -a@MATCH .*S0-OTT-XSMTP.*.NRCan.gc.ca.*|web.*mail.yahoo.com|umail.mtu.ru|mx0.mtu.ru|muan.mtu.ru|btr0x1.rz.uni-|.+ufanet.ru| mail2.100mb.net|ex
KSPAM7 regex -a@MATCH [0-9]+[._-]+[0-9]+[._-]+.*\[.+\]
KSPAM8 regex -a@MATCH ppp|customer|dhcp|dial|cable|modem|spool|adsl|dynamic
##################### SSSSSSSSSSS
KChMId regex -n -a@NOTMY mydomain\.ru
###30.10.06
KCH1 regex -a@YES messagelabs|outblaze|check1check|mindspring|bigfoot|funnymail|niagara|bellsouth.net|tiscali.it|wanadoo.fr|nic.*olastse.(com|net)|videotron.c
KCH2 regex -a@YES 216.200.145.37|4.79.181.14|sunrise.ch|videotron.ca|earthlink.net|netvision.net|user.msu.edu|guadalupano.com|chello.nl|midco.net|irex.ru|gmx.
KChHeader sequence CH1 CH2
###
LOCAL_RULESETS
SLocal_check_relay
R$* $: $(NOSPAM01 $&_ $)
R@MATCH $@ OK
R$* $: $(SPAM7 $&_ $)
R@MATCH $#error $: 553 Sorry, Your relay looks like SPAM7-relay: $&_. If not, please contact the via another relay-ip.
R$* $: $(SPAM8 $&_ $)
R@MATCH $#error $: 553 Sorry, Your relay looks like SPAM8-relay: $&_. If not, please contact the via another relay-ip.
R$* $: $&{client_addr}
R$-.$-.$-.$- $: $(Denied_IP $1.$2.$3.$4 $)
RDISCARD $#error $: 553 We get a lot of SPAM9 from your relay-ip: $&{client_addr}. If you are not a spamer, please contact the via a
##################################################
# http://www.softerra.ru/freeos/19480/page1.html #
##################################################
HX-Mailer: $>CheckMailer
HX-Server: $>CheckMailer
SCheckMailer
RAdvanced Direct Remailer $* $#error $@ 5.7.1 $: "554 Spam (ADR)"
RAdvanced Mass Sender $* $#error $@ 5.7.1 $: "554 Spam (AMS)"
RSpammer $* $#error $@ 5.7.1 $: "554 Spam (Spammer)"
R$* Bomber $* $#error $@ 5.7.1 $: "554 Spam (Bomber)"
RMega-Mailer $* $#error $@ 5.7.1 $: "554 Spam (Mega-Mailer)"
RMMailer $* $#error $@ 5.7.1 $: "554 Spam (MMailer)"
RMailer $* $#error $@ 5.7.1 $: "554 Spam (Mailer)"
RLigra Mailer $* $#error $@ 5.7.1 $: "554 Spam (Ligra Mailer)"
RDynamic Opt-In Emailer $* $#error $@ 5.7.1 $: "554 Spam(Dynamic Opt-In Emailer)"
R$* Group Spamer $#error $@ 5.7.1 $: "554 Spam (WE Group Spamer)"
RMail Sender $* $#error $@ 5.7.1 $: "554 Spam (Mail Sender)"
RMail Service $* $#error $@ 5.7.1 $: "554 Spam (Mail Service)"
RMailloop $* $#error $@ 5.7.1 $: "554 Spam (Mailloop)"
RPersMail $* $#error $@ 5.7.1 $: "554 Spam (PersMail)"
RLK SendIt $* $#error $@ 5.7.1 $: "554 Spam (LK SendIt)"
RWC Mail $* $#error $@ 5.7.1 $: "554 Spam (WC Mail)"
RZUBA ZUB $* $#error $@ 5.7.1 $: "554 Spam (ZUBA ZUB)"
RMailList Express $* $#error $@ 5.7.1 $: "554 Spam (MailList Express)"
RCaretop $* $#error $@ 5.7.1 $: "554 Spam (Caretop)"
RMailer Signature $#error $@ 5.7.1 $: "554 Spam (Mailer Si)"
Rnone $#error $@ 5.7.1 $: "554 Spam (none)"
RPG-MAILINGLIST $#error $@ 5.7.1 $: "554 Spam (PG-MAILINGLIST)"
R$* advcomtest $* $#error $@ 5.7.1 $: "554 Spam (advcomtest)"
Ryo yo mail $#error $@ 5.7.1 $: "554 Spam (yo yo mail)"
RZanziMailer $* $#error $@ 5.7.1 $: "554 Spam (ZanziMailer)"
# Настоящий Outlook имеет версию вида: 5.0.23123244
RMicrosoft Outlook Express 5.0 $#error $@ 5.7.1 $: "554 Spam (Microsoft Outlook Express 5.0)"
RVersion 5.0 $#error $@ 5.7.1 $: "554 Spam (Version 5.0)"
# Заблокируем все мейлеры с названием только из одного слова:
Rnethack $@ OK
RZ-Mail-SGI $@ OK
RDipost $@ OK
RSquirrelMail $@ OK
R$- $#error $@ 5.7.1 $: "554 Spam (one-word mailer)"
# Заблокируем письма с пустым заголовком
R$* $: < $1 >
R< > $#error $@ 5.7.1 $: "554 Illegal header (empty header)"
R$* $@ OK
HTo: $>CheckTo
HCc: $>CheckTo
HMessage-ID: $>CheckMessageID
# проверим поле To на "undisclosed-recipients;" или "undisclosed recipient"
# комбинации могут быть практически произвольными.
SCheckTo
R$*Recipient$* $#error $@ 5.7.1 $: "554 Unspecified Mailbox ID"
R$*Undisclosed$* $#error $@ 5.7.1 $: "554 Unspecified Mailbox ID"
#проверим правильность формата поля Message-ID (оно должно быть в формате идентификатор@домен).
SCheckMessageID
# Record the presence of the header MessageId
R$* $: $(storage {MessageIdCheck} $@ $1 $) $1
R< $+ @ $+ > $@ OK
R$* $#error $: "553 Header Error 1: Bad Message ID: $&{MessageIdCheck}"
##Настройки от 30.10.06 Проверяет все received для выявления спамерских подсетей
HReceived: $>+CheckReceived
H*: $>+CheckHeader
SCheckHeader
R$* $: $(ChHeader $&{currHeader} $)
R@YES $#error $: "553 Bad Header 1: We get a lot of spam from your relay-ip. If you are not a spamer, please contact the
# Record the presence of the header Received
SCheckReceived
R$* $: $(storage {ReceivedCheck} $@ OK $) $1
R$* $: $(ChHeader $1 $)
R@YES $#error $: "553 Bad Header 2: We get a lot of spam from your relay-ip. If you are not a spamer, please contact the via anot
R$* $@ OK
###Отлуп с единственным Received
R$* $: $(storage {ReceivedCheck} $@ OK $) $1
HX-MIMEOLE: $>+CheckMIMEOLE
HX-MimeOLE: $>+CheckMIMEOLE
SCheckMIMEOLE
R$*Microsoft Exchange$* $: $(storage {ME_Check} $@ 0 $)
Scheck_eoh
R$* $: <$&{ME_Check}>
R$* $: $(storage {ME_Check} $) $1
R<0> $@ OK
R$* $: < $&{ReceivedCheck} >
R$* $: $(syslog $&{ReceivedCheck} $1 $) $1
R$* $: $(storage {ReceivedCheck} $) $1
R< $+ > $@ OK
#Разрешаем также почту из нашей локальной сети:
R$* $: $&{client_addr}
R $* $=R $* $@ OK
# Разрешаем почту, прошедшую smtp-авторизацию:
R$* $: < $&{auth_authen} >
R< $+ > $@ OK
#Разрешаем также почту из сетей, перечисленных в /etc/mail/nospam_relays:
R $-.$-.$-.$- $: $(NOSPAM $1.$2.$3.$4 $:$1.$2.$3 $)
R@MATCH $@ OK
R $-.$-.$- $: $(NOSPAM $1.$2.$3 $:$1.$2 $)
R@MATCH $@ OK
R $-.$- $: $(NOSPAM $1.$2 $)
R@MATCH $@ OK
# Во всех остальных случаях блокируем письмо:
R$* $#error $: "553 You are not a local user and you cannot send a letter to ."