I have been getting network is unreachable errors every time i try to use php to mail something out.
alt2.gmail-smtp-in.l.google.com [2a00:1450:4010:c03::1a] Network is unreachable
alt3.gmail-smtp-in.l.google.com [2607:f8b0:400e:c03::1a] Network is unreachable
I have tried researching around to see what could the problem be, and it seems that enabling ipv6 would cause some issues. Hence, I have attempted to disable ipv6 on my server by doing the following:
I added these lines to sysctl.conf
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
net.ipv6.conf.eth0.disable_ipv6 = 1
and commented out the ipv6 address in the /etc/hosts file
I am not too sure if I am still missing out anything because it doesn't seem to work! Hope someone can help me out with this!
Update: ifconfig -a
eth0 Link encap:Ethernet HWaddr 42:01:0a:f0:64:e1
inet addr:10.240.100.225 Bcast:10.240.100.225 Mask:255.255.255.255
UP BROADCAST RUNNING MULTICAST MTU:1460 Metric:1
RX packets:2491 errors:0 dropped:0 overruns:0 frame:0
TX packets:2594 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:301672 (294.6 KiB) TX bytes:356294 (347.9 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Update:
I am getting other connection timed out errors too while attempting to send new mails. But the mails did not get to the desired recipient.
eforward3.registrar-servers.com [38.101.213.206] Connection timed out
Update:
traceroute -n -T -p 80 38.101.213.206
traceroute to 38.101.213.206 (38.101.213.206), 30 hops max, 60 byte packets
1 64.233.174.176 136.720 ms 136.710 ms 136.668 ms
2 64.233.174.176 136.673 ms 136.670 ms 136.679 ms
3 64.233.174.176 136.681 ms 136.675 ms 209.85.242.89 136.661 ms
4 64.233.174.176 136.644 ms 209.85.242.89 136.615 ms 64.233.174.176 136.646 ms
5 209.85.242.89 163.646 ms 64.233.174.176 136.619 ms 209.85.242.89 163.611 ms
6 64.233.174.176 136.617 ms 136.493 ms 209.85.242.89 180.663 ms
7 209.85.242.89 180.643 ms 64.233.174.176 136.448 ms 136.437 ms
8 64.233.174.176 136.425 ms 136.325 ms 136.310 ms
9 209.85.242.89 180.503 ms 180.487 ms 64.233.174.176 136.277 ms
10 209.85.242.89 180.106 ms 64.233.174.176 136.159 ms 136.115 ms
11 209.85.242.89 153.688 ms 64.233.174.176 136.423 ms 178.986 ms
12 64.233.174.176 178.866 ms 178.866 ms 178.939 ms
13 64.233.174.205 136.899 ms 136.894 ms 136.714 ms
14 154.54.27.161 154.155 ms 209.85.250.62 136.623 ms 154.54.27.161 153.607 ms
15 209.85.249.4 139.747 ms 139.370 ms 209.85.249.2 136.117 ms
16 38.88.224.5 139.138 ms 139.234 ms 139.170 ms
17 154.54.45.30 197.888 ms 154.54.6.105 137.433 ms 154.54.28.62 196.700 ms
18 154.54.27.237 150.673 ms 154.54.27.169 149.094 ms 149.232 ms
19 154.54.5.65 195.015 ms 154.54.7.53 195.410 ms 154.54.5.65 194.558 ms
20 154.54.29.221 196.056 ms 195.939 ms 196.722 ms
21 154.54.28.62 197.622 ms * *
22 * * 38.20.62.218 196.091 ms
23 38.20.62.218 195.919 ms 38.122.18.154 199.002 ms 38.20.62.222 195.254 ms
24 38.122.18.154 198.058 ms 38.101.213.206 197.167 ms 195.442 ms
traceroute -n -T -p 25 38.101.213.206
traceroute to 38.101.213.206 (38.101.213.206), 30 hops max, 60 byte packets
1 * * *
2 * * *
3 * * *
4 * * *
5 * * *
6 * * *
7 * * *
8 * * *
9 * * *
10 * * *
11 * * *
12 * * *
13 * * *
14 * * *
15 * * *
16 * * *
17 * * *
18 * * *
19 * * *
20 * * *
21 * * *
22 * * *
23 * * *
24 * * *
25 * * *
26 * * *
27 * * *
28 * * *
29 * * *
30 * * *
Telnet: I don't think I have it installed. Will I require it?