Hi I made (after a suggestion in this ML, of course...) a similar thing with the recipients:
MimeMessage msg = mail.getMessage(); Iterator itera = mail.getRecipients().iterator(); while(itera.hasNext()){ MailAddress recip = (MailAddress)itera.next(); if(mc.isLocalServer(recip.getHost()) ){ // here we are sure that the recipient's server is actually my server if(mc.isLocalUser(recip.getUser())){ // here you are sure that the user does exist on my server } else { // ERROR:the user does not exist } } else { // not my cup of tea... } } how about a thing like that? Ciao Marcello > -----Messaggio originale----- > Da: Hut Carspecken [mailto:[EMAIL PROTECTED] > Inviato: martedi 7 ottobre 2003 21.47 > A: [EMAIL PROTECTED] > Oggetto: Use of Hostis Method to Determine Sender > > > Hello everyone, > > I am trying to determine who sent a mail. I am not looking for a > 100% effective way of stopping a > person from spoofing, but the FROM address to far too easy a > target. I was thinking of the > message.hostis() method or looking at the Received trace > information. Any thoughts? > > Hut > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]