postfix: add passthru tests

Changed files
+6 -4
nixos
tests
pkgs
servers
mail
postfix
+3 -3
nixos/tests/postfix.nix
···
enable = true;
enableSubmission = true;
enableSubmissions = true;
-
tlsTrustedAuthorities = certs.ca.cert;
-
sslCert = certs.${domain}.cert;
-
sslKey = certs.${domain}.key;
+
tlsTrustedAuthorities = "${certs.ca.cert}";
+
sslCert = "${certs.${domain}.cert}";
+
sslKey = "${certs.${domain}.key}";
submissionsOptions = {
smtpd_sasl_auth_enable = "yes";
smtpd_client_restrictions = "permit";
+3 -1
pkgs/servers/mail/postfix/default.nix
···
{ stdenv, lib, fetchurl, makeWrapper, gnused, db, openssl, cyrus_sasl, libnsl
, coreutils, findutils, gnugrep, gawk, icu, pcre, m4
-
, buildPackages
+
, buildPackages, nixosTests
, withLDAP ? true, openldap
, withPgSQL ? false, postgresql
, withMySQL ? false, libmysqlclient
···
wrapProgram $out/libexec/postfix/postfix-script \
--prefix PATH ":" ${lib.makeBinPath [ coreutils findutils gnugrep gawk gnused ]}
'';
+
+
passthru.tests = { inherit (nixosTests) postfix postfix-raise-smtpd-tls-security-level; };
meta = with lib; {
homepage = "http://www.postfix.org/";