Re: filtering on Subject for one local account only?
- Carl Brewer wrote:
>I ended up using procmail as suggested (and setting procmail as SGID
> I have a user who wants a very specific filter applied to his email
> account - he wants to only receive email that has one of two strings in
> the subject line. They should start with "Token" or "Comment", so a
> crude and simple regex should do the trick. We're running Postfix 2.2
> and dovecot, and I have clamav with clamsmtp doing virus filtering on
> CentOS 5 (RHEL 5).
> Can anyone point me at a simple howto to do this for just one local
> mailbox and leave all the rest alone?
mail, which seemed necessary for it to deliver mail into
Here's my .procmailrc for the archives etc :
# we need to filter only accepting Token or Comment strings in Subject:
# ditch everything else