Subject: Re: Anyone got a particularly nice sendmail.cf hack set?
To: None <seebs@plethora.net>
From: Andrew Brown <atatat@atatdot.net>
List: netbsd-help
Date: 04/28/1999 17:42:35
>>do you want mine?  i use rbl and /etc/access.db and relay_based_on_mx.
>>once i converted to using m4, i've really been quite the
>>proselytizer...
>
>Yeah, it really does help.

there ya go then!  :)

>>VERSIONID(`@(#)generic-bsd4.4.mc	8.6 (Berkeley) 3/13/98')
>>OSTYPE(bsd4.4)dnl
>>DOMAIN(generic)dnl
>>FEATURE(rbl)dnl
>>FEATURE(access_db,hash -o /etc/access)dnl
>>FEATURE(blacklist_recipients)dnl
>>FEATURE(masquerade_envelope)dnl
>>FEATURE(relay_based_on_MX)dnl
>>define(`confPRIVACY_FLAGS', `goaway')dnl
>>define(`confSMTP_LOGIN_MSG', `$j Sendmail $v/$Z says it''`s $b [NO UBE/NO UCE WELCOME HERE]')dnl
>>define(`confCR_FILE', `/etc/sendmail.cr')dnl
>>MAILER(local)dnl
>>MAILER(smtp)dnl
>
>What, no _JUNK_IP_RULES_?  (I'm very proud to find that my crude first attempt
>at adding a feature to sendmail got standardized)

junk ip rules?  what are they?  if you mean being able to declare ip
addresses or blocks (only "classfully") as invalid, you can do that
via the access database (*not* the microsoft product :).  just put
something like

131.107		REJECT

in your access database and you won't get any more mail from
microsoft.  well...less anyway.  :)

>If you don't mind my asking... What does 'dnl' at the end of a line do?  I
>never have understood m4.

dnl means delete to newline.  it deletes everything from itself to the
next newline.  i find that cf files contain less blank lines if i do
this.  i don't like too many blank lines.

-- 
|-----< "CODE WARRIOR" >-----|
codewarrior@daemon.org             * "ah!  i see you have the internet
twofsonet@graffiti.com (Andrew Brown)                that goes *ping*!"
andrew@crossbar.com       * "information is power -- share the wealth."