Packaging: the binary and package are inbuxa, INBUXA_* settings with STALWART_* fallback
- crates/main: package and [[bin]] renamed to inbuxa; homepage inbuxa.org; license AGPL-3.0-only (upstream is dual; the fork takes the AGPL). - types::branding::env_var reads INBUXA_<name>, falling back to STALWART_<name> with a warning, for all nine server settings. STALWART_APP_ and STALWART_SPAM_* storage keys are unchanged. - New-install default paths /var/lib/inbuxa and /var/log/inbuxa. - Dockerfiles, systemd unit, launchd plist and AppArmor profile renamed. - Upstream's .github moved to .github-upstream so none of it runs. - install.sh stubbed: upstream's would install Stalwart. - Two missed brand strings: the SMTP Received header and the utils user agent.
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
#include <tunables/global>
|
||||
|
||||
profile inbuxa flags=(attach_disconnected) {
|
||||
#include <abstractions/base>
|
||||
#include <abstractions/nameservice>
|
||||
#include <abstractions/openssl>
|
||||
|
||||
# Allow network access
|
||||
network inet stream,
|
||||
network inet6 stream,
|
||||
network inet dgram,
|
||||
network inet6 dgram,
|
||||
|
||||
# Outgoing access to port 25 and 443
|
||||
network tcp,
|
||||
network udp,
|
||||
owner /proc/*/net/if_inet6 r,
|
||||
owner /proc/*/net/ipv6_route r,
|
||||
|
||||
# Full write access to /opt/inbuxa
|
||||
/opt/inbuxa/** rwk,
|
||||
|
||||
# Allow creating directories under /tmp
|
||||
/tmp/ r,
|
||||
/tmp/** rwk,
|
||||
|
||||
# Allow binding to specific ports
|
||||
network inet stream bind port 25,
|
||||
network inet stream bind port 587,
|
||||
network inet stream bind port 465,
|
||||
network inet stream bind port 143,
|
||||
network inet stream bind port 993,
|
||||
network inet stream bind port 110,
|
||||
network inet stream bind port 995,
|
||||
network inet stream bind port 4190,
|
||||
network inet stream bind port 443,
|
||||
network inet stream bind port 8080,
|
||||
network inet6 stream bind port 25,
|
||||
network inet6 stream bind port 587,
|
||||
network inet6 stream bind port 465,
|
||||
network inet6 stream bind port 143,
|
||||
network inet6 stream bind port 993,
|
||||
network inet6 stream bind port 110,
|
||||
network inet6 stream bind port 995,
|
||||
network inet6 stream bind port 4190,
|
||||
network inet6 stream bind port 443,
|
||||
network inet6 stream bind port 8080,
|
||||
|
||||
# Allow UDP port 7911
|
||||
network inet dgram bind port 7911,
|
||||
network inet6 dgram bind port 7911,
|
||||
|
||||
# Basic system access
|
||||
/usr/bin/inbuxa rix,
|
||||
/etc/inbuxa/** r,
|
||||
/var/log/inbuxa/** w,
|
||||
|
||||
# Additional permissions might be needed depending on specific requirements
|
||||
}
|
||||
Reference in New Issue
Block a user