SPam prevention in java mail using CAPTCHA and Obfuscation

im using struts,     
i want to implement spam prevention using CAPTCHA and Obfuscation for
DOS or DDOS attack or unsolicited submissions through jsp forms submitted?
Suggest me some ideas or implementations for this
Thanks
Rajesh

Hi,
Setting up GMail as IMAP will allow you to view your Spam folder. IMAP is the newer way of accessing mail so that would be the preferred way to go. IMAP enables you to keep everything in synch across multiple email clients.
The following link gives you more information on how to set things up and frequently asked questions:
http://mail.google.com/support/bin/answer.py?ctx=gmail&hl=en&answer=75725
Good luck!

Similar Messages

  • Content type headers and spam checks within Java MAil

    Hello there
    I have successfully created a java mail api to send any one of the following
    plain/text message, with or without attachments, with or without the body of the email to be HTML
    I have a question on how to ensure that the email is not marked spam? Sometimes the Spam score goes high if there is olly html for an email that is text/html type.;
    What are the possible values for content/type of Mime Message header for following scenarios
    An Email message that may have its bodypart as html and may have attachments
    An Email message that will have plain text messages along with attahcments and HTML concattenated with text messages ( LIke google maps along with text message]
    IF I do messaget.set ("This is my message") andthen I add attachments to the message body part, is it advisable to have two seperate content-type mime headers for these messages? wrt not having higher spam score.
    Or Is it advisable to have seperate mime type content headers for text part and sperate for message part.
    IS the attachment part also has a seperate mime header content type value?
    does the header's content type value is plain/text for messages that are text messages with attachments>?
    IS there a way to chek spam scores for messages generated by java mail? The ides is to create java mail API customsied sot hat the sent emails are not marked spams ?
    In order for the mail to be having zero spam scrore, it is helpful to have seprate mime content type headers?
    Edited by: user9328023 on May 23, 2011 1:45 PM

    If you want to create a message that has both plain text and html versions of the main
    message content, you want to create a multipart/alternative message, as described in
    this FAQ entry.
    If that message also needs to have attachments, you should embed the multipart/alternative
    part in a multipart/mixed message, along with the attachment parts.
    If the html part needs to reference images included with the message, you would replace
    the text/html part with a multipart/related part, as described in this FAQ entry.
    Combining all these techniques together can seem a bit complicated unless you understand
    recursion! :-) Remember that in addition to creating a body part with a text content type,
    you can create a body part with a multipart content type, and use that body part in the same
    places you would use a text body part.
    As for making sure your message isn't marked as spam, well, you're probably asking in the
    wrong place, but the simple answer is to make sure that it's actually not spam! Usually the
    structure of the message isn't as important as the content of the message.

  • Cannot send email w/mac mail using Juno and Tiger

    Hello!
    I have had a problem ever since I upgraded last year to Tiger. I have Juno, and ever since I upgraded from Jaguar, I cannot use the Juno software to log on. But more annoying that that (I have a work around that works just fine), I cannot send email from my mac mail. If I want to send an email or respond to an email, I have to physically log onto Juno's website and email and write and send from there. I have contacted Juno numerous times, and they tell me to reset my password, which makes no sense to me. Any Ideas?

    Regarding not being able to send mail with your .Mac account and .Mac SMTP server, most if not all ISPs used for connecting to the internet block the use of SMTP servers outside of their network on Port 25. Some ISPs allow the use of an authenticated SMTP server only (such as the .Mac SMTP server) that is outside of their network on Port 25 but some block its use regardless. These restrictions are in place as part of an overall effort to prevent or reduce spam eminating from the ISP's domain.
    Something to try.
    Go to Mail > Preferences > Accounts and under the Account Information tab for your .Mac account preferences at the SMTP server selection, select the Server Settings button below.
    At the Server Port field, enter 587 in place of 25 and when finished, select OK to save the changed setting.
    If this is not successful, select/use your ISP's SMTP server to send mail with your .Mac account which is invisible to all recipients.

  • Mail.jar is locked when sending a mail using servlet and not releasing

    Hi everybody,
    The mail.jar is locked in tomcat while sending the first message and not released until the tomcat get restarts.
    the problem is not recorded in any logs.
    1. Please create a servlet that sends mail
    2. Send a mail to any mailid
    3. then after the mail is send please try to delete the mail.jar or please deploy the same servlet again with some small changes (for redeploying take place only a few changes is there - please change any strings a little bit)
    then try to send mail using this servlet will not send mail becoause it will not redployed correctely.
    when i removed Transport.send(msg); from code it works fine. but ??
    please help me to recover from this issue. i don't want to turn on tomcat antiJarlocking and antiresourcelocking to true, becaouse this craete many other problems.
    please help me to recover from this issue.
    Thanks,
    Prasad.N

    hi friend
    I am using advanced version of jdk. i i have used many other jar files like mysqlconnector, logging, commonhttpclient, etc.... the only problem is with mail.jar. that locks are released when its use completed, but the lock holds until tomcat shutdown in mail.jar.
    what may be the reason?
    Thanks,
    Prasad.N

  • Receiving Mail - Using attachement and adapter attributes

    Hi all,
    I'm trying to solve the following problem:
    - I receive a file via mail adapter as attachment
    - The content of the file is plain text, no csv or XML
    - For mapping, I need a) the content of the file b) metadata like sender of the mail, date/time of mail etc.
    I tried to use mail package and PayloadSwapBean. Now I have the situation, that not everytime the <content>-Tag contains the content of the attachement:
    -If the message text of the mail is empty, <content>-Tag contains the content of the attachment (perfect!)
    -If the message text of the mail is empty, mapping throws exception. I suppose, that pure attachement (not in the mail package format) is input for mapping
    If I try to use adapter-specific attributes, Mail adapter throws error (so message does not reach integration engine). I already updated the mail adapter metadata in the IR (cf. SAP note 936552), as we are on SP16. It seems as if still some tags can not be deserialised by the SOAP-Entry of the integration engine.
    Has someone an idea how to solve the situation?
    Kind regards,
    Torsten
    Message was edited by: Torsten Engel

    Well, the problem seems to be with the IMAP server
    (not postfix).
    I simply don't have an INBOX file were my IMAP server
    seems to deliver the e-mail.
    This seems to be part of our problem communicating. An IMAP server doesn't deliver email. It's what your mailreader contacts to view or deliver mail. You must be using OSX Server, I don't think there's an IMAP server for OSX.
    When mail arrives at your Mac, two basic things happen. We lump them under the label postfix. The first thing is that the SMTP server accepts the mail. The second is that the local process "delivers" the mail. This can be difficult to set up, but the main thing is to put the local delivery path in the alias map file you set in /etc/postfix/main.cf. This is /etc/aliases by default.
    To read mail, your mailreader can simply open the mailbox where the file was delivered. /usr/bin/mail will work fine. Fancier mailreaders like Apple Mail use protocols like POP3 and IMAP4 to retrieve mail from remote servers. But this case is different. IMAP seems like overkill since everything is local. I would try putting the alias to the directory that Mail uses. But then, you never said what your mailreader was, so I don't know.
    I think we can solve this, but we need to get over some confusion first.
    -Phil

  • Reading Mail through Java Mail using IMAP

    When i tried to connect to IMAP server am getting the following error like Ntlm class not found
    Am using JAvaMAIL API version 1.4.3.
    Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/mail/auth/Ntl
    m
    at com.sun.mail.imap.protocol.IMAPProtocol.authntlm(IMAPProtocol.java:56
    1)
    at com.sun.mail.imap.IMAPStore.login(IMAPStore.java:667)
    at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:596)
    at javax.mail.Service.connect(Service.java:291)
    at javax.mail.Service.connect(Service.java:172)
    at FetchMailUsage.main(FetchMailUsage.java:35)
    Caused by: java.lang.ClassNotFoundException: com.sun.mail.auth.Ntlm
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    I searched this clas in the all the jar in the java mail api.Appreciate your earlier help

    I assume you're not actually trying to use NTLM authentication.
    A bug in JavaMail 1.4.3 can cause failures related to NTLM in some cases, although I don't think
    it should show up as the failure you're seeing. To work around, set the session property
    "mail.imap.auth.ntlm.disable" to "true".
    If that doesn't solve your problem, make sure you don't have more than one set of JavaMail
    classes in your CLASSPATH.

  • Java mail Gmail send and receive messages

    Dear All
    can any body send me java mail api TESTED code for send and receive gmail messages. There are may sample code on net are available but I am failed to find solution. Please help
    I will be very thank full to you
    regards
    Aamir

    No. This is not a free coding service. It is a user to user forum. The general idea is that you ask questions about code you have already written. If you want tested code you generally have to pay for it. Locking this thread, for later deletion.

  • Problem when "Checking for Mail" using IMAP and POP

    Hello,
    I have an iPhone 3G running 2.0.1 and created 3 mail accounts (1 Gmail using IMAP, and 2 using POP).
    When I first set up the phone 2 days ago the installer copied the settings from my Mac and emails on my iPhone showed up correctly.
    Since yesterday something is screwed up because when I try to fetch new email I only see "Checking for Mail" at the bottom of the screen but nothing happens and new emails don't show up.
    Any idea how to fix this problem?
    Thanks!

    FYI you don't actually have to completely reboot the phone. From inside your email program, push and hold the HOME button for 7 or 8 seconds until it exits email and dumps you back at your home screen. That causes a hard-quit of the email program and will reset it. You should begin getting email again immediately after.
    Here's hoping Apple fixes that anomaly on their next release...

  • Can I send a Java HashTable using IDL and CORBA?

    I have code that uses a HashTable implementation of the Map datatype. I would like to be able to send this datatype using IDL and CORBA without trying to map it to Struct, if at all possible. I have just started with this yesterday, IDL that is, have successfully run the Hello World over the network and passed a string variable instead of just the string, and would welcome any help whatsoever.
    Thanks,
    Teresa Redmond

    - Don't transfer the Hashtable at all, but writea
    server, which gives access to the Hashtableentries
    I think what Martin means is: why not let yourserver
    actually do the work with the Hashtable in itself
    instead of making the client do it?
    Yes, exactly this is what I meant. And I will
    strengthen your arguments, why building a server for
    the Hashtables would probably be the best solution. So
    first double-check, whether you can go this way,
    before reading any further!
    But anyway, if you want to look deeper into
    serialization:
    - Create an ObjectOutputStream consisting of a
    ByteArrayOutputStream:
    ByteArrayOutputStream baos = new
    ByteArrayOutputStream(100);
    ObjectOutputStream oos = new
    ObjectOutputStream(baos);where "100" is the initial size in bytes.
    - Write to this stream with
    oos.writeObject(hashtable);
    oos.flush();- Send the data as a sequence of bytes, which can be
    accessed by:
    baos.toByteArray()- on the receiving side, create an ObjectInputStream
    from the received byteArray:
    ByteArrayInputStream bais = new
    ByteArrayInputStream(byteArray);
    ObjectInputStream ois = new
    ObjectInputStream(bais);- Then read the hashtable:
    Hashtable h =
    (Hashtable)ois.readObject();This is only a very coares description of the process,
    but should just give some pointers to the basic way to
    serialization.So, in the client, I could:
    Map m = new HashMap();
    //fill m
    baosSize = m.getsizeofm();//pseudo method
    ByteArrayOutputStream baos = new ByteArrayOutputStream(baosSize);
    ObjectOutputStream oos = new ObjectOutputStream(baos);
    oos.writeObject(m);
    oos.flush();
    baos.toByteArray()and in the server code, I could:
    ByteArrayInputStream bais = new ByteArrayInputStream(byteArray);
    ObjectInputStream ois = new ObjectInputStream(bais);
    Map mh = (HashMap)ois.readObject();is that about right? If that's the case, how do I write the idl file? is this a string? say, "string baos;"?
    Thanks, guys, I really appreciate your help!

  • Sending mail using IOS and alias

    I have an ipad and iphone that uses my name alias when I send mail "from" my devices and then my wife has an ipad and iphone that I would like for her to use her alias when she sends emails from her devices.  Currently even though I have both alias active to use with mail, when I select my alias on my devices it automatically uses that alias on my wife's devices.  She has to manually change the "from" address to her alias.  Is there a way to designate her alias as the "from" address on her device and I can use my alias in the "from" on my devices?  This is not a problem on my laptop using Maverick.

    http://forum.java.sun.com/thread.jsp?forum=43&thread=165268

  • Yahoo mail using firefox and windows 7 drops graphics text in boxes???

    when in yahoo mail, the graphics text within action boxes, ie, send; move etc do not display. sometimes the box outlines do not display. any fix? site works fine with IE. was using 3.6 , tried going to beta 4 but has same problem

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
    In Firefox 4 and later [http://kb.mozillazine.org/Safe_mode Safe mode] disables extensions and disables hardware acceleration.
    *Tools > Options > Advanced > General > Browsing: "Use hardware acceleration when available"
    If disabling hardware acceleration works then check if there is an update available for your graphics display driver.

  • Reconcilin​g e-mail using BIS and Outlook

    I own a small business and am trying to make this e-mail thing work smoothly.  I use Outlook 2007 and my e-mails get sent to both my Blackberry and Outlook.  However what I delete in Outlook is not reconciling back to my Blackberry to be deleted.  I have deleted e-mails on my Blackberry before Outlook has downloaded them to my computer and the reconciling works.  But if I delete the e-mail on my Blackberry after I have downloaded to Outlook, then it does not delete it in Outlook.  I have read the info on reconciling and it seems I am configured correctly.  So for this to work that way that I want it to, I need BES, is that correct?   

    Hi and Welcome to the Forums!
    Unless you are hosting your email system internally, you won't benefit from BES...BES provides enterprise-level conduits between internal enterprise email systems (e.g., Exchange, Notes, etc.) and corporate BB's. If your email is out in the public domain (e.g., Yahoo, GMail, etc.), the there's nothing BES can do for you.
    See this KB for the reconciliation features available via BIS with various email providers. Find yours and see which features are available. It may well be working as designed.
    KB05133 Email reconciliation features for the BlackBerry Internet Service
    Good luck and let us know!
    Message Edited by sdgardne on 09-05-2009 08:55 AM
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Java Component using validateStandard and SystemDatabase fails to incr cntr

    I based my filter on the Dynamic Prefix, and code I found in this forum. I have a vew in my System database that I want to validate a field against on checkin, instead of loading 50K values into a combobox. The problem is that when the routine runs and the emp_num is valid (routine succeeds), the counters table is not incremented and the next check-in fails? Any help appreciated. The code for the java component is below:
    package mypackage.ucm;
    import intradoc.common.ExecutionContext;
    import intradoc.common.ServiceException;
    import intradoc.common.SystemUtils;
    import intradoc.data.DataBinder;
    import intradoc.data.DataException;
    import intradoc.data.DataResultSet;
    import intradoc.data.ResultSet;
    import intradoc.data.Workspace;
    import intradoc.provider.Provider;
    import intradoc.provider.Providers;
    import intradoc.shared.FilterImplementor;
    import intradoc.util.IdcMessage;
    /* Setup in hda fild to use validateStandard
    * validateStandard
    * validateCheckinDate
    * From Bex's book setReturnValue("true");  - Didn't help
    public class EmployeeCheckinFilter implements FilterImplementor {
      public int doFilter(Workspace ws, DataBinder binder, ExecutionContext cxt)
          throws DataException, ServiceException {
        String value = "-1";
        String xEMP_NUM ="";
        String SQL = "";
        String ResultSetName = "XEMPNUMCOUNT";
        int ivalue=0;
        DataResultSet result = null;
        DataException error = null;
        ResultSet temp = null;
        SystemUtils.trace("system", "Starting doFilter for EmployeeCheckinValidation");
        // Display the binder
        // System.out.println(binder);
        xEMP_NUM = binder.getLocal("xEMP_NUM");
        SystemUtils.trace("system", "xEMP_NUM=" + xEMP_NUM);
        // Only run valiation is
        if (xEMP_NUM != null && xEMP_NUM.length() > 0) {
          SQL = "select count(*) counter from dcsdemployees where emp_num = "
            + xEMP_NUM.trim();
          SystemUtils.trace("system", "SQL=" + SQL);
          if (ws == null) {
            SystemUtils.trace("system", "ws is null, getting ws from call to getSystemWorkspace()");
            ws = getSystemWorkspace();
          SystemUtils.trace("system", "try-catch block to get ResultSet from SQL");
          try {
            temp = ws.createResultSetSQL(SQL);
            result = new DataResultSet();
            result.copy(temp);
            // Makes results avilable for other Java methods or IdocScript templates.
            // binder.addResultSet(ResultSetName,result);  // Don't want this available
          } catch (DataException de) {
            error = de;
          } finally {
            ws.releaseConnection();
          try {
            result.first();
            value = result.getStringValue(0);
            SystemUtils.trace("system", "value(getStringValue(0)) = " + value);
            ivalue = Integer.parseInt(value);
            SystemUtils.trace("system", "ivalue=" + ivalue);
          } catch (NumberFormatException nfe) {
            SystemUtils.trace("system", "nfe.getMessage()=" + nfe.getMessage());
          // Can't find a match, throw an exception
          if (ivalue == 0) {
            SystemUtils.trace("system", "Throw error since xEMP_NUM is not in the dcsdemployees table");
            throw new ServiceException("xEMP_NUM was not found in the database!");
          if (error != null) {
            SystemUtils.trace("system", "Throw error since error condition exists.");
            throw error;
        SystemUtils.trace("system", "Ending doFilter for EmployeeCheckinValidation");
        cxt.setReturnValue("true");
        return CONTINUE;
      public Workspace getSystemWorkspace() {
        Workspace workspace = null;
        Provider wsProvider = Providers.getProvider("SystemDatabase");
        if (wsProvider != null) {
          workspace = (Workspace)wsProvider.getProvider();
        return workspace;
    }

    Hey klee,
    My guess at the cause of the issue is:
    finally {
    ws.releaseConnection();
    You don't need to release the connection in a validate Standard filter since the checkin service will release the connection when it completes. Since the connection is being manually released the code that executes after the validateStandard does not have a connection to the DB and can't increment the counter. In fact I'm surprised you aren't getting an exception.
    Hope that helps,
    Andy Weaver - Senior Software Consultant
    Fishbowl Solutions < http://www.fishbowlsolutions.com?WT.mc_id=L_Oracle_Consulting_amw >

  • Updating java when using JDK and JRE

    Ok, so after you make a program in java and compile it, you then install the new update of java. Wouldn't the virtual machine(JRE) or java development kit(JDK) notice something thats different and bring up an error?
    Do you have to use the same JDK as JRE that you have, because if you didn't have the most updated one, wouldn't there come up with an error?
    Last question, if you have used the command line to compile a program, then you know that you need to use javac to compile and java to run it. Well when you use the command javac to compile, then you are using the JDK; and if you use the java command to run it, then you are using JRE. This is just a question to make sure that I have this correct, So correct me if I'm wrong.

    brown16b wrote:
    Ok, so after you make a program in java and compile it, you then install the new update of java. Wouldn't the virtual machine(JRE) or java development kit(JDK) notice something thats different and bring up an error? Why? A newer Java version should be able to execute programs compiler for a prior version.
    Do you have to use the same JDK as JRE that you have, because if you didn't have the most updated one, wouldn't there come up with an error?Eh, what?
    Last question, if you have used the command line to compile a program, then you know that you need to use javac to compile and java to run it. Well when you use the command javac to compile, then you are using the JDK; and if you use the java command to run it, then you are using JRE. This is just a question to make sure that I have this correct, So correct me if I'm wrong.It's correct.

  • Is there a way to get date and time in JAVA without using sysdate and time.

    Hi Everybody,
    There is a requirement in my Application. The requirement is I need to instal an application and it need to expire after certain period (say 1 year).
    And after that it should become useless for anyone enjoying the benefits of that. I need to know how to calculate the timeline for calculating expiry date.
    <ul><li>&Oslash; We can't rely on system date, since user can modify that.</li>
    <li>&Oslash; We also can't use counter because for that system should execute in 24x7.</li>
    <li>&Oslash; Also there is no internet connection to fetch the current date from the global server.</li>
    </ul>
    So if anyone has any idea to accomplish post your suggestions to me.

    ejp wrote:
    I strongly suggest you take legal advice before implementing such a feature. The purchaser, or licensee, of such software has reasonable expectations and legal rights which are unlikely to be met by a brute-force scheme like that. You don't want to end up in court ...This exact situation happened at my previous employer--although it didn't go to court.
    We contracted out to a 3rd party vendor to write a library for us. It was delivered in stages and paid for in stages. After we received the last delivery, but before we'd made the final payment, we had our first full-system demo for our first client/partner. Shortly before the demo was to begin, we brought the system up, and it immediately crashed. We saw a "This software is expired" type message in the log. While it's not uncommon for software to have an expiration date, our big issues with it were 1) there was nothing of the sort written into the contract, and 2) The expiration was a hardcoded "if date > whatever, System.exit" as soon as the class was even loaded.. It would've been different if trying to actually use the class caused an exception, but killing the JVM just for loading the class was not cool.
    I decompiled the class, found the offending code, commented it out, recompiled, and we were off. In the meantime, our VP of R&D called the vendor to deliver a new jar file, which they did quite quickly. So, a) it was inconvenient but not difficult for me to get around the technical "solution," and b) that was as stop-gap measure--we still paid them for the software.

Maybe you are looking for