Richard wrote:
My workstation is SuSE Linux 7.0.
So's mine.
I do understand that I will need to
use fetchmail to get mail in the first place. I know what to do with
that. It's just a simple basic ruleset for forwarding to my
workstation with procmail that I don't understand.
OK, here's what I have. For completeness, my .fetchmailrc contains a
line that looks like this:
poll MY-SERVER protocol pop3 username MY-USERNAME fetchall
My login on the mail server matches the login on my workstation
The sendmail configuration was pretty close to the default one, but I
ended up reinstalling 8.9.3 because of problems. I believe SuSE
enables FEATURE(`local_procmail') by default, but even if you've
turned it off, you can make procmail work using .forward, per the
manpage you've already read.
I look forward to
being able to write recipes for autoreplies and dropping spam into a
large black hole from where it never returns :))
[...]
I'm sure that procmail is much easier to configure. Just a case of
getting some help initially.
Initially, you don't have to do anything at all. Mail should just
come as it currently does. Then, to try something! Execute this:
cd $HOME
mkdir Mail
mkdir Mail/spam
mkdir Mail/backup
Create this file
and put it in .procmailrc in your home directory. Make sure that
neither your home directory nor .procmailrc is group-writable or
world-writable.
################################################################
SHELL=/bin/sh # Be sure this exists! On SuSE 7.0, it should.
MAILDIR=$HOME/Mail # Make it match the "mkdir" you did earlier
NL = "
"
# Insert the "backup" recipe (from procmailex(5)) here
# Rule 11: if "authenticated sender" and not pegasus then spam
:0
* ^Comments:.*Authenticated *Sender *is
* !Mailer.*pegasus
{
EXITCODE=67 # EX_NOUSER from /usr/include/sysexits.h
LOG="rule 12, sez authenticated but isn't pegasus EX_NOUSER$NL"
LOGABSTRACT=y
:0
spam/.
}
################################################################
Now send yourself something, and then take a look in the Mail/backup/
directory. Something should be there!
Send yourself a message with "Comments: Authenticated Sender is xxxx"
in the header (but not from a "pegasus" mailer) and see if it ends up
in $HOME/Mail/spam/ .
If confused, turn on VERBOSE and see what the logfile says.
And do take a look at http://www.procmail.org/jari/pm-tips.html
cheers,
--
Neither I nor my employer will accept any liability for any problems
or consequential loss caused by relying on this information. Sorry.
Collin Park Not a statement of my employer.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail