Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Amavis should reload config for /etc/postfix/vhost updates #2616

Merged

Conversation

polarathene
Copy link
Member

@polarathene polarathene commented Jun 4, 2022

Description

When /etc/postfix/vhost is updated from change detection, Amavis did not refresh that source, and thus would not be aware of any new domains, ignoring them for spam/virus checking.

A test could probably be added, my time is focused on prepping PRs with the time I have available right now.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • If necessary I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

@polarathene polarathene added this to the v11.1.0 milestone Jun 4, 2022
@polarathene polarathene self-assigned this Jun 4, 2022
@polarathene polarathene marked this pull request as draft June 4, 2022 05:37
Amavis was not aware of new domains in vhost as it did not refresh it's sources upon change detection.
@polarathene polarathene removed the pr/waiting for other PR to get merged This PR is waiting for another / other PR(s) to get merged label Jun 12, 2022
@polarathene polarathene marked this pull request as ready for review June 12, 2022 00:22
then
# /etc/postfix/vhost was updated, amavis must refresh it's config by
# reading this file again in case of new domains, otherwise they will be ignored.
amavisd-new reload
Copy link
Member Author

Choose a reason for hiding this comment

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

Presumably supervisorctl restart amavis should be used.

I've not received any feedback about better understanding why postfix reload was an issue in the past (may have been due to the present postfix-wrapper.sh script?).

Copy link
Member

Choose a reason for hiding this comment

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

Truth be told, I don‘t know 🙈 @casperklein do you have an idea?:)

Copy link
Member

Choose a reason for hiding this comment

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

The usage of amavisd-new reload should be fine. However, if for some reason a complete service restart is needed, supervisorctl restart amavis should be used.

@polarathene polarathene merged commit 7fe2f21 into docker-mailserver:master Jun 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants