Postfix: could not connect to port 25

Posted on 2005-05-06
Last Modified: 2013-12-15
My OS: Fedora core 3
Mail server: Postfix-2.1.5-5 ( rpm )
Here is my mail server config ( change from defaul config )
inet_interface=$myhostname, localhost
mydestination= $myhostname, localhost,          localhost.$mydomain
mynetwork_style = host ( -------- Internet )
home_mailbox = Mailbox
mail_spool_directory = /var/spool/mail
.... others is default
- nmap localhost: 25 smtp ( Ok)
- telnet localhost 25 -> postfix mail server -> Ok
- filewall OFF
telnet 25  from a client -> Could not open connection to the host on port 25

??? Could you help me!
Question by:Kien Kennedy
    1 Comment
    LVL 40

    Accepted Solution

    Is equated to an IP in /etc/hosts or will a DNS lookup of return an IP?. You've told postfix to listen on the IP associated with and localhost (inet_interface=$myhostname, localhost) but if it can't look up the IP that won't work.

    In almost all cases you need to be using a fully qualified domain name ( rather than the domain ( And that hostname must be resolvable to an IP via /etc/hosts or via DNS.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
    Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now