Find the answer to your Linux question:
Results 1 to 7 of 7
Hi guys and girls, hopefully someone will know the answer to this question as it is driving me nuts. I have Postfix running on our local server, sending out alerts ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2009
    Location
    Geelong, Australia
    Posts
    13

    Unhappy Postfix Connection Refused Error


    Hi guys and girls, hopefully someone will know the answer to this question as it is driving me nuts. I have Postfix running on our local server, sending out alerts and stuff, however I have now noticed that it cannot receive mail for the local users on that server. I checked the logs on the local server and there is no mention of the mail even getting to the server. I checked the logs of the server I was sending the mail from and found the following error in the logs:
    DomainName[IPAddress] Connection Refused [Port]
    I have shutdown the firewall everything, and still cannot get it to send mail. I thought it was really strange that the logs showed nothing on the receiving end. Any help anyone could provide would be fantastic.

  2. #2
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    Location
    North Carolina
    Posts
    1,077
    test it with telnet
    telnet email - Google Search

    that way you can find out if its a firewall, network, or smtp server issue.

    report back with errors found above if you need more help

  3. #3
    Just Joined!
    Join Date
    Sep 2009
    Location
    Geelong, Australia
    Posts
    13
    Hi, I tried with telnet and got the same connection refused error. I use csf as a firewall and have the ports added. I tired with the firewall turned off and still got the same error.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    Location
    North Carolina
    Posts
    1,077
    is postfix listening? can you try to connect over telnet on that machine?

    you can run
    Code:
    lsof -ni
    to see what port its listening on

  6. #5
    Just Joined!
    Join Date
    Sep 2009
    Location
    Geelong, Australia
    Posts
    13
    No, I recieve the same connection refused error when I attempt to telnet on port 25. This is the result of that

    command you gave me. I find it strange that all the others have ports where this one only says smtp:
    master 3644 root 12u IPv4 8378 0t0 TCP 127.0.0.1:smtp (LISTEN)
    I also had another thought, I don't control the DNS settings directly, but could this be caused by a missing MX record? In the logs the domain name is being resolved however I was talking with another staff member and they didn't believe we have an MX record for this particular server.

  7. #6
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    Location
    North Carolina
    Posts
    1,077
    has this ever worked or are you just now wanting this funtionality?

    It sounds like postfix isn't listening for incoming connections, as shown from your lsof post, its listening on 127.0.0.1 ONLY

    your solution might be similar to this
    NEOHAPSIS - Peace of Mind Through Integrity and Insight

  8. #7
    Just Joined!
    Join Date
    Sep 2009
    Location
    Geelong, Australia
    Posts
    13
    You were right, postfix was only listening to localhost! Thanks for your help man.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •