Postfix Problem

Hello,

I have a problem remotely connecting to the postfix. It sais "Connection refused".

[root@localhost ~]# telnet 104.200.16.232 25
Trying 104.200.16.232...
telnet: connect to address 104.200.16.232: Connection refused

But the postfix is started and running.

[root@localhost ~]# telnet 127.0.0.1 25
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
220 localhost.localdomain ESMTP Postfix

Any help?

You will need to confirm where you are running these two commands. Is 104.200.16.232 the server that you run the 2nd command on?

Other questions that spring to mind:-

  • What OS and version do you have for each?
  • Is SMTP listening only to the local/dummy network not the public one
  • Is there a network/hardware firewall in play between your two servers?
  • Are there IPSec/ACL rules (software firewall) in play?

A bit more clarity and context might help us to help you.

Kind regards,
Robin

What's the value of the parameter inet_interfaces in /etc/postfix/main.cf ? Run one of the following commands to find that out:

$ grep ^inet_interfaces /etc/postfix/main.cf

or (even better)

# postconf inet_interfaces

I managed to do it. The "inet_interface" was the problem. Thanks for the assistance.