Nov 8, 2018

How to fix: Connection Refused for newly installed Postfix

Newly installed Postfix, you can

$telnet 127.0.0.1 25

But if you

$telnet 192.168.1.90 25

You get:


Trying 192.168.1.90...
telnet: connect to address 192.168.1.90: Connection refused

Solution:
Edit file - /etc/postfix/main.cf
Change:
From - #inet_interfaces = all
To - inet_interfaces = all

Change:
From - mynetworks = 127.0.0.0/8
To - mynetworks = 192.168.1.0/24, 127.0.0.0/8

Then restart Postfix.