Help - Search - Members - Calendar
Full Version: procmail
Hostony Board > General Support > Mail
artrocity
Can anyone give me some quick pointers on how to setup procmail here?
I created a .forward file but not sure what goes in it.

"|IFS=' ' && exec /usr/bin/procmail -f- || exit 75 #USERNAME"

gives me a bounce.

|/usr/bin/procmail

seems to block all the mail.

what am i missing?

my .procmail looks like this for testing...


#Preliminaries
SHELL=/bin/sh #Use the Bourne shell (check your path!)
MAILDIR=${HOME}/mail #First check what your mail directory is!
LOGFILE=${MAILDIR}/procmail.log
LOG="--- Logging ${LOGFILE} for ${LOGNAME}, "

#Whatever recipes you'll use
#The order of the recipes is significant
:0
* ^From: scam@cyberspam.com
/dev/null

# Accept all the rest to your default mailbox
:0:
${DEFAULT}
Shurik
Have you tried to put .forward and .procmail files into your root directory?
(/home/artro/ instead of /home/artro/mail).

These files must be there.
artrocity
Yep that's where i had them.
I just MV'd them to mail so they wouldn't cause any further trouble.

So what would be the proper syntax for the .forward then?

The IFS one i found on the web probably is wrong as it bounced all mail
complaining that it didnt know what to do with the
"|IFS=' ' && exec /usr/bin/procmail -f- || exit 75 #USERNAME"

and yes I replaced USERNAME w/ my username.

I'll try the other again tonight (|/usr/bin/procmail )
but i'd like something more definite from someone who is using it.

TIA ...Artrocity
Shurik
Ok, remove then the "forward" file. It seems Exim (our mail server) doesn't support "forward". It has a special file where I can point all your mail to some script. I've just copied your .procmail back to the /home/artro and set your "default' mailbox to send emails to /usr/sbin/procmail.

Please check if it is working now.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2024 Invision Power Services, Inc.
IPS Driver Error

IPS Driver Error

There appears to be an error with the database.
You can try to refresh the page by clicking here