On Sat, Sep 15, 2001 at 02:11:51PM -0400, Michael Longval wrote:
Hello,
I'm running a stock RedHat 7.1 system.
When mail comes in to the system, via Fetchmail (in a user/non-root
account) the Sendmail system is not invoking Procmail to process the mail.
2) I've created a .forward file in my home directory (the user invoking
fetchmail) :
"|IFS=' ' && p=/usr/bin/procmail && test -f $p && exec $p -Yf- || exit 75
#mlongval"
Get rid of that .forward file. You don't need it. As procmail is the LDA, you
don't need a .forward to invoke it; Sendmail is invoking it automatically.
This is of course assuming you're having fetchmail pass your incoming mail to
sendmail, and not invoking the LDA directly (and if it were, the .forward
would still be unnecessary.)
3) I've setup the .procmailrc file as such:
----
HOME=/home/mlongval
Nix that. It already knows your $HOME.
PATH=$HOME/bin:/usr/bin:/usr/ucb:/bin:/usr/local/bin:.
Nix that as well, unless it's having trouble invoking binaries it needs for
delivery (in which case you probably need to fix your real path, not just the
on ein .procmailrc)
MAILDIR=$HOME/mail # You'd better make sure it exists
DEFAULT=$MAILDIR/mbox
LOGFILE=$MAILDIR/procmail.log
I suppose it's a matter of personal preference, but I don't like to put
non-mail folder files in my $MAILDIR. I keep my log in $HOME (actually,
$HOME/proclogs, as I rotate the log daily)
LOCKFILE=$HOME/.lockmail
I'd get rid of that last one. Procmail is pretty good about figuring out what
the propler lock file name should be for the given task.
5) Right now I'm stumped, the reason I wanted to use procmail, was to
filter incoming mail into diferent mailboxes based on ^TO field and some
spam filters.
Assuming fetchmail is correctly configured, all you need is a .procmailrc
without the .forward.
--
Andrew Edelstein - andrew(_at_)pure-chaos(_dot_)com
http://andrew.pure-chaos.com
<deletes what she just wrote because it would end up in .sig files and haunt
me for years>
Sillz <sillz(_at_)userfriendly(_dot_)org>
Wed, 28 Mar 2001 18:46:48 -0800
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail