Primery antispamerskih m4
LOCAL_RULESETS
HContent-Type: $>CheckCType
SCheckCType
R$* boundary= "bound" $* $#error $@ 5.7.1 $: "554 Virus Win32.AZY"
Origin http://quanta.khu.ac.kr/~dacapo/sendmail/rulesets/quanta_spam-killer.m4
divert(0)
VERSIONID(`@(#)quanta_spam-killer.m4 0.4 (dacapo) 07/22/2001')
divert(2)
LOCAL_CONFIG
#### Headers to be checked ###################
HSubject: $>check_subject
HContent-Type: $>check_ct
HDate: $>check_date
HX-Mailer: $>check_mailer
HX-MimeOLE: $>check_ole
HMessage-Id: $>check_msgid
HTo: $>check_to
HContent-Disposition: $>check_sircam
#### If any of these fields
#### shows up, It is bogus.
HX-Spanska: $>check_happy99
HX-PMFLAGS: $>check_all
HX-Reply-To: $>check_all
HX-AD2000-Register: $>check_all
HX-AD2000-Serial: $>check_all
## Error messages definition
## Error codes refer to RFC821.
D{Msg_mailer}"553 SPAMWARE is not allowed here"
D{Msg_adv}"553 ADV mail not accepted"
D{Msg_virus}"553 Your message may contain the"
D{Msg_master}"If you have questions please email postmaster@$j."
D{Msg_date}"553 Bogus date format - SPAMMER "
D{Msg_to}"501 Bogus recipient address"
LOCAL_RULESETS
##################################################################
# quanta local rulesets v.0.3 (2001/07/22) #
# written by dacapo@quanta.kyunghee.ac.kr #
# MAP_REGEX is not needed in this version #
# report your received spam to abuse@quanta.kyunghee.ac.kr #
# for future updates of these rulesets :-) #
##################################################################
###################################################
#### Local Rulesets (dacapo, 2001/07/22) #####
###################################################
Scheck_subject
R $#error $: ${Msg_adv} - ${Msg_master}
RADV:$* $#error $: ${Msg_adv} - ${Msg_master}
RADV$* $#error $: ${Msg_adv} - ${Msg_master}
R[ADV]$* $#error $: ${Msg_adv} - ${Msg_master}
R$* $#error $: ${Msg_adv} - ${Msg_master}
R$*[±¤°n]$* $#error $: We don't accept SPAM - Go away.
RImportant Message From $* $#error $: ${Msg_virus} Melissa virus - See http://www.cert.org/advisories/CA-99-04-Melissa-Macro-Virus.html - ${Msg_master}
RRe: Important Message From $* $#error $: ${Msg_virus} Melissa virus - See http://www.cert.org/advisories/CA-99-04-Melissa-Macro-Virus.html - ${Msg_master}
RC:\CoolProgs\Pretty Park.exe $#error $: ${Msg_virus} PrettyPark virus - See http://www.symantec.com/avcenter/venc/data/prettypark.worm.html - ${Msg_master}
R¿µ»uA¸·O º¸³»´V ZHnBc $#error $: ${Msg_virus} Ecokys virus - See http://www.ahnlab.com/newvir/warn19990330.htm - ${Msg_master}
RILOVEYOU $#error $: ${Msg_virus} LoveLetter virus - See http://www.symantec.com/avcenter/venc/data/vbs.loveletter.a.html - ${Msg_master}
Scheck_ct
R$*boundary=AD_2000_PART_BOUNDARY_19990606 $#error $: ${Msg_mailer} - ${Msg_master}
R$*boundary=WC_MAIL_PaRt_BoUnDaRy_05151998 $#error $: ${Msg_mailer} - ${Msg_master}
R$+boundary="====_ABC1234567890DEF_====" $#error $: 550 ${Msg_virus} NIMDA.worm !!
### check_date, refer to RFC 822
Scheck_date
R$* Z¥BSH½G $#error $: ${Msg_date} - ${Msg_master}
R$* ´lZS¹O±¹Z¥BSH½G $#error $: ${Msg_date} - ${Msg_master}
R$+Standard Time $#error $: ${Msg_date} - ${Msg_master}
R$+Daylight Time $#error $: ${Msg_date} - ${Msg_master}
R$+AM $#error $: ${Msg_date} - ${Msg_master}
R$+PM $#error $: ${Msg_date} - ${Msg_master}
R$* $-:$-:$- $#error $: ${Msg_date} - ${Msg_master}
Scheck_mailer
RLightningMail$+ $#error $: ${Msg_mailer} - ${Msg_master}
RMailKing$+ $#error $: ${Msg_mailer} - ${Msg_master}
R $#error $: ${Msg_mailer} - ${Msg_master}
R $#error $: ${Msg_mailer} - ${Msg_master}
RMail Bomber $#error $: ${Msg_mailer} - ${Msg_master}
RThe Bat! ($+) $+ $#error $: ${Msg_mailer} - ${Msg_master}
RThe Red Spider $+ $#error $: ${Msg_mailer} - ${Msg_master}
R$+emsoft$+ $#error $: ${Msg_mailer} - ${Msg_master}
RMegaMail $+ $#error $: ${Msg_mailer} - ${Msg_master}
RDiffondiCool$* $#error $: ${Msg_mailer} - ${Msg_master}
REasy Mail$* $#error $: ${Msg_mailer} - ${Msg_master}
Scheck_ole
RProduced By Microsoft MimeOLE V(null).$* $#error $: 553 Bogus X-MimeOLE
Scheck_msgid
R $#error $: ${Msg_mailer} - ${Msg_master}
R<$-.$-.$- $u@$h> $#error $: ${Msg_mailer} - ${Msg_master}
R< $+ @ $+ > $@ OK
R$* $#error $: 553 Header Error - ${Msg_master}
# R< $-.$-.$- @ localhost > $#error $: ${Msg_mailer} - ${Msg_master}
# A§ lineAº B¤»u¸YUAPA» reject ZP´V °zh¿m°
Scheck_happy99
R$* $#error $: ${Msg_virus} Happy99 virus - See http://www.symantec.com/avcenter/venc/data/happy99.worm.html - ${Msg_master}
Scheck_all
R$* $#error $: 553 We do not accept mail from spammers - ${Msg_master}
Scheck_to
R$@ $#error $: 553 No reciepient specified -${Msg_master}
R $#error $: ${Msg_mailer} - ${Msg_master}
Scheck_sircam
RMultipart message $#error $: 550 ${Msg_virus} Sircam.worm
divert(0)
Dikij sendmail ili nuber of open TCP/IP connections
From: Valentin Nechayev (netch@lucky.net)
Date: 9 Jul 1999
V kachestve pravil'nogo recepta nado napisat': vklyuchit' HostStat i
SingleThreadDelivery. Togda poluchitsya ne bolee 1 soedineniya k odnomu
hostu odnovremenno. Bol'she odnogo - da, nado dikie patchi priveshivat'. A u
menya dejstvuet patch dlya mci.c, kotoryj razreshaet perechislit' v nekotorom
klasse te hosty, na kotorye ne rasprostranyat' takoe (sosedi po ezernetu, kak
pravilo).
A eshche ya dumayu, kak emu sdelat' analog QueueLA/RefuseLA, no ne po LA, a po
mere ispol'zovaniya VM (naprimer, zanyato 80% - idti spat'). Tol'ko vot beda -
dlya kazhdoj sistemy takie veshchi sugubo po-svoemu poluchayutsya...
From: er@sai.msu.su (E.Rodichev)
Ivan Dementiev writes:
> >
> > Moi yuzery vzyalis' posylat' zdorovye fajly putem razbieniya ih
> > na 20-30 pisem. Vot moj sendmail i otkryvaet po 20 smtp soedinenij
> |to eshche chto, vot esli k tebe budet lomit'sya shtuk 50-70 vhodnyh
> SMTP-soedinenij!!!
> > k odnomu hostu :( Moozhno li zastavit' ego, rodimogo, ne otkryvat'
> > bol'she 5 soedinenij k odnomu hostu? Ili kak eto mozhno ispravit' po
> > drugomu? V dokumentacii est' pro LoadAverage, no ne skazano nichego
> > o kolichestve otkrytyh soedinenij / zapushchennyh kopij sendmail-a.
>
> Ty by znal sol'ko ya s etim muchilsya - u menya postoyanno konchalos' 128Mb
> swap na relay1.ksu.ru, nachinalis' glyuki s nis+ i dr.
........
> Interesno, kak podobnye problemy reshayut drugie bol'shie ISP?
V sendmail.cf est' v chastnosti, takoe
# load average at which we just queue messages
O QueueLA=8
# load average at which we refuse connections
O RefuseLA=20
# work recipient factor
O RecipientFactor=30000
# deliver each queued job in a separate process?
O ForkEachJob
# work class factor
O ClassFactor=1800
# work time factor
O RetryFactor=90000
# shall we sort the queue by hostname first?
#O QueueSortOrder=priority
# minimum time in queue before retry
O MinQueueAge=30m
# Vpolne dostatochno, chtob nastroit' pod konkretnyj link and server,
# ne pribegaya k dopolnitel'nim patches.
#
# Evgeny Rodichev Sternberg Astronomical Institute
# System/Net Admin Moscow State University
# er@sai.msu.su
[Q] nuzhno sdelat' tak, chtoby sendmail vsyu ishodyashchuyu pochtu
posylal eshche i v fajl ili konkretnomu pol'zovatelyu
Mozhno startovat' sendmail s klyuchom -X imya_fajla togda v fajl imya_fajla
budet valitsya vsya vhodyashche-ishodyashchaya pochta i t.d.
Last-modified: Thu, 22 Nov 2001 10:41:06 GMT