Hi, after i talk with Stefano and later noel in skype the some idea raised. Here it is:
1. Change every fastfail filter to allow more actions then reject. It
should be possible to assign socres to a handler when it match. So the
admin can react on such scores later. Something like:
<handler class="org.apache.james.smtpserver.core.filter.fastfail.DNSRBLHandler"
onCommand="RCPT">
<action> reject </action>
</handler>
or:
<handler class="org.apache.james.smtpserver.core.filter.fastfail.DNSRBLHandler"
onCommand="RCPT">
<action> +10 </action>
</handler>
2. Create an class which represent the object to store the scores in. It
should provide a HashMap with the handler as key and the score it
stores. Also methods for acess the data and modify it etc.
Something like:
int getCompleteStoredScores();
HashMap getStoredScores();
String getStoredScore(String key);
void setStoredScore(String key, int score);
void resetStoredScores();
3. Add handler/mailet/matcher to react on the score.
Maybe something like:
<handler class="org.apache.james.smtpserver.core.filter.fastfail.ScoreHandler">
<rejectScore> 100 </rejectScore>
</handler>
Any ideas etc ?
bye
Norman
signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil
