Commit graph

774 commits

Author SHA1 Message Date
Wolfgang Walther 91a8fee3aa
treewide: remove redundant parentheses
Auto-fixed by nixf-diagnose.
2025-10-05 10:52:03 +02:00
Wolfgang Walther c283f32d29
treewide: remove unused with
Auto-fixed by nixf-diagnose.
2025-10-05 10:50:41 +02:00
Maximilian Bosch 2cb89c0aef
postfixadmin: remove, doesn't support php >8.1
In newer versions it does, but there's zero effort to package it by the
maintainer and it's not the job of the PHP team to pick that up.
2025-10-03 23:37:00 +02:00
Martin Weinelt cdcb6d35ec
nixos/postfix: fix typo in networksStyle option rename 2025-09-30 17:14:23 +02:00
xanderio 9dc59f7361
modules/postfix: fix manpage number in option description (#440866) 2025-09-27 12:58:50 +00:00
Sandro 12d721cc19
nixos/mailman: add package option (#427455) 2025-09-13 16:30:12 +00:00
Sandro Jäckel 608df331d8
nixos/mailman: add package option 2025-09-13 03:01:03 +02:00
h7x4 3c811c4f71
nixos/postgrey: prefer types.ints over addCheck 2025-09-12 02:29:08 +02:00
Haylin Moore cf540f8c98 treewide/nixos: move number typed port options to types.port 2025-09-08 15:27:19 +02:00
Anton Mosich 608ba7a407
modules/postfix: fix manpage number in option description 2025-09-07 12:21:08 +02:00
Martin Weinelt d67f797c5b
nixos/postfix: add a package option and use it treewide (#427452) 2025-09-03 16:00:38 +02:00
Sandro Jäckel 1aacf9c84a
treewide: use lib.getExe' for config.services.postfix.package 2025-09-03 13:12:31 +02:00
Felix Bühler b27262131f
nixos/listmonk: fix db settings type (#438700) 2025-09-02 22:43:17 +02:00
Sandro Jäckel b5b97a6670
nixos/postfix: add a package option and use it treewide 2025-09-02 18:01:01 +02:00
Alyssa Ross 0fdcb36005 nixos/public-inbox: fix inboxdir option
This wasn't consistently used — sometimes the default value was
hardcoded.
2025-08-31 17:21:10 +02:00
Martin Weinelt 609cad27ad
postfix-tlspol: 1.8.15 -> 1.8.16
https://github.com/Zuplu/postfix-tlspol/releases/tag/v1.8.16
2025-08-31 16:16:50 +02:00
Sandro 9af68bccc3
nixos/rspamd: add and use package option (#436598) 2025-08-30 22:19:28 +02:00
éclairevoyant df1422e9a4
nixos/listmonk: fix db settings type 2025-08-30 14:50:21 -04:00
Michael Franzl 593cac9f89 services.exim: Fix failing systemd service ExecStartPre script
The previous script ran unprivileged by default (because the default
value of cfg.user was "exim"), and enabling the exim service always
failed. It also would have created the directory with unspecified permissions.

The new mechanism uses coreutil's install tool to create the
directory on systemd service start, with proper ownership and
restrictive permissions.

Fixes NixOS#385522
2025-08-28 19:03:32 +02:00
Sandro 62b7b184fd
nixos/mailman: update postfix config names (#437602) 2025-08-27 21:16:32 +02:00
Alyssa Ross a97a8006a5
nixos/mailman: update postfix config names
Fixes:

	trace: Obsolete option `services.postfix.config' is used. It was renamed to `services.postfix.settings.main'.
2025-08-27 19:55:50 +02:00
dish 970dcca69c
treewide: Fix links in module documentation 2025-08-25 12:55:11 -04:00
Sandro Jäckel d85a0bbe79
nixos/rspamd: add and use package option 2025-08-25 00:45:09 +02:00
Wolfgang Walther d3caafc32f
nixos/doc/mailman: fix syntax in code block 2025-08-05 17:08:31 +02:00
Stefan Frijters 81e8a2a5f3
nixos/postfix: tweak confusing migration suggestions 2025-08-05 10:26:48 +02:00
Stefan Frijters 0f63119209
nixos/postfix: fix typo in migration suggestion 2025-08-05 10:26:42 +02:00
Martin Weinelt 56674702b0
nixos/postfix: modernize, cleanup (#416840) 2025-08-02 23:50:59 +02:00
Martin Weinelt e030814446
nixos/tlsrpt: configure explicit http_script
Make sure we get curl into the system, since when the tlsrpt rua is an
HTTP URL we need to be able to deliver to that.
2025-07-29 06:16:36 +02:00
Martin Weinelt 7f52135a59
nixos/postfix: fold main and master config into settings attribute 2025-07-28 17:03:08 +02:00
Martin Weinelt 791dcff3a9
nixos/postfix: add maintainers 2025-07-28 16:42:18 +02:00
Martin Weinelt 23efadb26b
nixos/postfix: remove extraConfig option
The freeform type config option covers all supported values.
2025-07-28 16:42:17 +02:00
Martin Weinelt 029f408b94
treewide: migrate postfix configurations to service.postfix.config
The `services.postfix.config` option is a freeform type that represents
settings in `main.cf`. The top-level options on the postfix module were
replaced by these and that is the reason behind this migration.
2025-07-28 16:42:17 +02:00
Martin Weinelt 918785c07f
nixos/postfix: advertise message_size_limit option 2025-07-28 16:42:17 +02:00
Martin Weinelt 03950314c6
nixos/postfix: migrate options in freeform config options
This is a first step that reduces the intransparent configuration aspects
by migrating relevant options from `service`postfix` into the `config`
option that represents the `main.cf` file.

Not all options were migrated since Postfix provides reasonable defaults,
e.g. `myorigin` defaults to `$myhostname`, so it is rarely needed.

The `inet_protocols` integration with `networking.enableIPv6` was also
a thing I removed, because Postfix is capable of understand what inet
protocols are available at runtime, so I concluded it a niche option.

Every option on the `config` freeform setting now also references the
upstream documentation, which provides a great number of examples and is
always worth a look.
2025-07-28 16:41:59 +02:00
Martin Weinelt 7d6c8e24ce
nixos/postfix: improve option documentation for service toggles
In particular we now explain what port the service listens on and what
protocol to expect. Update the RFC8341 recommendation to discourage
submission and recommend submissions.
2025-07-28 16:31:19 +02:00
Martin Weinelt b438f32b2a
nixos/tlsrpt: fix permissions to execute postdrop
Calling to sendmail without AF_NETLINK causes:

> sendmail: fatal: inet_addr_local[getifaddrs]: getifaddrs: Address family not supported by protocol

and without AF_INET/AF_INET6:

> sendmail: warning: inet_protocols: disabling IPv6 name/address support: Address family not supported by protocol
> sendmail: warning: inet_protocols: disabling IPv4 name/address support: Address family not supported by protocol

Move the configurePostfix option one level up, since it now also
reconfigures the reportd systemd unit.
2025-07-28 15:06:25 +02:00
Martin Weinelt c3c5a3bfd0
nixos/tlsrpt: fix restart trigger
Triggering on a symlink target does not work.
2025-07-28 15:06:25 +02:00
Martin Weinelt 1f9431801f
nixos/tlsrpt: fix default postfix sendmail path
It is not in the PATH for the reportd, since it is a SUID wrapper.
2025-07-28 15:06:24 +02:00
@norpol 124c3f4850 stalwart-mail: add v0.13.x breaking change notice 2025-07-26 23:50:55 +01:00
Wolfgang Walther 5a0711127c
treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Wolfgang Walther 62fe016519
treewide: run treefmt with mdcr/nixfmt 2025-07-24 13:52:31 +02:00
Martin Weinelt e48d12554c
nixos/tlsrpt: fix permissions for postfix
Same as with other services giving postfix access, this needs to happen
for the postfix user. Adding supplementary group permissions to the
systemd unit does not propagate to child processes that ultimately call
the unix domain socket.
2025-07-24 02:29:54 +02:00
Yt 1f9fe92184
stalwart-mail: Fix spam-filter missing from /etc (#422909) 2025-07-21 21:14:24 -04:00
Martin Weinelt fbc56958af
nixos/pfix-srsd: migrate postfix integration from postfix module
The postfix module is too big to host every individual integration option
and moving it here has no downside.
2025-07-15 22:04:28 +02:00
Martin Weinelt c915f104b0
nixos/postsrsd: add package option, migrate enable option 2025-07-15 20:29:35 +02:00
Martin Weinelt 9a9073fc89
nixos/postsrsd: integrate with postfix by default 2025-07-15 20:29:35 +02:00
Martin Weinelt 819c34cb7f
nixos/postsrsd: harden and modernize systemd unit
This replaces the previous confinement settings with a more complete and
context-sensitive hardening setup.

Also exposes the current config at /etc/postsrsd.conf, which makes it
easily inspectable.
2025-07-15 20:14:32 +02:00
Martin Weinelt 83af4a9aed
nixos/postsrsd: migrate to rfc42 settings
Allow a freeform configuration approach to satisfy different
configuration complexities.

Remove confinement options and make its hardening options more explicit
and removed the deprecated PermissionStartOnly= option.
2025-07-15 20:14:31 +02:00
Alyssa Ross 381be8e990 nixos/spamassassin: set home for spamd user
This should hopefully fix errors like the following:

	plugin: eval failed: bayes: (in learn) locker: safe_lock: cannot create tmp lockfile /var/empty/.spamassassin/bayes.lock.atuin.qyliss.net.398779 for /var/empty/.spamassassin/bayes.lock: No such file or directory
2025-07-15 09:01:21 +02:00
Alyssa Ross 96dab5ade3 nixos/spamassassin: add reload triggers
Previously, SpamAssassin did not pick up configuration changes
automatically.
2025-07-14 13:10:12 +02:00