Virtual Users And Domains With Postfix, Courier And MySQL (CentOS 5.1)

Discussion in 'HOWTO-Related Questions' started by frankh, Jan 23, 2008.

  1. frankh

    frankh New Member

    For some reason, when I try to telnet to localhost (at 14. in the how-to, page 5), I get no response

    #telnet localhost 25
    Trying 127.0.0.1...
    Connected to localhost.localdomain (127.0.0.1).
    Escape character is bla-blah

    This looks normal, of course. But when I type "ehlo something", or anything at all, there is absolutely no replyn from the terminal. "quit" doesn't even quit, and the telnet session cannot be killed. I have to kill the terminal windows and open a new one to continue.

    Any ideas? Telnetting to pop3 (110) works fine, as do 10024 works. But 10025 fails in the same way. This tells me with no uncertainty that the problem is the SMTP server (Postfix), since both 25 and 10025 maps to that service. Correct me if I'm wrong.
     
    Last edited: Jan 23, 2008
  2. falko

    falko Super Moderator Howtoforge Staff

    Any errors in your mail log?
     
  3. frankh

    frankh New Member

    Nope. Nothing.
     
  4. falko

    falko Super Moderator Howtoforge Staff

    What's the value of myorigin in /etc/postfix/main.cf? What's the output of
    Code:
    hostname
    and
    Code:
    hostname -f
    ? What's in /etc/hosts and /etc/resolv.conf?
     
  5. frankh

    frankh New Member

    Hmmm..for some reason, that line is just commented out:
    #$myorigin = $myhostname
    #$myorigin = $mydomain

    Both $myhostname and $mydomain was commented out also, but had the right values. I tried uncommenting $mydomain and $myhostname, then uncommenting $myorigin = $myhostname. Restarted postfix. No change.

    ldapmaster.testnet.com (the FQDN)

    The same as in just "hostname"


    127.0.0.1 ldapmaster.testnet.com localhost.localdomain localhost dapmaster

    My name servers.
     
  6. falko

    falko Super Moderator Howtoforge Staff

    Make it look like this instead:
    Code:
    127.0.0.1  localhost.localdomain  localhost 
    1.2.3.4 ldapmaster.testnet.com ldapmaster
    Replace 1.2.3.4 with your system's IP address.
     
  7. frankh

    frankh New Member

    No help at all. Still the same - when telnetting to the SMTP server, it hangs so that I have to kill the terminal.
     
  8. falko

    falko Super Moderator Howtoforge Staff

    And there's nothing in your mail log?
    What's in /etc/postfix/main.cf?
     

Share This Page