plugins
plugins copied to clipboard
Postfix PlugIn: Critial error reported when max. message size set to more than 50 MB (50 MiB triggers error)
Important notices Before you add a new report, we ask you kindly to acknowledge the following:
- [x] I have read the contributing guide lines at https://github.com/opnsense/plugins/blob/master/CONTRIBUTING.md
- [x] I have searched the existing issues, open and closed, and I'm convinced that mine is new.
- [x] The title contains the plugin to which this issue belongs
Describe the bug
Setting maximum mail size of Postfix plugin to more than 50 MB, for example 50 MiB (only slightly greater) causes fatal error in log:
fatal: configuration error: mailbox_size_limit is smaller than message_size_limit
Tip: to validate your setup was working with the previous version, use opnsense-revert (https://docs.opnsense.org/manual/opnsense_tools.html#opnsense-revert)
To Reproduce Steps to reproduce the behavior:
- Services -> Postfix -> General -> set Message Size Limit to 52428800 (50 MiB, not 50 MB)
- Apply
- See critial error in Postfix Log
Expected behavior No error should occur.
Screenshots N/A
Relevant log files
one single line:
2024-05-01T10:02:41 Critical postfix/local fatal: configuration error: mailbox_size_limit is smaller than message_size_limit
Additional context Caused by undefined mailbox_size_limit, defaulting to 50 MB.
Possible solution Plugin should set mailbox_size_limit to the same value. Or to a valid user-supplied value.
Environment Software version used and hardware type if relevant. e.g.:
OPNsense 24.1.6-amd64