I've recently discovered the /etc/services file. If I want to disable a service, is this a safe place to do it?
For example, the package dovecot-imap automatically associates IMAP with 143. I've set up IMAPS on port 993 and was thinking I may just unmap 143-->IMAP leaving only the secure 993-->IMAPS in /etc/services by commenting out the line for 143.
Is this safe/recommended?
Is there a better way to do it?
I'm asking more for my general understanding of Linux, rather than because I can't do it any other way (my server is behind a router, so I can just not forward port 143). I still think it's an interesting question - what do people do if they're running a server that isn't behind a router? I guess they would use a firewall?
Other ways of disabling IMAP on 143 in Dovecot would answer this particular question, but I'd still like to get a feel for what constitutes an "appropriate" use of /etc/services.
Thanks,
Feathers
For example, the package dovecot-imap automatically associates IMAP with 143. I've set up IMAPS on port 993 and was thinking I may just unmap 143-->IMAP leaving only the secure 993-->IMAPS in /etc/services by commenting out the line for 143.
Is this safe/recommended?
Is there a better way to do it?
I'm asking more for my general understanding of Linux, rather than because I can't do it any other way (my server is behind a router, so I can just not forward port 143). I still think it's an interesting question - what do people do if they're running a server that isn't behind a router? I guess they would use a firewall?
Other ways of disabling IMAP on 143 in Dovecot would answer this particular question, but I'd still like to get a feel for what constitutes an "appropriate" use of /etc/services.
Thanks,
Feathers
Comment