alanwilliamson

New release: MailCatcher the alternative Mailet Container

MailCatcher, the Apache Mailet Container, has just been released under RC1.  This release brings a number of smaller bug fixes and improved error handling.

One of the big additions to this implementation is the additional PreFilterMailInterface.  One of the major problems with the Mailet API in its present form, is that the server has to accept the full email before you can decide whether or not you want the email.

From a spam point of view this is far from ideal.  The spammer will have believed their message has been successfully sent and since no immediate error messages was presented, they will no doubt try and upload even more spam to you.   MailCatcher introduces a hook that you can make decisions as to whether or not you want the incoming email very quickly.  By implementing the PreMailFilterInterface you can easily reject email you don't want.

public interface PreMailFilterInterface {

/*
* Called when a MAIL FROM: command is issued.
*
* If return FALSE, then the application denies this request
*/
public boolean acceptMailFrom( InternetAddress from );


/*
* Called when a RCPT TO: command is issued.
*
* If return FALSE, then the application denies this request
*/
public boolean acceptMailTo( InternetAddress to );

}

In addition to this, MailCatcher introduces a new BlackList filter, that will reject emails from certain IP addresses based on a file.  Again, this is an interface that can be implemented as a database lookup. MailCatcher ships with a File based blacklist filter.

Download MailCatcher here  


 

Recent Cloud posts

Recent JAVA posts

Latest CFML posts


 
Site Links