How To Make An E-mail Server


This video shows how to host your own e-mail service using your home computer.

Related tutorials:

Links used in this video:


  1. Javid
    April 14, 2011 at 1:20 am

    I use a dail-up connection by using my mobile phone as the modem
    My ip changes everytime I connect it pls help

    • Rick
      April 2, 2012 at 5:36 am

      If your IP changes every time you use it then you have to go into the Modem settings of your phone and change it from Dynamic to Static which therefore changes the setting from a changing IP Address every time you use it to a Static IP Address which pretty much means you keep one IP Address every time you use your mobile phone as a modem, This does however make your connection more vulnerable to attack against “hackers” and among other thing, not really recommended. Hope this helped.


    • Justin
      November 25, 2012 at 4:33 am

      If you are using a cell phone, chances are you won’t be able to setup a static IP. Most cell phone providers don’t want you to host things on their network without paying more.

  2. Ashu
    April 14, 2011 at 5:43 pm

    Great Tutorial Man…. Helped me a great time..

  3. Mario Stargell
    May 9, 2011 at 10:38 pm

    Hello this is amazing site! really cool and it will be a new inspirations for me

  4. Bridger
    May 10, 2011 at 5:32 am

    Hi ya um I have the hosts but i have like 32 of them that go hosts then numbers then back up i have no exact host file.

  5. michael franklin
    May 11, 2011 at 6:45 pm


    I am looking to set up an email server that will allow HTTPS connections as opposed to HTTP. THis is due to security reasons.

    Can the same process steps described within your videos be utilzed to develop an HTTPS compliant email server?

    What are the variances involved?


    – Mike Franklin

  6. MAX
    June 9, 2011 at 10:14 am


  7. carmelo
    June 12, 2011 at 10:49 pm

    where is the vedio brother?

  8. Amin
    July 13, 2011 at 4:27 pm

    i am using windows sever 2003 how i configure squaremail on my local network
    please tell me

  9. DD
    August 6, 2011 at 3:25 pm


    I use synology NAS server which occupies my local IP and already uses port 80,
    so when I forward or open a new port for my computer (to be used as server for other things) it tells me it will give me port 8080. When I enter my IP adres as defined by IP config so the real IP adress which shoud be public , I get acces to my router

    Is there some conflict (obvious there is) I also tried to enter my public IP adress with colon 8080 and /:8080 but no result (error message), any idea


  10. DD
    August 6, 2011 at 3:27 pm

    additional information, the local IP adres from my computer is so a different number then my NAS server and different from my router
    Still it does not work

  11. Brandon
    August 20, 2011 at 10:30 am

    I have a problem. When I go to Windows/system32/drivers/etc, I can’t find a file called hosts. I also tried to complete without it and when I tried to log in it says:

    Error connecting to IMAP server: RASSAF.local. 0 : php_network_getaddresses: getaddrinfo failed: No such host is known.

    What should I do please help. My OS is Windows 7 home…. PLEASE HELP!!!!!!!!!11

  12. Sean
    August 23, 2011 at 7:30 pm

    hey guys

    i am setting up a website and decided to use hmailserver as my mail server however i keep running into this problem when i get the the db setup

    (Starting task…
    Please wait while updating database settings…
    Settings updated.
    Restarting server…
    Database initialization failed.

    currently the hmail forums are down and nobody on the irc channel will help me

  13. tom
    September 23, 2011 at 6:10 pm

    hi i log on but then it says connection dropped by imap server

  14. Jeremy
    October 3, 2011 at 3:54 pm

    I have a problem, when I log in I get
    Error connecting to IMAP server: jeremail.local.
    0 : php_network_getaddresses: getaddrinfo failed: No such host is known.
    What do I do?

  15. aaron
    October 21, 2011 at 4:22 pm

    when itry to edit hosts fle it dosent let me save it plz plz help me

  16. brad
    December 23, 2011 at 1:09 pm

    when i opn localhost i get a blank page
    tried port forewarding but i cant enter my gateway’s site

    🙁 help

  17. Gaurav
    January 7, 2012 at 10:43 am

    hey After All the process at last when i enter the Name and password in Squirrelmail -webmail page then it is showing :-

    ERROR: Connection dropped by IMAP server.

    Here i m stuck . Plzzzzzzzz Help Me at this point !!!

    Thnk you in Advance :;-)

    • Gaurav
      January 7, 2012 at 11:28 am

      Finally I take it out ..


      • kashif
        May 7, 2012 at 10:39 am

        please help me about email server it say connection dropped by imap server…………… plezeeeeeeeeeeeeeeee

        • James M.
          July 31, 2012 at 3:11 pm

          I had a confusion at the end about login as well; for those who got:


          Go to hmailserver, check in advanced tab on the left, under IP ranges for AUTO-BAN – this would have been created after invalid login attempts.

          Then, even after correctly logging in (hmailserver email = USER) at squirrelmail login page it still wouldn’t work.

          FIX: delete AUTO-BAN entry from left menu + change MYCOMPUTER priority to 30 to prevent banning you in the future.

          Hope this helps.

          • James M.
            July 31, 2012 at 3:13 pm

            PLEASE copy paste to others with same problem so they can be helped out.

            They really, really helped me out.

      • matt
        May 28, 2012 at 1:54 am

        How did you do it i have the same problem

    • dereklee
      March 21, 2012 at 1:56 pm

      hi may i know how you solved the problem? 🙂

  18. Talha Khalil
    Talha Khalil
    January 8, 2012 at 6:39 am

    damn this is so cool!

  19. Mukhtar
    January 23, 2012 at 8:51 am

    please i try this tutorial to create an email server i don’t know why is not working i need help the hmailserver where i will add the lines to my Domain name when i want to save it , it kip on asking me if i am using it in another program i restart the system and start refresh but still the same msgbox is popping. tnkx contact me at

  20. XXXX
    February 1, 2012 at 7:04 pm

    It is really a great video, and i applied it on my computer and it works, but when I opened Squirrel Mail and logged in, i tried to send emails to my friends on Hotmail and Yahoo, but that didn’t work,
    so know I want to ask you:
    How I can send emails to Hotmail and Yahoo users?????
    I wish you can answer me quickly, and thank you!!!!!!!!!!!

  21. vaishal
    March 1, 2012 at 7:32 pm

    HI i cant send mail on any website email id and also not receive what is the problem

  22. derek
    March 21, 2012 at 6:55 am

    hi i am having problem with connection drop by imap serve error…how can i fix it..please help !@

  23. dhananjay
    April 3, 2012 at 7:41 am

    login in squirrel mail i am getting the error msg………..”Error connecting to IMAP server: dhananjay.local .
    0 : php_network_getaddresses: getaddrinfo failed: No such host is known.”
    pls tell me how to resolve this problem

  24. dan
    April 15, 2012 at 4:44 am

    Me too got this error : ERROR: Connection dropped by IMAP server.

    Please help us thanks.

  25. Daniel
    April 20, 2012 at 1:18 am

    Me too got this error : ERROR: Connection dropped by IMAP server.

    Please help us thanks.

  26. Daniel
    April 20, 2012 at 1:18 am

    please help ERROR: Connection dropped by IMAP server.

  27. kashif
    May 7, 2012 at 10:39 am

    please help me about email server it say ERROR: connection dropped by imap server…….

  28. doctorwho
    October 12, 2012 at 6:21 pm

    Hi Great Idea i have always wanted a m own email server but…
    I Couldn’t edit the host file in the divers/etc file and i got this error when i tried to connect:
    Error connecting to IMAP server: #########.
    0 : php_network_getaddresses: getaddrinfo failed: No such host is known.

    Please help!

  29. Card Transaction
    Card Transaction
    October 16, 2012 at 10:31 am

    Thank you, I’ve just been searching for info approximately this subject for a while and yours is the greatest I have came upon so far. However, what concerning the conclusion? Are you sure about the supply?

  30. Darren
    December 14, 2012 at 2:22 pm

    In Final step when i tried to login it says

    “SquirrelMail version 1.4.22
    By the SquirrelMail Project Team
    Error connecting to IMAP server: deals.local.
    0 : php_network_getaddresses: getaddrinfo failed: No such host is known. ”

    any help ??

      July 27, 2013 at 4:47 pm

      i face the same can i solve the problem.pls tell me

  31. Aaron Maynard
    Aaron Maynard
    June 19, 2013 at 7:32 pm

    ( ! ) Strict standards: Declaration of Deliver_SMTP::initStream() should be compatible with Deliver::initStream($message, $length = 0, $host = ”, $port = ”, $user = ”, $pass = ”) in C:squirrelmailclassdeliverDeliver_SMTP.class.php on line 369
    Call Stack
    # Time Memory Function Location
    1 0.0040 746912 {main}( ) ..compose.php:0
    2 0.0433 4437288 deliverMessage( ) ..compose.php:490
    Message not sent. Server replied:
    php_network_getaddresses: getaddrinfo failed: No such host is known.
    0 Can’t open SMTP stream.

    Help me fellow tinkernerdz!

  32. Eli Kleine
    Eli Kleine
    August 3, 2013 at 12:47 am

    Okay if your webmail server with log in page is running would it also be possible to have an subscribe page so people can make theyr own e-mail acount with your domain?

  33. Chowix40
    August 22, 2015 at 7:37 pm

    i send emails to my gmail and it doesnt work. also how do i send emails to it? HELP PLEASE!!

Leave a Reply