Postfix ipv4 set up problem

Hi Guys, I followed the tutorial for installing postfix and have it pretty much running. However in the mail logs i have

connect to[2a00:1450:400c:c05::1a]:25: Network is unreachable

reading your documentation you don’t support ipv6 so in my /etc/postfix/ I changed inet_interfaces = all to inet_interfaces = ipv4. Now when I try to restart postfix i get

postfix: fatal: config variable inet_interfaces: host not found: ipv4

I’ve been trawling the internet for a day or too but I’m not very knowledgeable on this network stuff and can’t find out what to to. I think its probably my /etc/hosts file but I’m not sure what to put in there.

my /etc/hosts file is localhost behappyhost

The following lines are desirable for IPv6 capable hosts

::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters

ifconfig outputs the following eth0 Link encap:Ethernet HWaddr 04:01:09:00:d9:01 inet addr: Bcast: Mask: inet6 addr: fe80::601:9ff:fe00:d901/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:33434204 errors:0 dropped:6 overruns:0 frame:0 TX packets:2249672603 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:3458227348 (3.4 GB) TX bytes:99888789748 (99.8 GB)

lo Link encap:Local Loopback inet addr: Mask: inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:24183 errors:0 dropped:0 overruns:0 frame:0 TX packets:24183 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:18406889 (18.4 MB) TX bytes:18406889 (18.4 MB)

I’m grateful for any help Regards Roy

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

One stupid thing to remember: if u send the mail from gmail via your postfix to gmail, then google ignores that. So you need to test that by not using a gmail address.

<b>“I followed the tutorial for installing postfix…”</b> <br> <br>Which one?