Forum Moderators: phranque

Message Too Old, No Replies

Effect Spam Control

         

Frank_Rizzo

11:27 am on Jan 20, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm using debian Linux with Qmail and Vpopmail as a catch all address.

I'm getting lots more spam now and I'd like to deal with it.

Why does it have to be so complicated? For my desktop client (and freebie email addresses) I use mailwasher and that works a treat. But for the webserver I'm getting confused.

I added the Procmail filter to webmin but that tells me absolute nothing.

I apt-get junkfilter but reading the Readme again says nothing on how to set it up.

I spot "bouncesaying" for qmail but again, no examples of how to bounce for one certain email address.

All I want to do is to do this:

bounce all mail sent to wenmaster@mydomain.com
bounce all mail sent from @spammer1.com, @spammer2.com

How do I do it in simple terms!?

PS
Notice I have wenmaster@mydomain.com. A few years ago I deliberately put spelling mistakes in to catch spammers.

bird

11:50 am on Jan 20, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try "man procmail", "man procmailrc", and "man procmailex" in a shell, and you'll learn more about the filtering mechanism. "man bouncesaying" explains how to bounce with qmail (alternatively, you can tell procmail to give a return value of 100 back to qmail, which has the same effect).

My own .procmailrc has grown to several hundred lines over the years, so you may have some learning curve ahead of you... Just to get you started, the following should do what you're specifically asking for:

:0
* To: .*wenmaster@mydomain.com
¦ /var/qmail/bin/bouncesaying "550 No such user."

BAD_SENDERS="(spammer1¦spammer2)\.com"

:0
* $ (From¦Message-ID¦Return-Path¦Received): .*${BAD_SENDERS}
¦ /var/qmail/bin/bouncesaying "550 Go away already."

<edit>corrected "0:" to ":0"</edit>

Phil_S

12:26 pm on Jan 20, 2003 (gmt 0)

10+ Year Member



I started using a simple program called MailWasher ( hope I'm allowed to say that), do a web search for it.

Not much of a learning curve, it will filter bounce and delete unwanted mail in a few seconds. Been using it for a few weeks, and I noticed I'm getting less spam.

I can also preview email before downloading.

Now, I almost like checking my email

scareduck

1:12 am on Jan 21, 2003 (gmt 0)

10+ Year Member



[spamassassin.org ]. Try it, you'll like it.

Frank_Rizzo

11:55 pm on Jan 21, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Cheers guys. Some good ideas there.

bird

12:42 am on Jan 22, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The most promising automatic approach I have seen so far is spambayes [spambayes.sourceforge.net], and not only because it's implemented in my favourite language... ;)

hakre

12:56 am on Jan 22, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



anybody knows something for the eudora client?

Frank_Rizzo

4:04 pm on Jan 26, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



bird, I'm trying your procmail file.

Where does the .procmailrc file go?

I put it in $HOME/Mail/.procmailrc and in /etc/procmailrc/.procmailrc but neither worked.

set says

MAIL=/var/qmail/frank

but that directory does not exist.

I found a file rc in /var/mail which was a link to /usr/sbin/qmail-rc

The file contains:

-----------
#!/bin/sh

# Using splogger to send the log through syslog.
# Using dot-forward to support sendmail-style ~/.forward files.
# Using procmail to deliver messages to /var/spool/mail/$USER by default.

exec env - PATH="/var/qmail/bin:$PATH" \
qmail-start '¦dot-forward .forward
¦preline procmail' splogger qmail

----------

So I added your lines to this file to and it still doesnt work.

Sorry to be a complete novice on this. I thought the Webmin Procmail filter module would totally handle this!

bird

5:19 pm on Jan 26, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The .procmail normally goes into your home directory, although you can tell it to look somewhere else. You also need to make sure that qmail actually delivers its messages through procmail. This is normally done in the $HOME/.qmail file, with the line "¦preline /usr/local/bin/procmail".

Details may vary with your installation, but I think those are the most common default locations.