procmail
[Top] [All Lists]

Re: Recipe for Forwarding and Deleting

1998-01-31 15:37:19
At 11:13 AM 1/31/98 -0500, Trevor Astrope wrote:

Here is my situation... I have a virtual domain with one email address.
All mail to myvirtualdomain.com goes to this one address. I use fetchmail

Technical correction:  Many email addresses, one POP *mailbox*.

:0 c
* ^TO(_dot_)*user(_at_)myvirtualdomain(_dot_)com
! user(_at_)somewhereelse(_dot_)com

Look at your recipe and decipher that first line:

:0 c

Do you know what 'c' does?  It makes a COPY of the message for this recipe
to act upon -- so that the original message continues to be processed by
later recipes.  Loose the 'c' flag, and *if* this recipe matches, delivery
will be upon the ONLY copy of the message, rather than an ADDITIONAL copy
of it.

Is it possible to delete the message after it is forwarded, so it isn't
also delivered to root(_at_)mylinuxbox(_dot_)com?

Minour security recommendation -- don't use ROOT as your main userid.
Create a user account and fetchmail into it instead.  This has nothing to
do with your procmail use, just standard security of a network box.

---
 Please DO NOT carbon me on list replies.  I'll get my copy from the list.

 Sean B. Straw / Professional Software Engineering
 Post Box 2395 / San Rafael, CA  94912-2395

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