mirror of
https://github.com/anonaddy/anonaddy.git
synced 2026-04-25 06:05:55 +03:00
[GH-ISSUE #272] Possible rspamd permission issue in SELF-HOSTING.md #795
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/anonaddy#795
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @makua104 on GitHub (Feb 24, 2022).
Original GitHub issue: https://github.com/anonaddy/anonaddy/issues/272
I ran into an issue when moving from OpenDKIM and OpenDMARC to Rspamd. A few instructions in the
SELF-HOSTING.mdfile seem to create files owned by root, such asand
This results in errors similar to
when
rspamd.serviceis run as the_rspamduser, which I think is done by default. Rspamd fails to start and errors likeconnect to Milter service inet:localhost:11332: Connection refusedappear in/var/log/mail.logwhen sending from a recipient address, which led to AnonAddy thinking they were spoofed.@willbrowningme commented on GitHub (Mar 3, 2022):
All files in the
/etc/rspamddirectory are owned byrootwith grouproot. The Rspamd main process should start as root and then drops privileges. Have you checked for any solutions on the Rspamd repo?@makua104 commented on GitHub (Mar 3, 2022):
I didn't see anything there other than a few older solved issues (1, 2) related to permission errors. It seems like they say the files should be owned by
_rspamd:_rspamd, which is what I did to solve it. Is yourrspamd.servicealso usingUser=_rspamd?@willbrowningme commented on GitHub (Mar 4, 2022):
Yes the rspamd.service is run by
_rspamd. Following the exact instructions in the self-hosting instructions worked for me with no issues. Closing this issue, since it seems you've resolved it now.