1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-11-24 02:37:05 +00:00
mailinabox/management
Joshua Tauberer 6d259a6e12 use "127.0.0.1" throughout rather than mixing use of an IP address and "localhost"
On some machines localhost is defined as something other than 127.0.0.1, and if we mix "127.0.0.1" and "localhost" then some connections won't be to to the address a service is actually running on.

This was the case with DKIM: It was running on "localhost" but Postfix was connecting to it at 127.0.0.1. (https://discourse.mailinabox.email/t/opendkim-is-not-running-port-8891/1188/12.)

I suppose "localhost" could be an alias to an IPv6 address? We don't really want local services binding on IPv6, so use "127.0.0.1" to be explicit and don't use "localhost" to be sure we get an IPv4 address.

Fixes #797
2016-05-06 09:10:38 -04:00
..
templates Merge #795 - Upgrade Bootstrap 3.3.5 to 3.3.6 2016-04-24 06:27:50 -04:00
auth.py the control panel auth hmac message should also include the user's password so that resetting a password in the database forces that user to log in to the control panel again; also use a sha256 hmac 2015-06-06 12:38:19 +00:00
backup.py the logic in 4ed23f44e6 for taking backups more often was partly backward 2016-02-18 07:50:59 -05:00
csr_country_codes.tsv drop the CSR_COUNTRY setting and ask within the control panel 2015-12-26 11:48:23 -05:00
daemon.py Add generic login failed message 2016-03-26 14:06:43 +01:00
daily_tasks.sh nightly status checks could fail if any domains had non-ASCII characters 2016-02-13 11:51:06 -05:00
dns_update.py Check MX priority. 2016-03-22 03:07:14 +08:00
email_administrator.py use "127.0.0.1" throughout rather than mixing use of an IP address and "localhost" 2016-05-06 09:10:38 -04:00
mail_log.py experimentally scanning the mail log to see if we can infer a good time to take a backup 2015-10-22 10:35:14 +00:00
mailconfig.py Allow files in /home/user-data/mail/mailboxes 2016-02-21 13:49:07 +01:00
ssl_certificates.py ssl_certificates: also forgot to catch free_tls_certificates.client.RateLimited 2016-03-06 14:39:34 -05:00
status_checks.py move the reboot button, fix grammar, refactor check for DRY, add changelog entry 2016-03-23 16:37:15 -04:00
utils.py merge functions get_web_domains and get_default_www_redirects 2015-11-29 14:46:08 +00:00
web_update.py provision tls certificates from the control panel 2016-01-04 18:43:16 -05:00