de.malowa.suggestions.pass
Class PossibleMTARule

java.lang.Object
  extended by de.malowa.suggestions.pass.PossibleMTARule
All Implemented Interfaces:
PassRule

public class PossibleMTARule
extends java.lang.Object
implements PassRule

Lets pass mails which seem to come apparently from real MTAs. If the sender's hostname starts with 'mail', 'smtp', 'mo-p' or 'mx' and some numbers, one can be sure that this is a mail server. To be sure that this is no fake, the mail only pass at second delivery attempt.

Author:
Marcel Lohmann

Constructor Summary
PossibleMTARule()
           
 
Method Summary
 boolean shouldBeWhitelisted(SMTPInformation info, MailHistory history)
          Implementation must return true if the current delivery attempt should bypass the greylist delay.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PossibleMTARule

public PossibleMTARule()
Method Detail

shouldBeWhitelisted

public boolean shouldBeWhitelisted(SMTPInformation info,
                                   MailHistory history)
Description copied from interface: PassRule
Implementation must return true if the current delivery attempt should bypass the greylist delay. One can use the SMTP session information and the past history for making a decision.

Specified by:
shouldBeWhitelisted in interface PassRule
Parameters:
info - information of current SMTP session
history - history of past SMTP sessions
Returns:
true if the attempt should bypass greylisting
See Also:
PassRule.shouldBeWhitelisted(de.malowa.greylister.SMTPInformation, de.malowa.greylister.MailHistory)