procmail
[Top] [All Lists]

Re: few questions on procmail

2001-01-27 18:47:12
I'm sure most of this is covered in the documentation and/or man
pages, but I'll give some quick answers.

1)  How would you find the path to the procmail program?  On the Digiweb
system, what is the correct path to procmail?

% which procmail

2)  What is the purpose of the .forward file when using procmail to filter
email?

.forward is used to tell the mail delivery program to forward the
mail.  It often has an email address for forwarding, but can have a
pipe to another program.  procmail can be used as the pipe in order
to sort incomming mail.

3)  What would the correct .forward file look like?  What would the
permissions have to be for procmail to work correctly?

I know that's *well* documented.

Depends on the mail delivery agent.  Check documentation on your
particular system.


4)  What are the exact effects of the following lines when found in a
.procmailrc file ?

:0 c
* (^TO)(admin|alan|webmaster|support)@
! person(_at_)emails(_dot_)com

forward a copy of all mail for admin(_at_)*, alan(_at_)*, etc to 
person(_at_)emails(_dot_)com

:0:
* ^FROM.*listsrv*
/dev/null

Anything with listsrv is flushed into /dev/null.  (it dies)

5)  What steps you would have to go through to get procmail to log to a file
so that you can log what emails have been parsed?

LOGFILE=/some/path/procmail.log


Again, I'm sure most of this is well documented, please take the
time to look it up.

Matt
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>