Skip to content

Set static hostname for antispam to preserve history. #1837

Merged
bors[bot] merged 2 commits intoMailu:masterfrom
Diman0:561-antispam-history
Jun 29, 2021
Merged

Set static hostname for antispam to preserve history. #1837
bors[bot] merged 2 commits intoMailu:masterfrom
Diman0:561-antispam-history

Conversation

@Diman0
Copy link
Copy Markdown
Member

@Diman0 Diman0 commented Jun 29, 2021

What type of PR?

bug-fix

What does this PR do?

It addresses bug #561. Rspamd stores the history in redis. The key for storing the history contains the hostname. On recreation of the docker container, the hostname changes and for this reason the rspamd history is lost. Setting a fixed hostname resolves this. Upon recreating the antispam container the history is retained.

Related issue(s)

Prerequistes

Before we can consider review and merge, please make sure the following list is done and checked.
If an entry in not applicable, you can check it or remove it from the list.

  • In case of feature or enhancement: documentation updated accordingly
  • Unless it's docs or a minor change: add changelog entry file.

@mergify
Copy link
Copy Markdown
Contributor

mergify Bot commented Jun 29, 2021

Thanks for submitting this pull request.
Bors-ng will now build test images. When it succeeds, we will continue to review and test your PR.

bors try

Note: if this build fails, read this.

bors Bot added a commit that referenced this pull request Jun 29, 2021
decentral1se
decentral1se previously approved these changes Jun 29, 2021
Copy link
Copy Markdown
Member

@decentral1se decentral1se left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@mergify
Copy link
Copy Markdown
Contributor

mergify Bot commented Jun 29, 2021

bors r+

@mergify mergify Bot dismissed decentral1se’s stale review June 29, 2021 08:08

Pull request has been modified.

@bors
Copy link
Copy Markdown
Contributor

bors Bot commented Jun 29, 2021

Build succeeded:

@bors bors Bot merged commit 8370896 into Mailu:master Jun 29, 2021
@bors
Copy link
Copy Markdown
Contributor

bors Bot commented Jun 29, 2021

try

Build succeeded:

@Diman0 Diman0 deleted the 561-antispam-history branch June 29, 2021 09:53
@nextgens nextgens added the type/backport Automatic backport this PR to the current stable release label Jul 17, 2021
bors Bot added a commit that referenced this pull request Jul 18, 2021
1866: Set static hostname for antispam to preserve history.  (backport #1837) r=mergify[bot] a=mergify[bot]

This is an automatic backport of pull request #1837 done by [Mergify](https://mergify.io).


---


<details>
<summary>Mergify commands and options</summary>

<br />

More conditions and actions can be found in the [documentation](https://docs.mergify.io/).

You can also trigger Mergify actions by commenting on this pull request:

- `@Mergifyio refresh` will re-evaluate the rules
- `@Mergifyio rebase` will rebase this PR on its base branch
- `@Mergifyio update` will merge the base branch into this PR
- `@Mergifyio backport <destination>` will backport this PR on `<destination>` branch

Additionally, on Mergify [dashboard](https://dashboard.mergify.io/) you can:

- look at your merge queues
- generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.io/
</details>


Co-authored-by: Dimitri Huisman <[email protected]>
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Sep 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

type/backport Automatic backport this PR to the current stable release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[rspamd] Preserve antispam history on container restart

3 participants