PDA

View Full Version : Global mail filter settings with a variable for the username


cjcox
04-12-2006, 02:46 PM
FQ support didn't have an answer to this... so I thought I'd try here.

I would like to use a common Custom Filter (based on the Simple one) and adjust the conredirect to send to username-spam@whatever. My domain has two email addresses for each user, one is the spam address. Right now I have to manually configure new users via CNC (which is ok.. but not very speedy and obviously prone to human error). If I could somehow tap into a variable or something that understands the user, I could have something like conredirect ${username}-spam@whatever so I wouldn't have to make so many user specific changes and I could just use a global setting.

Anyone done something like this? Is there a way to do this outside of the norm from FQ?

Thanks,
Chris

cindik
04-12-2006, 03:29 PM
Can you use the Delivered-To: field?

cjcox
04-12-2006, 03:43 PM
Uh... not sure...

What I have is a Simple Filter like so:

condredirect cjcox-spam@theendlessnow.com sh -c '822field subject | grep -qif "/big/dom/xtheendlessnow/badsubjs2.txt"'

I would like the "cjcox" part to be a variable so I could set up a global Custom Filter and have the right username filled in automatically.

I'm doing this inside of CNC, but would welcome anything outside of CNC (I prefer something I can automate, etc).