Basic POP3 server

Hi all. I am very new to Java (my boss gave me a book on it 2 days ago and told me to create a basic pop3 server) and this is why I need help.
The task I need to do simply (I think) create a pop3 server that at the moment communicates with a mail client (outlook or thunderbird) and tells the mail client it has a message on the server.
Any suggestion would be great.
I have started exploring sockets but am not getting very far very quick
Thanks

Sorry, I miss read that as "I have two days to write a pop3 server".
Networking Tutorial
A helpfull Google

Similar Messages

  • Error in reading the mails from POP3 server

    Hi,
    I am reading mails from the POP3 server using UTL_TCP package. I am able to retrieve .txt & .doc attachments successfully.
    I am facing an error when I try to retrieve an attachment with a very long name (irrespective of the file type). Also, I am unable to retrieve .docx, .xls, .xlsx file types. I noticed similarity in the reasons for the error I am getting. I realized that if I try to retrieve an attachment with a very long file name or any of the above mentioned file formats (.docx, .xls, etc.), the "name" attribute of the attachment goes to the next line and hence I am going wrong somewhere in parsing that line.(The complete line comprises of : Content-Type: application/vnd.openxmlformatsofficedocument.wordprocessingml.document; name="test_attachment.docx")
    I realized this pattern by doing executing Telnet commands to retrieve emails from POP3 server.
    I am trying to parse the line I am talking about in the following manner:
    IF line LIKE 'Content-Type: %;'
                   THEN
                        IF line LIKE 'Content-Type: %; name=%'
                        THEN
                             PIPE ROW (line);
                        ELSE
    -- This should only print the "Content-Type". But I get an error (pasted below) at this point
                             PIPE ROW (line);
    -- To read the "name" attribute which comes on the next line. But this line never gets executed since I get an error in the previous statement
                             BYTES := UTL_TCP.available (socket);
                             BYTES := UTL_TCP.read_line (socket, line);
                             PIPE ROW (line);
                        END IF;
    The error I get is :
    ERROR:
    ORA-29261: bad argument
    ORA-06512: at "SYS.UTL_ENCODE", line 29
    ORA-06512: at "SYS.UTL_ENCODE", line 251
    ORA-06512: at "SCOTT.POP3", line 117
    Message was edited by:
    Monk
    Message was edited by:
    Monk

    Hi,
    Try to manually download the file from application server using standard transactions, and than check how many records are you able to download from app. server.
    I guess there might be something wrong with the format of 583rd record, which makes sap assume that the file has come to an end.
    Hope this will help you.
    Regards,
    Vinit...

  • How do I set up a POP3 server to open with Firefox 3.6.13 so that it's not using windows live but the POP3 email server?

    When i browse websites with Mozilla Firefox 3.6.13 and click on a link to send email to someone, Mozilla opens windows live instead of my POP3 server. How do I tell Mozilla to open the right email server to start a new thread?

    See this: <br />
    http://support.mozilla.com/en-US/kb/Changing+the+e-mail+program+used+by+Firefox

  • How to download a mail from pop3 server to an HTML Form

    Hi Friends,
    i want to download the Mails from a POP3 server using an Html
    Interface.I mean not from command Line.
    I have designed an interface that will send emails to Recipients,
    but i didn't get any idea about how to download the mails to an interface like a HTML Form.
    if any body know the answer post the replay with the code snipnet
    Nagaraju G.

    In Mail's Accounts/Mailbox Behavior preference pane make sure these 4 checkboxes are NOT checked:
    OT

  • IPhone email stays logged into pop3 server, never logging out

    I have an iPhone 4 with the latest firmware/software.
    My email provider is SureWest. They have a pop3 server I use to retrieve my email from their server. This works fine.
    I also use Outlook Express on my Windows machine at home to download this same email.
    I have the iPhone set to check for new email every 15 minutes. It leaves a copy on the pop3 server, so I can download the same emails when I get to my home computer.
    The problem is that the iPhone appears to stay "logged in" to the pop3 server, so when I get home, and try to check my email, I get an error message from SureWest, saying that I am already logged in. But I'm not!
    To solve the problem, I have to power off my iPhone, wait a minute or two, then check my email from the home computer.
    Seems silly that the iPhone just stays "logged in" to the pop3 server.
    Any fixes/updates for this problem?

    I have an iPhone 4 with the latest firmware/software.
    My email provider is SureWest. They have a pop3 server I use to retrieve my email from their server. This works fine.
    I also use Outlook Express on my Windows machine at home to download this same email.
    I have the iPhone set to check for new email every 15 minutes. It leaves a copy on the pop3 server, so I can download the same emails when I get to my home computer.
    The problem is that the iPhone appears to stay "logged in" to the pop3 server, so when I get home, and try to check my email, I get an error message from SureWest, saying that I am already logged in. But I'm not!
    To solve the problem, I have to power off my iPhone, wait a minute or two, then check my email from the home computer.
    Seems silly that the iPhone just stays "logged in" to the pop3 server.
    Any fixes/updates for this problem?

  • How to set pop3 server timeout in Mail?

    The pop3 server that I am using for receiving my mails responds quite slowly. So, I have to increase the server timeout flag, but I couldn't find it in the preferences of Mail. Have you got any ideas about that?
    Thanks...

    You should probalby post your question in the Mail and Address Book forums:
    http://discussions.apple.com/forum.jspa?forumID=753

  • When I delete a message in Thunderbird it is not deleted from my POP3 server.

    I have account settings as "leave email on server" and "until I delete" both checked. When I delete the email in Thunderbird version 24.4.0, the email does not get deleted on the pop server.
    If I build a filter and say "delete from server" any email that has a STAR status. The emails DO get deleted from the server when I run the message filter.
    I do not believe I should need to run a filter every time I want to delete emails from the POP3 server.
    I must be doing something wrong....any ideas????

    I found the answer on another forum by '''Tom Wijsman''':
    Go to Options -> Advanced -> Config Editor.
    Find the Name mail.pop3.deleteFromServerOnMove
    Set it to True.
    True: Delete the copy of the message on the POP3 server if you move or delete the message.
    False(default): Only delete the copy of the message on the POP3 server if you delete the message.
    That's it, restart Thunderbird. You need to press 'Get Mail' everytime you want to sync with the email server, in order for you to make sure messages in the application is in sync with the email server.
    The following should be emphasized to realize the sync with the server. You will not see your server message disappear upon the initial Get Mail download (new messages downloaded). After you process your Inbox in Thunderbird by deleting/moving a new message, then do another Get Mail which will delete the new messages previously downloaded on the server (put in sync).
    Note: If you have older messages in your Thunderbird Inbox, they will not be deleted from Server. Delete them manually from server. From then on, any new messages you download, then process (delete/move), and then do the sync by doing Get Mail again WILL be deleted.
    share|improve this answer
    '''Tom Wijsman'''

  • Mail.app 3.6 won't connect to my POP3 server over a proxy

    I updated to 10.5.7 the other day, and now Mail.app will not connect to my POP3/SMTP server via my proxy. This is a big problem for me as I work remotely a lot.
    My setup - I use Proxifier (www.proxifier.com) and an SSH proxy so I point my Mail.app at the 192.168.* local address of my POP3 server on my home network. Whether I'm physically on the 192.168.* network, or remote but running Proxifier, Mail.app 3.5/10.5.6 would work flawlessly, as would any other application that addressed my local network (e.g., RDC).
    Since upgrading to Mail.app 3.6/10.5.7, however, Mail.app will not connect when I'm using the proxy, but works fine when I'm physically connected to that network; it thinks that the servers is offline (even when using the Connection Doctor). All other TCP/IP applications including RDC continue to work fine via proxy. In particular, I can still use "telnet 192.168.x.y 110" and connect correctly to my POP3 server (and interact with it using the POP3 command set), so the issue would appear to be in Mail.app rather than in the connection itselof.
    Since Proxifier only proxifies TCP and not UDP connections, is it possible that Mail.app 3.6 now attempts a UDP connection to a mail server to check if it's alive before trying TCP? If that's the case, can it be disabled? I don't know of any requirement that POP3 servers must be able to respond to UDP. Or is there a way I can drop back to 3.5 which DID work?
    Thanks. Jim.

    OK, I understand this now (thanks to DHJ for help with experimentation).
    1) Mail.app 3.6 appears to ignore /etc/hosts completely. Mail.app 3.5 honored definitions in /etc/hosts.
    I tested this by putting the known IP address of pop.gmail.com into /etc/hosts and calling it foo - I could not receive mail by pointing Mail.app at the server foo.
    If this is so, it needs to be documented. This is extremely unusual behavior for a network application. I can see why Apple may be trying to protect us from hosts-hijacking, but this non-standard behavior has eaten up a lot of our time trying to figure it out.
    2) Mail.app 3.6 appears to use a system proxy if one is defined. Mail.app 3.5 did not.
    I tested this by verifying that Mail.app 3.6 could receive my mail (modulo the problem in 1) above) when any system proxy was defined, regardless of whether Profixier was running.
    Every other application I know that uses the system proxy gives you the option of doing this (e.g., Firefox, Adium, and so on). This is why my Proxifier application was seeing nothing - Mail.app was going right to the system proxy. (FYI, Proxifier is designed to support proxies for applications that have not already been written to support proxies explicitly.)
    The combination of 1) and 2) presented as a totally wacky complex problem. Viewed separately they don't seem so difficult to diagnose. Either way, they are both surprising, unusual and, to my knowledge, undocumented.

  • I can't get email. Get POP3 error . can't connect to POP3 server. It's not email vendor issue ... c

    Good afternoon. For over a week I can't get email on MY DASH.  Can't see mail in my Gmail Viewer.  Get a POP3 error ... can't connect to POP server.  Thought it may be a Gmail interface issue so tried to get Hotmail and then Earthlink email in the Chumby email app.  Both give same message POP3 Error , can't connect to pop3 server.  I have done multiplr hard restarts / power off / "restore to normal operation" procedures.  I have searched the discussions and community and can find no mention of POP server issues.  Please help .... advise.  I'm a disabled, but still working, senior citizen without a fancy, internet, cell phone and my Dash's ability to display my email is very important to me.  I have the Dash at my bedside and My Dash allows me to see a message from a client before I would otherwise rise. Kind regards, Martin

    Hi USER-901698,
    This is not an issue with the Sony device.
    We highly suggest to contact your email service provider regarding your concern.
    For further information, please check the link below.
    https://us.en.kb.sony.com/app/answers/detail/a_id/32749/p/46543,46552,46553/c/65,66/kw/pop3
    Thanks,
    >Joffrey
    If my post answers your question, please mark it as "Accept as Solution"
     

  • POP3 server emails stopped after new update of 503

    Last week messge appeared on screen that new update version (14.0.4) available for your mobile Asha 503. I select yes to upgrade my phone from older version to new. after upgrade procedur my office POP3 server email stopped & not working from that time. i contact to my office network administrator to check any possibility to enable my email but he asked me there is no any chance to receive my email because he tried lot of time to re configure but it vain. please help

    The easiest way to track this is: Capture the network traffic! This can be done via a:
    A) Wi-Fi access point which allows capturing. Alternatively, you go for a
    B) Ethernet Switch behind the Wi-Fi access-point which allows port mirroring. A third alternative is to
    C) install Connectify on a computer and use that as capturing Wi-Fi access-point
    for your Nokia Asha 503.
    In all cases, you use tools like Wireshark to analyze the data traffic. However, because you are in contact with your administrator already: Does he see any data packet from your Nokia Asha 503 at all? If not, the Internet configuration could have been damaged while updating. Nokia Xpress browser is using a slightly different configuration, therefore it might not be affected.

  • The mail client at my iPad Air can't download emails from a POP3 server!?

    why can't the mail client at my iPad Air download emails from a POP3 server!?

    Follow the directions in this post to create a POP account:
    Forcing creation of a POP or IMAP email account

  • Create a new mailbox in pop3 server

    I have create a pop3 server on windows 2003 server. I want to create new mailbox by java program . How can i done this by java program?
    Plz help me...

    Typo: Not AS, it should be AT
    EXEC ('CREATE LOGIN [INTERNET\Domain Admins]') AT Link

  • Apple Mail 8.2 disables SSL to POP3 server (Securityrisk)

    Hi,
    Setup
    Computer:
    OSX 10.10.2
    Mail 8.2 (2070.6)
    Mail server A
    POP3 port 995 SSL
    (Non SSL - port 110 -  is disabled due to security reasons)
    Mail server B
    POP3 port 110
    POP3 port 995 SSL
    Summary
    OSX Mail client removes SSL support on non regular intervals for POP3 connections. For the connections that support regular non SSL POP3 (port 110) this reduces the security, but the mail is available. This was noticed by me because one ISP has locked down their POP3 server to SSL only due to security reasons. After reenabling SSL on the connection (Mail -> Preferences -> Accounts -> Account in question -> Advanced) the connection remains with SSL support for a while, then it is removed again. As OS X Mail has no token to identify SSL or regular port 110 connection this is transparant to the user, unless the server does not support regular POP3, at which time a error is generated.
    Comments
    1) This seems to be a security related issue with mail where OS X mail downgrades from SSL connection to regular port 110 POP3 traffic
    2) If corrected the connection is downgraded again within a couple of days, if not sooner.
    3) Connections to POP3 servers supporting port 110 are "unaffected" with the exception of the security issue of a downgrade
    4) Connections to POP3 servers that only support SSL - port 995 - are not able to complete until SSL has been reenabled manualy.
    5) Downgrade bug has been seen only on my machine, so it might not be something mainstream. Machine is updated to latest patches.
    Questions
    1) As this has only been observed on my machine, has anybody else seen this POP3 SSL downgrade bug?

    Same problem. The following information is from Symantec:
    To disable SSL\TLS
    Open Apple Mail.
    Click the Mail menu and select Preferences.
    Select your mail account on the left under Accounts, then click the Advanced tab.
    Confirm the check box labeled "use SSL" is not checked next to ports. If necessary remove the checkmark.
    Click the Account Information tab and select Edit Server list from the drop down next to Outgoing Mail Server.
    Click the Advanced tab and confirm there is not a checkmark next to Use Secure Socket Layer(SSL).
    Click OK and close the accounts. Window and choose to save.
    Click Save to update your settings.
    Restart Apple Mail.
    This does work for a while but eventually Mail reverts to enabling Use SSL and disabling Allow Insecure Authentication but only one some of my addresses but not all. Some accounts POP logs-in but not SMTP.

  • Access pop3 server

    hii,
    I'm using java mail api to access pop3 server and doing like :
    public void accessSrv()
            Session session = null;
            Store store = null;       
           try
               session = Session.getDefaultInstance(System.getProperties(), null);
               store = session.getStore("pop3");
               store.connect("host", "username","password");       
               System.out.println("Srv connected...");
           catch(Exception E)
               E.printStackTrace();
        }Here an exception is being occured..
    javax.mail.AuthenticationFailedException: EOF on socket.
    could you else please tell me the solution...
    thanks
    Dev

    ejp wrote:
    Without a connection, that exception is entirely impossible.
    Connection problems are usually no code problem, but rather a configuration problem. For example: is your firewall blocking the connection?The firewall can't have anything to do with it.
    Don't be so sure. Some firewalls are configured in the weirdest of ways, and may allow the connection to be made but not data to be sent over that connection (or only very specific types of data).
    I once encountered one that would allow all (and only) http traffic as long as the filenames (thus the URIs) ended with .htm, ,gif, or .jpg (and only those extensions).
    Obviously intended to stop downloading of zip files and executables, it caused major problems when visiting just about any dynamic website or website (and many others, including the company's own website).
    @OP: I suspect the server you connected to wasn't a POP3 server, or possibly that you failed authentication by not providing a correct username or password.Would that lead to an EOF trying to read a message from the server?
    I'd expect some sort of security exception instead.
    EOF to me indicates that something is coming over the line but it's either not a POP message or the reader is failing to stop attempting to read when reaching the end of it.

  • How can i recieve unread message from pop3 server

    hi ! i'm using pop3 server
    I used the following code to set read message.
    String host="servername";
    String username="xx.domainname";
    String password="xxxxxx";
    try
    Session mySession=Session.getDefaultInstance(System.getProperties(),null);
                   mySession.setDebug(true);
              //get a specific mail storage
          myStore=mySession.getStore("pop3");
    // Store myStore=(Store)session.getAttribute("myStore");
    myStore.connect(host,username,password);
    myFolder= myStore.getFolder("INBOX");
    if (myFolder == null)
                        System.err.println("No inbox folder is available");
                   else
                        System.out.println("Accessing"+ myFolder.getFullName()+"folder========" );
                   myFolder.open(Folder.READ_WRITE);
    Message[] message=myFolder.getMessages();
      message.setFlag(Flags.Flag.SEEN,true);
    System.out.println("Flags ========: "+message[i].getFlags());
    myFolder.close(true);
    myStore.close();
    catch(Exception e)
    Again if i receive  message from server it is not showing unread messages. it will return as 0.(I used the  method *getUnreadMessageCount()*)
    Can i have some help
    Thanks in advance.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    The POP3 protocol supports no flags.
    See the FAQ and the javadocs for the com.sun.mail.pop3 package.

Maybe you are looking for