>The logic that I will soon be putting into my "courierperlfilter"
>is something like this (pseudo-code):
>
>  if address in ( <whitelist> )
>     accept message
>  else if envelope-domain != sender-domain
>     reject messasge
>  else if envelope-domain in ( hotmail.com excite.com [ etc ... ] )
>     reject message
>  endif

I presume the last "else if" in the pseudocode above should be:

   else if envelope-domain in ( <blacklist> )

Also, you need a default action in the pseudocode. I believe the default
action should be to accept the message at the MTA level, unless I'm missing
something. Accepting the message by default would then make it unnecessary
to check the whitelist. In its entirety, the pseudocode then becomes:

  if envelope-domain != sender-domain
     reject message
  else if envelope-domain in ( <blacklist> )
     reject message
  else
     accept message
  endif

What do you think?

 - wolf -
_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users

Reply via email to