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 (jwheelubuntu.mooo.com) but when I do

    telnet jwheelubuntu.mooo.com 25 I get error message

    Trying 72.184.41.101...
    Connected to jwheelubuntu.mooo.com.
    Escape character is '^]'.
    Connection closed by foreign host.

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

    telnet mail.jwheelubuntu.mooo.com 25 in order to do a test but that gives me error message

    telnet: could not resolve mail.jwheelubuntu.mooo.com/25: Name or service not known

    The tutorial I am following is located at https://help.ubuntu.com/community/PostfixBasicSetupHowto

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

    Thanks
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Any errors in your mail log? What's in /etc/postfix/main.cf?
     
  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 ;)

    /etc/postfix/main.cf

    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...

    From:
    mynetworks = 127.0.0.0/8,192.168.2.1/24

    To:
    mynetworks = 127.0.0.0/8,192.168.2.0/24

    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/main.cf

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

    and

    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.

    :mad:

    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