[GH-ISSUE #2028] Replace 127.0.0.1 by localhost by default for policyd #1506

Closed
opened 2026-02-27 11:17:26 +03:00 by kerem · 7 comments
Owner

Originally created by @AmazingBeu on GitHub (Oct 5, 2020).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/2028

By default, the policyd daemon listen on the 127.0.0.1 . Use "--host localhost" make the daemon listen on "127.0.0.1" and "::1".

It's not important, but can generate bugs in specific cases.

Originally created by @AmazingBeu on GitHub (Oct 5, 2020). Original GitHub issue: https://github.com/modoboa/modoboa/issues/2028 By default, the policyd daemon listen on the 127.0.0.1 . Use "--host localhost" make the daemon listen on "127.0.0.1" and "::1". It's not important, but can generate bugs in specific cases.
kerem 2026-02-27 11:17:26 +03:00
Author
Owner

@tonioo commented on GitHub (Oct 21, 2020):

@AmazingBeu Do you suggest I modify the default host to localhost?

<!-- gh-comment-id:713587731 --> @tonioo commented on GitHub (Oct 21, 2020): @AmazingBeu Do you suggest I modify the default host to localhost?
Author
Owner

@AmazingBeu commented on GitHub (Oct 21, 2020):

@tonioo Yes, in policyd and postfix.
But I thought of something else but it's more complicated. Maybe it could be nice to use unix sockets instead of the default tcp/ip sockets in Modoboa, for policyd and all other modules. All the software used seems to support this feature, but I'm not sure Modoboa allows you to define a unix socket for Webmail configuration for example.

<!-- gh-comment-id:713600040 --> @AmazingBeu commented on GitHub (Oct 21, 2020): @tonioo Yes, in policyd and postfix. But I thought of something else but it's more complicated. Maybe it could be nice to use unix sockets instead of the default tcp/ip sockets in Modoboa, for policyd and all other modules. All the software used seems to support this feature, but I'm not sure Modoboa allows you to define a unix socket for Webmail configuration for example.
Author
Owner

@tonioo commented on GitHub (Oct 21, 2020):

@AmazingBeu The webmail communicates using SMTP and IMAP protocols. I'm not sure postfix or dovecot support this...
About the policy daemon, it could be possible I guess but it's another story :)

<!-- gh-comment-id:713620806 --> @tonioo commented on GitHub (Oct 21, 2020): @AmazingBeu The webmail communicates using SMTP and IMAP protocols. I'm not sure postfix or dovecot support this... About the policy daemon, it could be possible I guess but it's another story :)
Author
Owner

@AmazingBeu commented on GitHub (Oct 21, 2020):

@tonioo from what i found: postfix, dovecot, amavis, opendkim, opendmarc and redis support unix socket.

<!-- gh-comment-id:713637311 --> @AmazingBeu commented on GitHub (Oct 21, 2020): @tonioo from what i found: postfix, dovecot, amavis, opendkim, opendmarc and redis support unix socket.
Author
Owner

@tonioo commented on GitHub (Oct 21, 2020):

@AmazingBeu Can you please add a link for dovecot?

<!-- gh-comment-id:713676564 --> @tonioo commented on GitHub (Oct 21, 2020): @AmazingBeu Can you please add a link for dovecot?
Author
Owner

@AmazingBeu commented on GitHub (Oct 21, 2020):

@tonioo According to the doc, you have to replace the "inet_listener" by "unix_listener" with the right options :
https://doc.dovecot.org/configuration_manual/service_configuration/?highlight=unix_listeners

<!-- gh-comment-id:713690968 --> @AmazingBeu commented on GitHub (Oct 21, 2020): @tonioo According to the doc, you have to replace the "inet_listener" by "unix_listener" with the right options : https://doc.dovecot.org/configuration_manual/service_configuration/?highlight=unix_listeners
Author
Owner

@tonioo commented on GitHub (Oct 23, 2020):

@AmazingBeu I'll close this issue since I modified the default values for policyd. I suggest you open a new issue about unix sockets.

<!-- gh-comment-id:715380666 --> @tonioo commented on GitHub (Oct 23, 2020): @AmazingBeu I'll close this issue since I modified the default values for policyd. I suggest you open a new issue about unix sockets.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#1506
No description provided.