It happen when configuring postfix and dovecot on a new installation where httpd ran fine.
I have no clue what i fubar’ed.
httpd won’t start anymore useing systemctl:
(13)Permission denied: AH00072: make_sock: could not bind to address [::]:80
Same goes for postfix.service:
postfix/master[1093]: fatal: bind ######:10::aaf port 25: Permission denied
and
dovecot[1277]: Error: service(imap-login): listen(#######:10::aaf, 993) failed:
When I start them as root from a terminal they run OK:
Feel free to share the contents of your error logs. You can also temporarily increase the verbosity of the logs by altering the systemd units. Add -e debug to the httpdExecStart= and -v to postfix.
The logs don’t say much, so again, maybe try increasing the log verbosity.
Right now we can only guess, so let’s try to rule out selinux. Please set it temporarily to permissive mode and check if you can start the services. After that don’t forget to turn it back on.
Following the debug suggestion of hs303 I determined that selinux refused permission on the ports. So I ran a full restorecon, an omission that I ran into before.
This does not solve the problem. I than investigated the selinix system modifications performed ‘on the suggestion of’ the SELinux access control errors reported bij cockpit. All involved ports are modified conform these suggestions:
port -a -t ssh_port_t -r ‘s0’ -p tcp 25
port -a -t ssh_port_t -r ‘s0’ -p tcp 80
port -a -t ssh_port_t -r ‘s0’ -p tcp 443
port -a -t ssh_port_t -r ‘s0’ -p tcp 465
port -a -t ssh_port_t -r ‘s0’ -p tcp 587
port -a -t ssh_port_t -r ‘s0’ -p tcp 993
port -a -t ssh_port_t -r ‘s0’ -p tcp 995
There are no selinux -errors reported. How do i find out what’s bothering selinux ?
Analysis showed that the extra flag ssh_port_t put on the ports made them ssh ports. Removing this flag: semanage port -d -t ssh_port_t -p tcp [port#] fixed it.
Only port 25 is still refused. Will keep looking where/how that happens.
Learned a lot from all replies; thanks again.