LINUX.ORG.RU

Сообщения johnf777

 

Ошибка при создании sendmail.cf

Форум — General

При создании файла sendmail.cf из файла sendmail.mc мне выдается такая ошибка(ки) :

./DK_newfirst.cf: line 127: readcf: map arith: class arith not available
./DK_newfirst.cf: line 273: DaemonPortOptions parameter "Name=MTA" unknown
./DK_newfirst.cf: line 274: DaemonPortOptions parameter "Name=MSA" unknown
./DK_newfirst.cf: line 274: DaemonPortOptions parameter "M=E" unknown
Warning: .cf version level (9) exceeds sendmail version 8.9.2 functionality (8)

Система FreeBSD 3.1
Привожу sendmail.mc:
divert(-1)

divert(0)

include(`../m4/cf.m4')
VERSIONID(`$Id Exp$')


OSTYPE(bsd4.4)
FEATURE(use_cw_file)
define(`confCW_FILE',/etc/sendmail.cw)
MAILER(local)
MAILER(smtp)
FEATURE(relay_entire_domain)
RELAY_DOMAIN_FILE(`/etc/sendmail.cw')
FEATURE(always_add_domain)
FEATURE(allmasquerade)
FEATURE(masquerade_entire_domain)
FEATURE(masquerade_envelope)
MASQUERADE_AS(dk.siberia.net)
MASQUERADE_DOMAIN_FILE(`/etc/sendmail.cw')

FEATURE(dnsbl, `bl.spamcop.net', `"550 Mail from " $&{client_addr} " rejected - see bl.spamcop.net"')
FEATURE(dnsbl, `cbl.abuseat.org', `"550 Mail from " $&{client_addr} " rejected - see cbl.abuseat.org"')
FEATURE(dnsbl, `dnsbl.njabl.org', `"550 Mail from " $&{client_addr} " rejected - see dnsbl.njabl.org"')

###################################################################
####SPAM-Filter with http://linux.ufaras.ru/regex.html#comments####
###################################################################

LOCAL_CONFIG
# Pravila iskluchenia

Krelays regex -a@MATCH ^(mail|relay|mx|smtp|mta).*[0-9]*(\..*){2,}
Kexdoms regex -a@MATCH \.(dk\.siberia\.ru|hotmail\.com|datakrat\.e4u\.ru|ngs\.ru|rambler\.ru|yandex\.r u|mail\.ru)$
Kournet1 regex -a@MATCH 10\.5\.[0-9]{1,3}\.[0-9]{1,3}

# Pravila block

Kblock1 regex -a@MATCH ([0-9]{1,3}[._x-]){4}
Kblock2 regex -a@MATCH ([0-9]+[._x-]){2,}.*(\..*){2,}
Kblock3 regex -a@MATCH [0-9a-f]{8,}(\..*){3,}
Kblock4 regex -a@MATCH [0-9].*(dsl|dial|dynamic|static|ppp|pool|client|user|dhcp|gprs).*(\..*){2,}
Kblock5 regex -a@MATCH (dsl|dial|dyn|static|ppp|pool|client|user|dhcp|gprs|ip|vpn|nat)[a-z_-]*[0-9]+.* (\..*){2,}
Kblock6 regex -a@MATCH (vectranet\.pl|mediating\.barrier\.volia\.net)$

LOCAL_RULESETS
SLocal_check_relay

# propusk coedinenia so svoei podseti

R$* $: $(192.168.10.0 $&{client_name} $)
R@MATCH $@ OK
R$* $: $(192.168.100.0 $&{client_name} $)
R@MATCH $@ OK


# vipolnaiem razreshenie imeni clienta

R$* $: < $&{client_resolve} >
R<TEMP> $#error $@ 4.4.0 $: ?"450 Temp. (dns rule 1). Cannot resolve PTR for " $&{client_addr}
R<FORGED> $#error $@ 5.7.1 $: ?"550 Denied (dns rule 2). IP name forged " $&{client_name}
R<FAIL> $#error $@ 5.7.1 $: "550 Denied (dns rule 3). IP name lookup failed " $&{client_name}

# ostavshiesa pravila-iskluchenia
R$* $: $(relays $&{client_name} $)
R@MATCH $@ OK
R$* $: $(exdoms $&{client_name} $)
R@MATCH $@ OK

# block coedinenia soglasno pravilam block
R$* $: $(block1 $&{client_name} $)
R@MATCH $#error $@ 5.7.1 $: "554 Bad hostname for mailserver: " $&{client_name} " (regex rule 1)"
R$* $: $(block2 $&{client_name} $)
R@MATCH $#error $@ 5.7.1 $: "554 Bad hostname for mailserver: " $&{client_name} " (regex rule 2)"
R$* $: $(block3 $&{client_name} $)
R@MATCH $#error $@ 5.7.1 $: "554 Bad hostname for mailserver: " $&{client_name} " (regex rule 3)"
R$* $: $(block4 $&{client_name} $)
R@MATCH $#error $@ 5.7.1 $: "554 Bad hostname for mailserver: " $&{client_name} " (regex rule 4)"
R$* $: $(block5 $&{client_name} $)
R@MATCH $#error $@ 5.7.1 $: "554 Bad hostname for mailserver: " $&{client_name} " (regex rule 5)"
R$* $: $(block6 $&{client_name} $)
R@MATCH $#error $@ 5.7.1 $: "554 Bad hostname for mailserver: " $&{client_name} " (regex rule 6)"

johnf777
()

RSS подписка на новые темы