Connection closed by foreign host. (Mail server)

Discussion in 'Server Operation' started by jwheel, Nov 18, 2007.

  1. jwheel

    jwheel New Member

    Hi, I fairly new to Ubuntu (and linux in general). I recently started messing around with it about 3 weeks ago because I can see a definite use for it and Im really intrigued. I am running 7.10 server, I have apache/ftp/mysql and php all configured and I believe working fine.

    I recently got interested in setting up an email server. I'm not all that savvy when it comes to setting up the email server for use from the internet, Im sure thatś where I´m going wrong. I set up a dynamic domain and it ¨seems" to work ( but when I do

    telnet 25 I get error message

    Connected to
    Escape character is '^]'.
    Connection closed by foreign host.

    Supposedly (according to a tutorial Im following) I should be able to

    telnet 25 in order to do a test but that gives me error message

    telnet: could not resolve Name or service not known

    The tutorial I am following is located at

    I´m sure you will need more info, I will supply whatever it is I need to. Any help is greatly appreciated!

  2. falko

    falko Super Moderator ISPConfig Developer

    Any errors in your mail log? What's in /etc/postfix/
  3. jwheel

    jwheel New Member

    Mail.log -- I have a LOT of stuff in my mail.log file, but something that sticks out to me quite often is...

    I can post more if you like, itś a pretty long file though, I guess I made a lot of mistakes ;)


    Thanks for the help, if you need anything else I will post it as soon as I can. This is driving me nutso!
  4. jwheel

    jwheel New Member

    I made some changes (as per the mail.log suggested). I didnt even know about the mail.log file until it was suggested to look there. As per the log suggested, I made the following change...

    mynetworks =,

    mynetworks =,

    All seemed to work fine after this. HOWEVER, I made some further changes and now my incoming email is being rejected. All I did is follow the guide in order to set up SASL. Below are the changes I made to my /etc/postfix/

    I also made some changes to my /etc/default/saslauthd


    Then I performed this command

    Now my incoming email gets rejected. The mail.log file returns the following...

  5. jwheel

    jwheel New Member

    Ack! I think I found my error...I skipped a couple crucial steps on accident.


    I think all is ok now! I still don´t know if itś set up ¨perfectly" well, but it is working nontheless. ;)

Share This Page