Commit graph

58 commits

Author SHA1 Message Date
fox.cpp
01c65cfb0e
Finally fix tests
Took way too long.
2025-02-02 13:14:11 +03:00
fox.cpp
1d044249c2
endpoint/smtp: Fix auth_map ignored 2025-02-01 19:25:16 +03:00
fox.cpp
91c1617698
tests: Fix-up linter nit 2025-01-30 21:50:28 +03:00
fox.cpp
41b49bd44f
tests: Add integration test for multidomain setups with shared namespaces 2025-01-28 23:35:23 +03:00
fox.cpp
69b434f341
tests: Allow to run maddyctl commands in integration tests 2025-01-28 23:33:37 +03:00
fox.cpp
78e4600a17
Upgrade all dependencies
1. go-smtp is replaced by a fork that reverts StartTLS removal.
2. SASL LOGIN is no longer supported by upstream go-sasl, readded disabled by default.
3. Updated endpoint code to match new go-smtp authentication interfaces.
4. certmagic repo had some renames
5. Minimum Go version increased to 1.23 to match dependencies.
2025-01-24 21:29:48 +03:00
fox.cpp
798c411824
Merge branch 'master' into dev 2024-01-22 00:43:53 +03:00
fox.cpp
ab94e0bb95
check/spf: Handle empty MAIL FROM in accordance with RFC 7208
See #652.
See #603.
2024-01-21 20:01:00 +03:00
fox.cpp
db0874c2be
Migrate to latest go-smtp version
Fixes #661 among other minor things.
2024-01-21 14:41:57 +03:00
guoguangwu
8431eae5e5 chore: remove refs to deprecated io/ioutil 2023-11-16 15:52:52 +08:00
fox.cpp
8834501196
tests: Fix cover_test.go deadlock on Go 1.20
Test code seems to hang somewhere after maddy.Run if
os.Stderr, os.Stdout are not consumed.
2023-08-23 16:11:46 +03:00
Aleksei Zhukov
3c4fe105cd
Proxy protocol support for SMTP and IMAP 2023-04-16 14:40:57 -05:00
fox.cpp
a7001ab730
Implement auth_map and storage_map at endpoint level
This makes auth_map do what its name implies. Old auth_map in storage
module is deprecated and will be removed in the next release.
2023-03-12 13:52:04 +03:00
fox.cpp
cbb3bbcb43
Merge branch 'master' into dev 2022-07-09 15:00:46 +03:00
fox.cpp
90f88c89cd
test: Fix Dovecot interop tests
Dovecot no longer prints the specific error message used
to detect successful startup.
2022-07-03 16:37:50 +03:00
fox.cpp
80328b8dee
Fix a few linter warnings + gofmt + goimports 2022-06-23 14:34:57 +03:00
Eng Zer Jun
8f1cfd72ac test: use T.TempDir to create temporary test directory
The directory created by `T.TempDir` is automatically removed when the
test and all its subtests complete.

Reference: https://pkg.go.dev/testing#T.TempDir
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2022-02-22 00:34:01 +03:00
fox.cpp
c0eacfa0f3
Merge maddyctl and maddy executabes
Closes #432.
2022-01-07 00:37:49 +03:00
fox.cpp
2eb955bbc0
tests: Update tests to match go-imap v2 behavior 2022-01-06 16:31:33 +03:00
fox.cpp
9ea1a47c1c
tests: Change Conn.Expect to not return an error
To get rid of a bunch of "error value is not checked" warnings.
2021-08-28 15:43:20 +03:00
fox.cpp
820d9183aa
endpoint/smtp: Fix limitedReader causing message body read to loop forever
Closes #389.
2021-08-22 12:23:01 +03:00
Gusted
b8d8ca6301 refactor(gofumpt): run gofumpt over the code 2021-08-10 19:33:54 +03:00
fox.cpp
61e6e73910
Merge branch 'dev' 2021-08-09 13:01:18 +03:00
fox.cpp
4e9a1258dc
Implement table.email_localpart to strip domain from emails 2021-08-09 11:43:20 +03:00
fox.cpp
ce896c7036
storage/imapsql: Implement delivery_map in addition to auth_map 2021-08-09 11:43:17 +03:00
fox.cpp
0ac7a3f686
tests: Use a non-127.0.0.1 IP for tests
Using 127.0.0.1 causes all sorts of trouble
since we cannot override what its
rDNS name would be - net.Resolver reads /etc/hosts first and this cannot be changed.

Now we use 127.109.97.100 which is highly unlikely
to be manually set in /etc/hosts.
2021-07-12 17:28:49 +03:00
fox.cpp
d536b8785f
tests: Fix-up 5c6fba8e7c 2021-07-11 14:13:50 +03:00
fox.cpp
a202b5d49c
tests: Allow to specify the go executable to use
Important for testing with different or non-system Go versions
2021-07-10 22:40:50 +03:00
fox.cpp
5c6fba8e7c
tests: Force a certain rDNS name for 127.0.0.1
Should make tests independent of what system has configured for it
2021-07-10 22:40:48 +03:00
fox.cpp
5c143530ff
Merge branch 'master' into dev
# Conflicts:
#	framework/address/norm.go
#	go.mod
#	go.sum
#	internal/target/remote/security.go
2021-07-10 00:23:28 +03:00
fox.cpp
7c2afde847
check/authorize_sender: Implement MAIL FROM, From header authorization for local senders
Closes #268.
2021-07-09 22:49:21 +03:00
Armin Preiml
426c61880f add max_header_size, check header size in smtp session 2021-06-27 15:26:04 +00:00
fox.cpp
baba1d9c59
tests: Log when server is being killed with SIGKILL due to a hung up 2021-01-16 21:15:17 +03:00
fox.cpp
d275cd044f
Fix two issues in handling of DSN messages in SMTP pipeline and checks
First issue: check.spf CheckBody deadlocks if CheckConnection skipped
the message due to it being locally generated (the case for DSNs).

Second issue: msgpipeline does not call CheckConnection at all
if MAIL FROM is an empty string (which is also the case for DSNs).

tests/issue327_test.go is added based on symptoms from the original
bug report.
See #237.
2021-01-16 21:08:39 +03:00
fox.cpp
fe97356395
target/remote: Force MX domain to be FQDN when looking up TLSA records
Closes #321.
See also #311 for related discussion of FQDN normalization.
2020-12-24 14:07:25 +03:00
fox.cpp
13d3a8bf5d
tests: Check for chasquid executable existance before starting test server
Avoids the race when maddy is killed so early it cannot perform
proper cleanup and this casues test to fail.
2020-12-13 19:48:42 +03:00
fox.cpp
178579d78a
Remove remaining references to 0.3 module names in code and docs 2020-12-13 19:47:27 +03:00
fox.cpp
3152646ea1
tests: Fix remaining cases of tests depending on rDNS name of 127.0.0.1 2020-12-13 19:14:19 +03:00
fox.cpp
b9428aebe0
tests: Fix some tests assuming a particular result of rDNS lookup of 127.0.0.1
On some systems it may be localhost.localdomain instead of localhost.
On some other systems is may just fail altogether.
2020-12-12 18:51:05 +03:00
fox.cpp
3bcb1ef243
tests: Fix run.sh to return non-zero status on failed tests 2020-12-11 23:46:34 +03:00
fox.cpp
e4ad3bdd5a
target/remote: Reimplement TLSA records discovery algorithm, add tests
Now it covers all edge cases described by RFC 7672.

There is an unrelated change in tests/ due to interface change in
go-mockdns.
2020-11-30 18:40:59 +03:00
fox.cpp
3c9e637bb9
config/module: Always pass the fully qualified module name to constructor
Ensures that modules using modName to change behavior (e.g.
target.smtp/target.lmtp) behave consistently irregardless of whatever
they are referenced inline ("deliver_to lmtp ...") or via named
configuration block ("deliver_to &local_mailboxes).

Closes #308.
2020-11-30 14:57:49 +03:00
fox.cpp
1c42a70533
endpoint/smtp: Fix handling of empty messages in auto-buffer code
Add the missing os.MkdirAll for "fs" buffer mode along the way.
And add integration tests for all that.
2020-10-24 21:23:12 +03:00
fox.cpp
a2e781ab3a
storage/imapsql: Implement auth_map 2020-09-19 18:05:01 +03:00
fox.cpp
82a98aef34
tests: Remove unused Conn.error 2020-08-23 15:51:11 +03:00
fox.cpp
24d88a1bb4
tests: Add integration/smoke test for imapsql delivery 2020-08-21 23:07:04 +03:00
fox.cpp
276c34dea6
tests: Update TestBasic to expect CHUNKING extension 2020-07-24 15:19:58 +03:00
fox.cpp
2d18ff5a30
MIT => GPLv3; Add license/copyright notices everywhere 2020-07-22 16:12:26 +03:00
fox.cpp
8954d1e2c3
tests: Add stress tests for SMTP endpoint with rate limiting 2020-06-02 22:00:07 +03:00
fox.cpp
a46f2adc4c
tests: Add interop test for dovecot_sasld using chasquid 2020-05-23 02:55:45 +03:00