73blazer wrote:
> I've been searching around, and I can't find anything relavent.
> I'm new to sendmail language, and run a small family webserver/mailserver.
>
> I wish to implement and per-user blacklist, that is if UserA says he
> doesn't want to recieve mail from address spam@spam.com or domain
> spam.com, I don't want his blacklist to block mails going to UserB.
>
> Orginally, I had just been adding to access map, but that affects
> everybody. One family member has blacklisted monster.com because he's
> sick of getting emails from them, an another brother has complained his
> email from monster bounced. Glad it wasn't a job offer!
>
> In general, this server doesn't recieve much spam, and I don't want the
> hassle of 40 hours of reading to implement a full-scale spam solution,
> I'm prettysure sendmail can do what I want it to with the rulesets, but
> my attempts thus far have been futile.
>
> Can anybody point me in the right direction here?
>
> Thanks for any advice you can give me.
Strictly speaking, this is not really a sendmail issue - sendmail is
an MTA that philosophically stays out of the business of what's in
the email payload or who it's from. It does have some limited
abilities in this area, primarily in getting rid of stuff that
is not protocol conformant or that is trying to swamp your system.
See these options for your access file:
GreetPause
ClientRate
ClientConn
However, a variety of tools work in harmony with sendmail to thwart
spam. One of the best combinations out there is MailScanner working with
SpamAssassin:
http://www.mailscanner.info/
In and of itself, this (I don't believe) will give you per-user
blacklisting (I could be wrong - I've never tried that, and MailScanner
has pretty sophisticated rule-based stuff you possibly could use for
this purpose, I dunno). For that, many people recommend procmail:
http://pm-doc.sourceforge.net/
Although sendmail itself does not attempt to meddle with email
payloads or scan source addresses, it works very nicely with
so-called "blackhole lists". Look at the 'dnsbl' feature
described at:
http://www.sendmail.org/m4/features.html
This should be a pretty good start. For the record, I use only
MailScanner, SpamAssassin, and clamav (for virus suppression),
and they work marvelously, so I've not bothered fiddling with
per user blacklisting myself. If I had to, I'd look into integrating
procmail into that mix. MailScanner is an excellent general purpose
"harness" for doing these sorts of things, and is probably the first
place to get started.
HTH,
----------------------------------------------------------------------------
Tim Daneliuk
tundra@tundraware.com
PGP Key:
http://www.tundraware.com/PGP/