Thanks Rus...

That is what I want to do. Basically, any email that comes in containing the word SPAM anywhere in the header, filtered to a specific account.
Im running postfix, so I can add a command in main.cf like so:


mailbox_command = /usr/bin/procmail -m /etc/procmailrc

The contents of my procmailrc would contain something like this:

# tell procmail we use Maildir style
DEFAULT="$HOME/Maildir/"

:0
* ^Subject:.*foo.*
/home/<user>/Maildir/spam

Would something like that work?

Im trying to set up something so any email that comes marked as spam from my mail gateway, gets filtered for review for a specific account.

Thanks for your input.

Jason

At 09:22 PM 9/26/2003 +0100, you wrote:
On Fri, 26 Sep 2003, Jason Williams wrote:

> Hello everyone...
>
> I was trying to learn procmail so I can write up my own recipes. However,
> im having a hard time joining their mailing list...It does not look like
> the list is working...
>
> I was curious if anyone had recommendations on where I could go to learn
> how to develop my recipes?
>
> For instance, im trying to setup procmail to sort all mail to a specific
> account if the headers have a certain subject in it...
>

If I understand what you want to do to say filter for the subject Foo do

:0
* ^Subject:.*foo.*
/home/username/mail/foo


This will look at any lines beginning with the word Subject and save then in /var/usernaame/mail/foo

HTH

Rus
--
w: http://www.jvds.com  | Linux + FreeBSD Servers from $15/mo
e: [EMAIL PROTECTED]        | Dedicated Servers from $119/mo
t: +44 7919 373537      | email: [EMAIL PROTECTED]
t: 1-888-327-6330       | email: [EMAIL PROTECTED]



--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list


--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to