Martin Weinelt
dd83a2c7ad
dovecot: rename sieve bayes/ham learning script
...
Updates the spamassasin reference to talk about rspamd.
2025-05-15 16:16:17 +02:00
Martin Weinelt
235dba2d82
tests/external: ignore new xapian warnings
...
These looks harmless.
Closes : #322
2025-05-15 16:16:17 +02:00
Martin Weinelt
ef1e02e555
flake.nix: run tests against pinned nixpkgs
...
and migrate to the new runTest, which evaluates much faster.
2025-05-10 02:43:35 +02:00
Martin Weinelt
86b48f368f
tests: remove invalid escape sequences
...
>>> "\@"
<stdin>:1: SyntaxWarning: invalid escape sequence '\@'
'\\@'
2025-05-07 03:56:41 +02:00
Elian Doran
b343c5e8fa
assertions: Allow mailserver.forwards with LDAP set up
2025-05-06 05:32:45 +02:00
Martin Weinelt
2520e662f7
tests/external: make DKIM signing test more explicit
2025-05-06 01:05:10 +02:00
euxane
6b425d13f5
tests: fix renamed options warnings
2025-01-24 17:40:48 +01:00
Guillaume Girol
ade37b2765
fts xapian: adapt to newer versions
...
fts xapian does not publish configuration changes in a changelog. As a
result, some options that nixos mailserver was setting for it have been
ignored for several years. New options (process_limit) are now
recommended. This adapts the module to these changes.
The default value of partial= is 2, but fts_xapian 1.8.3 now requires it
to be at least 3, and fails loudly in case it is 2. As a result, this
change is required to support fts_xapian 1.8.3 and later.
2025-01-18 12:00:00 +00:00
Guillaume Girol
0a801316cd
tests: ignore debug message that looks like an error
2024-11-24 00:16:56 +01:00
Guillaume Girol
e901c56849
services.dnsmasq.extraConfig was removed on nixos-unstable
2024-11-23 23:51:49 +01:00
Guillaume Girol
3a082011dc
recent nixos-unstable requires larger dh params
2024-11-23 12:00:00 +00:00
Antoine Eiche
29916981e7
Release 24.05
2024-06-11 07:36:43 +02:00
Antoine Eiche
e47f3719f1
Release 23.11
2024-01-25 22:52:54 +01:00
Jean-Baptiste Giraudeau
84783b661e
Add tests for regex (PCRE) aliases
2023-09-28 16:13:00 +02:00
Antoine Eiche
fb3210b932
ldap: do not write password to the Nix store
2023-07-11 19:31:20 +00:00
Antoine Eiche
33554e57ce
Make the ldap test working
...
- The smtp/imap user name is now user@domain.tld
- Make the test_lookup function much more robust: it was now getting
the correct file from the store.
2023-07-11 19:31:20 +00:00
Martin Weinelt
8b03ae5701
Create LDAP test
...
Sets up a declaratively configured OpenLDAP instance with users alice
and bob. They each own one email address,
First we test that postfix can communicate with LDAP and do the expected
lookups using the defined maps.
Then we use doveadm to make sure it can look up the two accounts.
Next we check the binding between account and mail address, by logging
in as alice and trying to send from bob@example.com , which alice is not
allowed to do. We expect postfix to reject the sender address here.
Finally we check mail delivery between alice and bob. Alice tries to
send a mail from alice@example.com to bob@example.com and bob then
checks whether it arrived in their mailbox.
2023-07-11 19:31:20 +00:00
Antoine Eiche
131c48de9b
Preserve the compatibility with nixos-22.11
2023-06-11 17:10:14 +02:00
Naïm Favier
42c5564791
tests: use services.dnsmasq.settings
...
Gets rid of the warning about `extraConfig` being deprecated.
2023-05-24 21:10:02 +00:00
Antoine Eiche
bc667fb6af
Release 22.11
2022-12-21 22:46:04 +01:00
Martin Weinelt
fe36e7ae0d
rspamd: allow configuring dmarc reporting
...
Enabling collects DMARC results in Redis and sends out aggregated
reports (RUA) on a daily basis.
2022-11-27 20:34:38 +00:00
Linus Heckemann
a40e9c3abb
htpasswd -> mkpasswd
2022-11-27 19:14:22 +00:00
Martin Weinelt
004c229ca4
Convert minimal test to python test driver
2022-07-19 23:54:04 +02:00
Guillaume Girol
75728d2686
tests: compatibility with fts xapian 1.5.4
2022-03-05 12:00:00 +00:00
Antoine Eiche
2fa9c7c4df
tests: update fts indexer log messages
2021-07-12 22:57:01 +02:00
Antoine Eiche
a0f9688a31
Switch CI to Nix flakes
...
We also move tests to Flakes.
This would allow users to submit PRs with a fork of nixpkgs when they
want to test nixpkgs PRs against SNM.
2021-07-12 22:57:01 +02:00
Antoine Eiche
a9f87ca461
Update nixpkgs-unstable
...
Because of
b7749c7671
we need to `set +o pipefail` several asserts.
2021-06-24 23:02:58 +02:00
Antoine Eiche
bbcc6863b5
Release nixos-21.05
2021-06-06 10:20:14 +02:00
Antoine Eiche
8b28705621
Rename intern/extern tests to internal/external
2021-05-01 08:21:27 +02:00
Guillaume Girol
5248dce1ea
tests: increase memory limit for indexer process
...
otherwise fts-xapian with recent versions (1.4.9 at least) prints a
warning and the test fails
2021-04-24 17:01:52 +02:00
Symphorien Gibol
06b989c1e7
add full text search support
2021-03-04 22:17:25 +01:00
Antoine Eiche
5f431207b3
postfix: forwarding emails of login accounts with keeping local copy
...
When a local account address is forwarded, the mails were not locally
kept. This was due to the way lookup tables were internally managed.
Instead of using lists to represent Postfix lookup tables, we now use
attribute sets: they can then be easily merged.
A regression test for
https://gitlab.com/simple-nixos-mailserver/nixos-mailserver/-/issues/
has been added: it sets a forward on a local address and ensure an
email sent to this address is locally kept.
Fixes #205
2021-02-06 08:17:43 +00:00
Henri Menke
89bd89c706
Recommend bcrypt passwords everywhere
2020-11-29 20:19:46 +01:00
Antoine Eiche
7d2020cb36
Move clamav database to the blobs repository
...
This database is huge and can be fetched at build time.
Fixes #197
2020-11-11 20:27:59 +01:00
Antoine Eiche
99f843de47
Release nixos-20.09 branch
2020-10-31 08:34:36 +01:00
Antoine Eiche
4818b57a92
test.dovecot: ensure port 143 is closed when enableImap is not set
...
The test also checks the connection on the imap port 993 is a SSL
connection.
2020-10-05 21:18:36 +02:00
Milan Pässler
e272a2755b
remove support for 20.03
2020-10-05 20:54:46 +02:00
Antoine Eiche
c813f1205f
Add multiple.nix test
...
This test is used to test feature requiring several mail domains, such
as the `forwards` option.
2020-09-28 20:51:32 +02:00
Antoine Eiche
4008d0cb53
Move tests to the Python framework
2020-07-27 23:11:54 +02:00
Xavier Vello
45f80def41
Setup rspamd controller to serve web UI assets
2020-07-06 23:14:33 +02:00
Antoine Eiche
b8e4ed00c3
Remove 19.09 support
...
Note there is still the 19.09 branch.
2020-05-11 21:46:01 +00:00
Antoine Eiche
9b5779de16
tests/intern: set memorySize to 1G
...
There is an OOM when running this test.
2020-05-08 20:43:46 +02:00
Antoine Eiche
abe3c4aedc
Add send-only test
...
In the intern test, we send a mail to a send-only account and check
the reject message is correcly returned.
2020-05-08 20:43:46 +02:00
Symphorien Gibol
8e95d4e456
tests/extern.nix: increase memory
...
got oom several time with rspamd 2.5 update
2020-05-05 19:07:46 +00:00
Symphorien Gibol
7ccf35cb5f
tests/clamav.nix: relax expected error message
...
with rspamd 2.5 it only says Spam message rejected
2020-05-05 19:07:46 +00:00
Antoine Eiche
b0647c95c9
Remove the GitLab runner related code
2020-04-22 23:35:48 +02:00
Antoine Eiche
09ca79801b
tests: no ssl cert check for fetchmail
...
Since the certificate is autosigned, an SSL error was emitted by
dovecot.
2020-04-19 10:01:57 +02:00
Antoine Eiche
a53aa5ac9a
Use Niv to pin nixpkgs releases
...
Before using Niv, we were following channels meaning we can not
reproduce CI jobs easily.
In this change, we use Niv to pin these dependencies. We are also
addding a tests/default.nix to be able to run these tests locally.
For instance, to run the test extern.nix on the nixpkgs-19.09 release:
nix-build tests/default.nix -A extern.nixpkgs_19_09
Fixes #178
2020-04-19 10:01:57 +02:00
Xavier Vello
d7b62bbb93
Update clamav test fixtures
2019-12-15 11:53:27 +01:00
Xavier Vello
5c6b6287d6
Fix extern test on 19.09
...
The openssl output format changed, breaking the
"dkim has user-specified size" test
2019-12-14 22:22:23 +01:00