Build an IMAP server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JamieHowarth0
    Recognized Expert Contributor
    • May 2007
    • 537

    Build an IMAP server

    Hi guys,

    I have a pet project I'm trying to get off the ground - I'd like to build an IMAP server.
    Now, it's one with a bit of a twist, and the twist is that it won't be used to send and receive mail... (told you there was a twist!)

    I can't explain a huge amount but there are a few basics which I know I have to be able to understand, in this kind of order:
    1. I assume it's possible to build a Windows service which can listen on port 143 (the standard IMAP port) or port 993 (SSL IMAP). Does anyone have sample code or any good links as to how to create a port listener?
    2. Does anyone have a set of links as to how the most commonly-used functions in IMAP can be mapped out in a session? Like "login" -> "ask for mail" -> "get mail", and "login" -> "get subscribed folders" etc.


    I know this is one heck of a long shot but even sample links will help out - I'm prepared to learn everything necessary to get this project off the ground.

    Many thanks,

    codegecko
  • sicarie
    Recognized Expert Specialist
    • Nov 2006
    • 4677

    #2
    Sounds like you want some sort of mail proxy or relay.

    So if you are developing this, what language are you using?

    Did you look for open source IMAP servers that you could modify to your use?

    Comment

    • JamieHowarth0
      Recognized Expert Contributor
      • May 2007
      • 537

      #3
      Hi sicarie,

      I took a look around but couldn't find what I was after.

      In essence, I'm building a project which I can connect to using the IMAP protocol from various mail clients. The project will have "subscribab le folders", "messages" and other functionality similar to that implemented in the IMAP standard.

      I'm writing this with VB.NET because as powerful as I know C++ is, I don't have the time to delve into it to the degree that I'd like, so VB.NET is my best option.

      codegecko

      Comment

      • sicarie
        Recognized Expert Specialist
        • Nov 2006
        • 4677

        #4
        codegecko-

        In that case, I'm going to move this post into the VB Forum where our VB Experts will better be able to help you.

        Thanks,

        sicarie

        Comment

        • JamieHowarth0
          Recognized Expert Contributor
          • May 2007
          • 537

          #5
          Thanks sicarie,

          Any suggestions for VB/.NET experts would be appreciated.

          codegecko

          Comment

          • jg007
            Contributor
            • Mar 2008
            • 283

            #6
            I think you are starting a difficult project

            as far as I am aware Imap is just the protocol used to download the messages from whatever mail server you create and if this is correct you will need to first decide on the background mail server and then implement something that interfaces with it and listens on the IMAP port

            this is a bit beyond me but try having a look at some of the code on this open source imap server and it might help you



            another url for open source mailserver -

            Dovecot Pro is a full-service email platform that delivers dynamic scalability, high performance, efficient utilization of hardware, and outstanding support to the world's largest Telcos, ISP's, and Hosters.


            also see here for the IMAP RFC -

            Comment

            • JamieHowarth0
              Recognized Expert Contributor
              • May 2007
              • 537

              #7
              I've printed off the 69 pages of IMAP4rev1 specification in that last link you sent, so I'm gonna read through it tomorrow and take a crack at it.

              Wish me luck!

              codegecko

              Comment

              • jg007
                Contributor
                • Mar 2008
                • 283

                #8
                lol rather you than me! , my head was hurting after few pages :)

                Comment

                Working...