On 4/28/09 11:34 AM, Karsten Bräckelmann wrote:
DROPPRIVS=yes
procmail is being run on behalf of the recipient.
Makes sense, any way to make sure the log is writeable other that to
put all the users in a group?
LOGFILE=/var/log/procmail.log
VERBOSE=yes
LOGABSTRACT=all
MAILDIR is not set, so it defaults to $HOME.
How does this apply for doing Spamassassin globally?
Does your "main offsite user" even have a $HOME? What user is this being
run as? Check its home...
Yes, but all mail goes to /var/spool/mail. Each user has a file there
under their name.
:0fw
| /usr/bin/spamc
# Mail that is very likely spam (>15) can be dropped on the floor.
# Move the # down one line to drop it.
# Note that dropping mail on the floor is a *bad*
# idea unless you really, really believe no false positives will
# have a score greater than 15.
SPAMFOLDER=spam
:0:
* ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
#/dev/null
almost-certainly-spam
This would deliver in *mbox* format into $MAILDIR/almost-certainly-spam
:0 w :$SPAMFOLDER/.lock
* ^X-Spam-Status: Yes
$SPAMFOLDER/.
Here you specify *MH* format, delivering into $MAILDIR/spam/
Well I just copied from an article. How do I change it for mbox?
No spam is going to the spam file in /var/spool/mail although the main
offsite user did have a .lock . I even dropped the level from 8 to 5 .
The main offsite user is being flooded and sees all the spam on his
phone. I even rebooted the server (Fedora Linux Core 6) last night.
Also, what ownership should the logfile(procmail.log) have? I did 660
and tried mail.mail and it still complains in the maillog that it cannot
write to the logfile.
procmail is not being run as user mail. See DROPPRIVS in man procmailrc.
Will do.
You should sort out *where* to deliver, and what *format* to use. Also
it seems the user procmail runs as is not allowed to write to the
delivery destinations -- and/or does not have a $HOME.
Sendmail with mbox. As I stated, it was working just for rewritting the
subject. How do I set procmail to run as mail or whatever. This is
unclear to me. I want this to work globally, all spam to the same file.
You will see the failed delivery attempts and falling through to the
next recipe / default mailbox in the procmail logs, once they are
writable...
Still do not understand how to do that.
Thanks for the help,
Robert:-)