Peter Burden wrote: > Thanks to everybody for all the replies to my original post. Harry's > point about > catching outbound messages was one that I hoped somebody could answer,
There's no such thing as an "outbound" message. A message may have multiple recipients, and be destined for both remote addresses and local ones. All that you need to be concerned with is whether the message came from a local user. > also assuming I write a "maildrop" like filter, Maildrop can't be used to filter messages sent to non-local addresses. You'll need to write a courierfilter. See the "MAIL FILTER IMPLEMENTATION" section of the courierfilter man page. You can use courier's "perlfilter" as a starting point, or Courier::Filter from CPAN, or courier-pythonfilter (which I wrote) as a framework for new filters. > how do I capture the AUTH > information associated with the message? Courier::Filter and courier-pythonfilter both provide functions that will locate the information. > As far as comments about the suitability of the proposal to avoid fraud, I > accept that there are plenty of ways of circumventing it, however IMHO > most of these require an in-depth understanding of the operation of e-mail > that most potential fraudsters would lack. [In fact I'm often > surprised by the > extent that the inner workings of e-mail seem such a mystery to many > in IT.] 1: No, they really don't. 2: People who are financially motivated to commit fraud will either learn how, or find someone who knows. Only people who don't care to circumvent the system will remain ignorant of how simple it is. > I'm not too sure about how to handle multi-part and MIME encoded mail, one > idea is, rather than a standard signature at the bottom of the mail, put a > standard salutation at the top (a sort of electronic equivalent of headed > notepaper). Any reactions? Don't try to find the easy way, there isn't one. You can no more blindly add text to the beginning of a message than you can to the end. I believe that you need to make the a new multipart/mixed MIME document, add all of the original message parts (you should be able to attach the existing root MIME part), and add the signature as a text/plain part at the end. pythonfilter provides an xfilter class that will help you do this, if you choose to go that way. If you don't want to figure it out, I do consulting work and could write it for you under contract. You can contact me off-list if you're interested. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ courier-users mailing list [email protected] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
