[nflug] Procmail

Cyber Source peter at thecybersource.com
Fri Jul 7 09:00:07 EDT 2006


Justin Bennett wrote:
> I admit my procmail skills aren't what they should be. So bear with me.
>
> I'm looking for a tip on how to setup procmail for a particular user 
> (.procmailrc works in their home dir) he doesn't have direct home dir 
> access, only IMAP access.
>
> I want to deliver the mail normally if it's from a certain domain, 
> else forward to another user.
>
> so:
>
> if domain != acceptable.domain
> then
> forward to justin.bennett at dynabrade.com
>
> I have it working IF domain == acceptable.domain but can't figure how 
> to negate the regular expression..
>
> see below.
> :0
> * ^From.*@acceptable.domain
> ! justin.bennett at dynabrade.com
>
Have a look at the man page for procmailex , it will show you some 
working examples, if you haven't checked that out already of course.
_______________________________________________
nflug mailing list
nflug at nflug.org
http://www.nflug.org/mailman/listinfo/nflug



More information about the nflug mailing list