Kevin Murphy wrote:

Understood. Obviously, the more important part of my request was how to block / reject / bounce messages based on attachment attributes. Whether or not the message goes out or is received is of little importance to me at this point.

You have two options that are worth pursuing:
1) Write a courierfilter that scans the message for offending attachments and reject those messages during the delivery. This method has the advantage of sending notice of what you're doing to persons who legitimately attempted to email content that you're banning by giving an error message to the sending server which will be emailed to the user.


2) Process the message using maildrop. In this case, you will have to avoid ever sending a message back to the "sender", since most of the messages that you want to block won't have a valid sender (or at least, not a correct one). You'll want to either simply drop the message silently (which isn't that good), or notify the recipient that the message was dropped, and let him know how he might actually receive such a message. Notifying the recipient is better than being silent, but much worse than rejecting the content with a courierfilter because during virus storms, your users are going to get a lot of worthless notices that you blocked a virus destined to them.

Clearly, the former is a better option. You should be able to accomplish what you want by starting either with Courier's perlfilter or my pythonfilter.



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to