I realize this is a broad question if asked in the context of various daemons, services, scripts, etc. I'm relating to WHM's resolver setup, when it was adviseable to replace the local host IP (127.0.0.1) with the server's main IP for security reasons, which made sense. So when does it not make sense to replace localhost settings with something more specific?
Let's take my mail system as an example:
In squirrelmail/config/config.php, for the $domain, $imapServerAddress, and $smtpServerAddress entries, should 'localhost' be replaced by the server's host name or IP? When I look into it, some say to do it this way, others say to do it the other way, while nobody disagrees that 'localhost' will always work.
Another case in point are my courier-imap/imapd and pop3d files, which seem to be using 127.0.0.1. Would I be better off using the server's IP?
Let's take my mail system as an example:
In squirrelmail/config/config.php, for the $domain, $imapServerAddress, and $smtpServerAddress entries, should 'localhost' be replaced by the server's host name or IP? When I look into it, some say to do it this way, others say to do it the other way, while nobody disagrees that 'localhost' will always work.
Another case in point are my courier-imap/imapd and pop3d files, which seem to be using 127.0.0.1. Would I be better off using the server's IP?