Having to use IPv6 has caused me nothing but headaches. From servers being unreachable to (in this case), not being able to configure Smart Hosts. Is there a way to disable ipv6 permanently on nethserver so I can use the features as normal? IPv6 is not supported/enabled in my internal network.
I’ve followed MrMarkuz about creating a postfix template. When that didn’t work I followed this:
After that didn’t work I rebooted the machine and now I cannot access the webUI anymore (ERR_CONNECTION_REFUSED) on port 9090.
Port 80 works fine though, but as soon as I click on Server Manager I get above error.
I’m using the internal IP of the server so its not a DNS issue or something like that.
The service was unable to start, running journalctl -xe gives me this:
[root@proxy ~]# journalctl -xe
Mar 07 13:47:23 rspamd[3086]: <i46iun>; lua; bayes_expiry.lua:447: tokens occurrences, in spam: {nil}
Mar 07 13:47:23 rspamd[3086]: <i46iun>; lua; bayes_expiry.lua:447: tokens occurrences, total: {nil}
Mar 07 13:47:27 rspamd[3086]: <1u5hdp>; map; http_map_finish: data is not modified for server maps.rspamd.com, next check at Mon, 07 Mar 2022 16:47:27 GMT (http cache based: Mon, 07 Mar
Mar 07 13:47:27 kernel: Shorewall:net2fw:DROP:IN=enp4s0 OUT= MAC=bc:5f:f4:0b:86:1a:18:35:d1:09:b0:48:08:00 SRC=88.198.198.21 DST=192.168.2.236 LEN=40 TOS=0x00 PREC=0x00 TTL=54 ID=4788 D
Mar 07 13:47:27 kernel: Shorewall:net2fw:DROP:IN=enp4s0 OUT= MAC=bc:5f:f4:0b:86:1a:18:35:d1:09:b0:48:08:00 SRC=88.198.198.21 DST=192.168.2.236 LEN=40 TOS=0x00 PREC=0x00 TTL=54 ID=4789 D
Mar 07 13:47:28 rspamd[3086]: <dyatkr>; map; http_map_finish: data is not modified for server maps.rspamd.com, next check at Mon, 07 Mar 2022 16:47:28 GMT (http cache based: Mon, 07 Mar
Mar 07 13:47:28 rspamd[3086]: <o33omj>; map; http_map_finish: data is not modified for server maps.rspamd.com, next check at Mon, 07 Mar 2022 16:42:55 GMT (http cache based: Mon, 07 Mar
Mar 07 13:47:28 kernel: Shorewall:net2fw:DROP:IN=enp4s0 OUT= MAC=bc:5f:f4:0b:86:1a:18:35:d1:09:b0:48:08:00 SRC=88.198.198.21 DST=192.168.2.236 LEN=40 TOS=0x00 PREC=0x00 TTL=54 ID=5586 D
Mar 07 13:47:28 kernel: Shorewall:net2fw:DROP:IN=enp4s0 OUT= MAC=bc:5f:f4:0b:86:1a:18:35:d1:09:b0:48:08:00 SRC=151.115.41.123 DST=192.168.2.236 LEN=40 TOS=0x00 PREC=0x00 TTL=51 ID=26586
Mar 07 13:47:28 kernel: Shorewall:net2fw:DROP:IN=enp4s0 OUT= MAC=bc:5f:f4:0b:86:1a:18:35:d1:09:b0:48:08:00 SRC=151.115.41.123 DST=192.168.2.236 LEN=40 TOS=0x00 PREC=0x00 TTL=51 ID=26587
Mar 07 13:47:31 polkitd[827]: Registered Authentication Agent for unix-process:10010:440942 (system bus name :1.26 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freed
Mar 07 13:47:31 systemd[1]: cockpit.socket failed to listen on sockets: Address family not supported by protocol
Mar 07 13:47:31 systemd[1]: Starting Cockpit Web Service Socket.
-- Subject: Unit cockpit.socket has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit cockpit.socket has begun starting up.
Mar 07 13:47:31 systemd[1]: Failed to listen on Cockpit Web Service Socket.
-- Subject: Unit cockpit.socket has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit cockpit.socket has failed.
--
-- The result is failed.
Mar 07 13:47:31 systemd[1]: Dependency failed for Cockpit Web Service.
-- Subject: Unit cockpit.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit cockpit.service has failed.
--
-- The result is dependency.
Mar 07 13:47:31 systemd[1]: Job cockpit.service/start failed with result 'dependency'.
Mar 07 13:47:31 polkitd[827]: Unregistered Authentication Agent for unix-process:10010:440942 (system bus name :1.26, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale
Mar 07 13:47:31 systemd[1]: Unit cockpit.socket entered failed state.
Mar 07 13:47:31 systemd[1]: Starting Cockpit motd updater service...
-- Subject: Unit cockpit-motd.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit cockpit-motd.service has begun starting up.
Mar 07 13:47:31 systemd[1]: Started Cockpit motd updater service.
-- Subject: Unit cockpit-motd.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit cockpit-motd.service has finished starting up.
--
-- The start-up result is done.
[root@proxy ~]#
I wouldn’t know if mailing would work because both the Smart Host options and configuring the Email package does not work. /var/log/maillog does not show any errors so that’s a good sign I think.
The host does not use port 25 I noticed but when I tried the correct port number it also didn’t work.
I also tried a different smart host (both are pingable from Neth) but that just gives the same weird behavior.
The firewall that is installed on Nethserver isn’t configured yet (doesn’t have any interfaces as I only use a green interface).
I think I figured it out, trying a different host on the same port gave me nothing in the logs.
Changing the port from 465 to 587 however revealed that the smart host I’m using uses a cipher which is not supported by Nethserver. Changing the smart host to my work email worked.
The cipher that doesn’t work is ECDHE-RSA-AES256-GCM-SHA384
The cipher that does work is ECDHE-RSA-AES128-GCM-SHA256
Is there any plan to start supporting the first cipher?
Closing this as my original question was answered and now we know why the smart host didn’t work.