procmail
[Top] [All Lists]

Re: help for a newbie

2004-11-28 18:36:52
* Dallman Ross <dman(_at_)nomotek(_dot_)com> :
On Mon, Nov 29, 2004 at 09:06:45AM +1000, Troy Piggins wrote:
* ^From:.*\/[A-Za-z0-9_(_dot_)+-]+(_at_)[A-Za-z0-9_(_dot_)+-]+
* ? grep -i "$MATCH" $WHITELIST
$WHITE

So your whitelist can be the aliases file type format, or just a
list of addresses.

Bad idea, I'm afraid, Troy.  Moreover, we've discussed this about
three or four times in the last couple of months, so we're really just

Thanks for the advice Dallman.  I think the reason it works for me
(to date, anyway) is that I am just an end-user with not a very
large .aliases/whitelist file, and not many users.  I understand
that mail server admins with many users would have to be much more
precise.

I gathered from the OP's request that he is in a similar situation
to me, rather than a server admin, and that is why I posted my
recipe.  I don't even come close to knowing as much as some of you
guys about detailed regex/recipes, but when I think I can help (what
I think is a) simple end-user query wanting a simple fix, I do so.

I apologise to him if my presumption is incorrect - he can of course
take it or leave it.


With onl

Point taken.

You want at least a -w option to a whitelist file-grep, and ideally
a -x <edited>; and you want to use fgrep if you can to avoid unexpected
regexes.

I will look into it.  Expect a post if I run into trouble ;-)

Oh, and you don't need [A-Za-z] in procmail regexes unless
you're expecting to use the "D" flag on the recipe, since procmail
is case-insensitive by default.  Finally, you don't need [+-]
in domain names, as they are illegal for those (though some
local hosts have been known to use them anyway).

Really? -------------+
                     |
                     V
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

Sorry, not being a smart-ass.  Thanks for your help to both me and
OP.  You are a legend.

-- 
T R O Y  P I G G I N S
e : troy(_at_)piggo(_dot_)com

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail