Forum Moderators: phranque
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.
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>
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
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!
Details may vary with your installation, but I think those are the most common default locations.