From 01891b85fdb5cf72a1e9c5d304ec2c61b90a7506 Mon Sep 17 00:00:00 2001 From: Antoine Nguyen Date: Wed, 21 Oct 2020 19:22:35 +0200 Subject: [PATCH] policyd: Replaced 127.0.0.1 by localhost. see #2028 --- doc/manual_installation/postfix.rst | 2 +- modoboa/policyd/management/commands/policy_daemon.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/manual_installation/postfix.rst b/doc/manual_installation/postfix.rst index 6d331addb..4d9d7e9ea 100644 --- a/doc/manual_installation/postfix.rst +++ b/doc/manual_installation/postfix.rst @@ -76,7 +76,7 @@ content to the :file:`/etc/postfix/main.cf` file:: smtpd_recipient_restrictions = # ... - check_policy_service inet:127.0.0.1:9999 + check_policy_service inet:localhost:9999 # ... And reload postfix. diff --git a/modoboa/policyd/management/commands/policy_daemon.py b/modoboa/policyd/management/commands/policy_daemon.py index a454e032d..e0b135853 100644 --- a/modoboa/policyd/management/commands/policy_daemon.py +++ b/modoboa/policyd/management/commands/policy_daemon.py @@ -25,7 +25,7 @@ class Command(BaseCommand): def add_arguments(self, parser): """Add command line arguments.""" - parser.add_argument("--host", type=str, default="127.0.0.1") + parser.add_argument("--host", type=str, default="localhost") parser.add_argument("--port", type=int, default=9999) parser.add_argument("--debug", action="store_true", help="Enable debug mode")