View Full Version : SPAM filters / Email Filters
Shark
04-17-2009, 07:34 PM
We've been trying to use the "Block all e-mail containing the word" filter for things like:
Ink & Toner
Save up to 60% off
Unfortunately using some of the special characters like & and % do not work. We even tried to edit the file directly, /etc/virtual/domain/filter.conf and tried things like & and \& but it still doesn't work.
Any help would be appreciated, thanks for your time,
Dave~
nobaloney
04-18-2009, 02:25 PM
The filter is implemented as a perl script. If DirectAdmin sanitizes input before sending it, then they'll have to make a change. If not, try reading up on perl regular expressions (http://www.troubleshooters.com/codecorn/littperl/perlreg.htm).
Jeff
DirectAdmin Support
04-19-2009, 02:28 AM
I'll have to check to see if those cases are being escaped correctly. If my memory serves me correctly, I've only escaped the \ and $ characters.
John
Shark
04-22-2009, 01:14 PM
Thanks for the feedback. I have read through Jeff's suggestion and it looks like it will take some time to digest. I tried a couple of things on that site but neither worked.
John, those do work but I haven't found any other characters that also work. Thanks for looking into this!
% and & are used a lot in spam.
Dave~
Dravu
04-22-2009, 02:30 PM
You went about it right. Using the backslash before a symbol is supposed to escape it. I think the problem is though, that all backslashes are escaped before the line is read. So this:
\&
is turned into this:
\\&
and so your method becomes uneffective. You'll have to have DA fix this as I don't think there's anything you can do.
Shark
04-22-2009, 02:51 PM
Thanks Dravu,
I suspected as much. Incidentally, if I use
\&
I just get \ in the filters.
So 'Ink \& Toner' just becomes
Ink \
Dave~
floyd
04-24-2009, 06:49 AM
Thanks Dravu,
I suspected as much. Incidentally, if I use
\&
I just get \ in the filters.
So 'Ink \& Toner' just becomes
Ink \
Dave~
Have you tried entering \\& or \\\&
Shark
04-24-2009, 09:41 AM
Hey floyd,
Thanks for the idea. Still no luck,
\\& becomes \\
\\\& becomes \\\
Thanks for your reply though.
Dave~
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.