Skip to content

Commit

Permalink
postfix: add passthru tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mweinelt committed Nov 12, 2020
1 parent 1b5a1c6 commit 9309563
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions nixos/tests/postfix.nix
Expand Up @@ -11,9 +11,9 @@ import ./make-test-python.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";
Expand Down
4 changes: 3 additions & 1 deletion pkgs/servers/mail/postfix/default.nix
@@ -1,6 +1,6 @@
{ 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
Expand Down Expand Up @@ -96,6 +96,8 @@ in stdenv.mkDerivation rec {
--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/";
description = "A fast, easy to administer, and secure mail server";
Expand Down

0 comments on commit 9309563

Please sign in to comment.