FriendlyGreeting is Expanding

Ken Rice krice at SERVERSANDSOLUTIONS.COM
Fri Nov 15 16:06:20 GMT 2002


On Thu, 14 Nov 2002 10:25:28 +0100
Remco Barendse <mailscanner at BARENDSE.TO> wrote:

> Just wondering though, you have included what is in your ssjunk.txt
> file but what do you have in the junksubs.txt file?

ssjunk.txt is for a word or phrase appearing anywhere in the Subject:
junksubs.txt is for word or phrase or characters that begins (MUST begin) the Subject:

My junksubs.txt only includes this:
ADV

> Also are the dots between the words really necessary, and will
> sendmail treat the subjects and texts in the e-mails case insensitive?

case-insensitive
dots = spaces in the phrase

a portion of ssjunk.txt:
add.inches
chance.of.a.lifetime
don't.just.dream
fu*k
*enis
p*rn

The stars are literal, I didn't edit the above. I have 351 entries in that file,
can't catch all, but many. I only have 200 users but about 100 mailing lists, and it helps.
(Just couldn't block "cash" when the CFO tries to email the CEO "Cash Statements"...)

The tail of our sendmail.mc:

MAILER(smtp)dnl
MAILER(procmail)dnl
LOCAL_RULESETS
F{JunkSubs} /etc/mail/junksubs.txt
F{SSJunk} /etc/mail/ssjunk.txt

HSubject:       $>Check_Subject

SCheck_Subject
R$={JunkSubs}$* $: NMJUNKSUB
R$* $={SSJunk} $*       $#error $: NMJUNKSUB
R$* NMJUNKSUB $*        $#error $: "5.7.1 Rejected"

Rather than bounce all these back, I'll probably let our people see the ssjunk.txt list, although
some will be offended, and then change the above to DISCARD. But we're then taking a chance
of throwing away and not notifying a sender that we won't accept their email based on what they
type into the Subject:. And that would not be polite nor proper (or maybe too bright on our part)
 to someone who isn't that familar with English phrasing/grammar,
including the native West Virginians, Marylanders and Pennsylvanians here,
and myself somedays of course.

Apologies to the list if this is off-topic.

Ken Rice
SysAdmin
The Library Corporation



More information about the MailScanner mailing list