[Backport release-25.05] postfix-tlspol: 1.8.9 -> 1.8.12 (#428692)

This commit is contained in:
Martin Weinelt
2025-07-27 15:01:43 +02:00
committed by GitHub
2 changed files with 17 additions and 4 deletions

View File

@@ -8,6 +8,7 @@
let
inherit (lib)
hasPrefix
literalExpression
mkEnableOption
mkIf
mkMerge
@@ -23,6 +24,8 @@ let
in
{
meta.maintainers = pkgs.postfix-tlspol.meta.maintainers;
options.services.postfix-tlspol = {
enable = mkEnableOption "postfix-tlspol";
@@ -92,7 +95,13 @@ in
dns = {
address = mkOption {
type = types.str;
default = "127.0.0.1:53";
default = if config.networking.resolvconf.useLocalResolver then "127.0.0.1:53" else null;
defaultText = literalExpression ''
if config.networking.resolvconf.useLocalResolver then
"127.0.0.1:53"
else
null
'';
description = ''
IP and port to your DNS resolver

View File

@@ -7,13 +7,13 @@
buildGoModule rec {
pname = "postfix-tlspol";
version = "1.8.9";
version = "1.8.12";
src = fetchFromGitHub {
owner = "Zuplu";
repo = "postfix-tlspol";
tag = "v${version}";
hash = "sha256-SsZyK+DN93o6HgTSAza2ppwHuqoW2strmE/uotuBIAM=";
hash = "sha256-OBGBjbLnyDKz/UK5th1k/gfxHjBGxyWQKgiXuuJNf8Q=";
};
vendorHash = null;
@@ -28,10 +28,14 @@ buildGoModule rec {
};
meta = {
changelog = "https://github.com/Zuplu/postfix-tlspol/releases/tag/${src.tag}";
description = "Lightweight MTA-STS + DANE/TLSA resolver and TLS policy server for Postfix, prioritizing DANE.";
homepage = "https://github.com/Zuplu/postfix-tlspol";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ valodim ];
maintainers = with lib.maintainers; [
hexa
valodim
];
mainProgram = "postfix-tlspol";
};
}