Background:
I recently came across this problem and after searching for hours I still did not get the entire solution in one thread. I eventually resolved the problem using other information picked up from other threads within the Linux Questions site.
I thought i would make it easier to find in one place by posting my solution here.
Problem:
After setting up Postfix and configuring the config files, when trying to access the server on port 25 by telnet to the localhost (127.0.0.1) we gain access to the server. If you telnet to another interface on the same machine for example 192.168.30.x on port 25 you get "Connection refused".
Solution:
Edit file - /etc/postfix/main.cf
Change:
From - #inet_interfaces = all
To - inet_interfaces = all
Change:
From - #mynetworks_style = subnet
To - mynetworks_style = subnet
Change:
From - mynetworks = 127.0.0.0/8
To - mynetworks = 192.168.30.0/24, 127.0.0.0/8, 172.17.0.0/16 <-- br="" docker="" network="">Edit file - /etc/postfix/master.cf
Change:
From - smtp inet n - n - - smtpd
To - 0.0.0.0:smtp inet n - n - - smtpd
Then restart the Postfix server:
/etc/postfix/postfix stop
/etc/postfix/postfix start
-->
I recently came across this problem and after searching for hours I still did not get the entire solution in one thread. I eventually resolved the problem using other information picked up from other threads within the Linux Questions site.
I thought i would make it easier to find in one place by posting my solution here.
Problem:
After setting up Postfix and configuring the config files, when trying to access the server on port 25 by telnet to the localhost (127.0.0.1) we gain access to the server. If you telnet to another interface on the same machine for example 192.168.30.x on port 25 you get "Connection refused".
Solution:
Edit file - /etc/postfix/main.cf
Change:
From - #inet_interfaces = all
To - inet_interfaces = all
Change:
From - #mynetworks_style = subnet
To - mynetworks_style = subnet
Change:
From - mynetworks = 127.0.0.0/8
To - mynetworks = 192.168.30.0/24, 127.0.0.0/8, 172.17.0.0/16 <-- br="" docker="" network="">Edit file - /etc/postfix/master.cf
Change:
From - smtp inet n - n - - smtpd
To - 0.0.0.0:smtp inet n - n - - smtpd
Then restart the Postfix server:
/etc/postfix/postfix stop
/etc/postfix/postfix start
-->
Comments
Post a Comment
https://gengwg.blogspot.com/