| Linode Forum https://forum.linode.com/ |
|
| Postfix Connection issues https://forum.linode.com/viewtopic.php?f=11&t=7399 |
Page 1 of 1 |
| Author: | k7faq [ Mon Jul 11, 2011 7:15 pm ] |
| Post subject: | Postfix Connection issues |
Hello, I tried following http://library.linode.com/email/postfix ... 0.04-lucid to get you started by the recommendation of @derfy. The problem as I see it now is that I am unable to connect to Postfix. It seems as there is a setting missing to allow connections via the public IP Address. Possibly someone can help me understand the problem at this point? I am not sure where/what I should be looking for. The goal of this configuration is to allow mail to be 'relayed' via one specific account. Anything and EVERYTHING else should be ignored. Thank you for your thoughts. Example: Telnet to 127.0.0.1 25 works, but is slow to initially answer. and Telnet localhost 25 works nice and fast. Both send the email immediately. However Telnet 96.126.120.146 results in "Connection closed by foreign host." root@li369-146:~# telnet 96.126.120.146 25 Trying 96.126.120.146... Connected to 96.126.120.146. Escape character is '^]'. Connection closed by foreign host. Code: root@li369-146:~# telnet 96.126.120.146 25 Code: root@li369-146:~# telnet localhost 25 Code: netstat -tap returns Code: root@li369-146:~# netstat -tap main.cf Code: root@li369-146:~# cat /etc/postfix/main.cf |
|
| Author: | derfy [ Mon Jul 11, 2011 8:05 pm ] |
| Post subject: | |
I get the same behavior here, too. Try adding a '-v' to your 'smtp' setting in /etc/postfix/master.cf, like this: http://derfy.net/images/linode02.png Then restart postfix and try to send mail again. The log (/var/log/mail.log) *should* have some useful information about why it is dropping people. Edit: after testing, you'll want to remove 96.126.120.146/8 from this line: Quote: mynetworks = 127.0.0.0/8, 96.126.120.146/8
By putting that there, you allow 96.0.0.0/8 to relay through your server. |
|
| Author: | skavoovie [ Mon Sep 12, 2011 12:04 am ] |
| Post subject: | |
No, change your mynetworks value NOW -- that is what is causing the issue. 96.126.120.146/8 is totally invalid ( 96.126.120.146/8 != 96.0.0.0/8 ), and as a result Postfix is refusing the connections entirely as it has no clue what you really meant. Change it to a /32 and restart Postfix. I suspect your issue will immediately be resolved. Code: mynetworks = 127.0.0.0/8, 96.126.120.146/32 or even: Code: mynetworks = 127.0.0.1/32, 96.126.120.146/32 |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|