Alan Williamson

Alan Williamson's output as a Java Champion, Blog-City Architect, BlueDragon Creator, Author, Speaker and Internet Guru

"If nothing else works, then a total pig-headed unwillingness to look facts in the face will see us through."

Archives

««May 2008»»
SMTWTFS
     1
2
3
4
5678910
11121314151617
18192021222324
25262728293031

BlueDragon Launch Date

Get reminded of when BlueDragon Open Source becomes available.


Google Groups
Subscribe to Open BlueDragon
Email:
Visit this group

Alert Email

Get a short email alert whenever a new entry is published.

Confidential, secure it's piece of cake to keep uptodate.

New release: MailCatcher the alternative Mailet Container

Published: 5:11 PM GMT, Thursday, 23 November 2006

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  

Related Stories

 

Comments (0)

Add Comment