DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23584>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23584

Need an optional SMTP AUTH

[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From [EMAIL PROTECTED]  2003-10-03 09:20 -------
First of all, let's assume that when you say "If mail is bounced as SPAM ..." 
you mean "if mail is detected (by some analyzer) as spam ...".

SMTP AUTH *is* optional: when activated, the only messages rejected will be 
the ones coming from a non authenticated user and sent to <some remote 
address>, hence blocking any open-relay exploit. Then your case "from <my 
address> to <some remote address>" will be accepted and processed *only* if 
<my address> is truly authenticated.

The tricky thing remaining is managing the case "from <my address 1> to <my 
address 2>, that even if SMTP AUTH is on would get through.

Then using the latest James v2.2.0a# alpha releases you can use the new 
SMTPAuthSuccessful matcher to achieve what you want:

      <processor name="spam">
         ...
         <!-- If the sender is an authenticated local user notify him -->
         <mailet match="SMTPAuthSuccessful" class="ToProcessor">
            <processor> spam_notification</processor>
         </mailet>

         <!-- If the sender is a fake local user ignore -->
         <mailet match="SenderHostIs=mylocalhost1,mylocalhost2" class="Null"/>

         <!-- The sender could be only a remote user (true or fake), so notify 
him -->
         <mailet match="All" class="ToProcessor">
            <processor> spam_notification</processor>
         </mailet>
      </processor>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to