Commit Graph

44 Commits

Author SHA1 Message Date
fox.cpp
d60ce8321f Merge remote-tracking branch 'angelnu/more-fields' into dev
# Conflicts:
#	docs/reference/storage/imap-filters.md
2022-02-19 14:27:49 +03:00
fox.cpp
bc42464466 Merge remote-tracking branch 'angelnu/1-n' into dev 2022-02-19 14:19:43 +03:00
angelnu
a40fcc81d9 review feedback 2022-01-31 22:54:50 +00:00
angelnu
6690f3369d addapt testcases 2022-01-27 23:13:56 +00:00
angelnu
eef54139b1 1-n recipent 2022-01-27 22:25:27 +00:00
fox.cpp
c0eacfa0f3 Merge maddyctl and maddy executabes
Closes #432.
2022-01-07 00:37:49 +03:00
fox.cpp
a1fc99d08c Fix a few minor warnings 2021-09-22 23:33:40 +03:00
fox.cpp
14a441f595 storage/blob: Pass blobSize to go-imap-sql
Part of #395 fix
2021-08-28 15:43:19 +03:00
fox.cpp
1d3e055068 storage/blob: Extend BlobStore interface to use context and specify blob size at Create
See #395.
2021-08-28 15:27:54 +03:00
Gusted
c6d060908b refactor(unused): remove unused paramaters 2021-08-10 19:33:54 +03:00
Gusted
b8d8ca6301 refactor(gofumpt): run gofumpt over the code 2021-08-10 19:33:54 +03:00
Gusted
32b75262ad refactor(ifelse): shorten logic where possible 2021-08-10 19:33:54 +03:00
Gusted
53cb4c06c2 refactor(errors): use errors.is to account wrapped errors 2021-08-10 19:33:54 +03:00
fox.cpp
61e6e73910 Merge branch 'dev' 2021-08-09 13:01:18 +03:00
fox.cpp
e025d3b11c config/tls: Fix custom loader configuration reading
Co-authored-by: Gusted <williamzijl7@hotmail.com>
2021-08-09 11:53:57 +03:00
Gusted
d0928d2743 refactor: remove/_-ify unused params
Hi!

I've removed some unused params. But if they where needed for e.g. interface type I've simply `_` them. Also I have to instances to fix tests params, whereby they were passed but not initialized at all, they are in`internal/target/remote/remote_test.go` and `internal/modify/dkim/dkim_test.go`. All test are still passing so it seems like I didn't break anything.

I might've refactored some code away that actually is used but wasn't implemented correctly, but as far as I see their is nothing wrong or erroring going on.
2021-07-31 22:43:27 +03:00
fox.cpp
ef63383248 storage/blob: Implement S3-compatible storage support
Closes #304.
2021-07-15 20:34:15 +03:00
fox.cpp
93cf4f231a Integrate CertMagic ACME client with dns-01 challenge
Support for a subset of libdns providers is added.
Some are enabled by default (assuming they are popular ones). AWS and Google Cloud SDKs take up extra 10 MiB of executable size.

Only filesystem storage is supported as of now.

Closes #3.
2021-07-13 12:38:42 +03:00
fox.cpp
bae40f875b log: Allow creating zap.Logger out of log.Logger
We replace zapcore.Core with our own implementation. This is the first stage in migration to using zap library for logging.
2021-07-13 10:38:19 +03:00
fox.cpp
04f035174e tls: Refactor TLSLoader interface to be more generic
Allow to either use NameToCertificate or GetCertificate instead of just setting Certificates.
2021-07-12 21:28:58 +03:00
fox.cpp
09393aed8f Refactor imapsql ExternalStore to use modules
Closes #303
2021-07-11 21:42:38 +03:00
fox.cpp
6d44617840 Use context.Context in module.Table
Closes #366.
2021-07-10 14:56:43 +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
fox.cpp
b77d6b4f9f config/tls: Remove deprecated "tls CERT KEY" syntax 2021-07-09 22:49:08 +03:00
Aluísio Augusto Silva Gonçalves
d8cabb932d config/tls: Fix tls_client parsing
Process a tls_client's child config nodes instead of itself, thus
avoiding unbounded recursion and a stack overflow while parsing a
configuration file.

Also fix the logic that only loads a client keypair when only a
certificate and key are specified.
2021-03-27 18:24:11 +03:00
fox.cpp
b494965da2 dns: Attempt to use 127.0.0.1 if no DNS servers are configured in system
This is standard behavior of stub resolver in Linux and it prevents
panic when ExtResolver.exchange returns a nil resp and nil error.
2021-03-07 17:23:30 +03:00
fox.cpp
d6a0324ae0 Force domains to be interpreted as FQDN where this is required by standards
This includes email addresses and EHLO in SMTP.

See #311 for details.
2020-12-12 01:31:41 +03:00
fox.cpp
cf72b11c76 Fix/silence a couple of linter warnings 2020-12-06 14:51:03 +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
50c1caed35 dns: Add even more hacks to AuthLoookupIPAddr, add tests 2020-11-30 18:40:58 +03:00
fox.cpp
72d92e5d20 dns: Silently discard unauthenticated AAAA records if A records are authenticated
See https://github.com/foxcpp/maddy/issues/292
2020-11-30 18:40:58 +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
0000256d8f Fix-up 2020-10-17 16:45:14 +03:00
fox.cpp
c3987e3807 future: Do not crash server when Future.Set is called multiple times
Temporary patch for #270 as I am unable to identify the root cause.
2020-10-17 16:42:32 +03:00
Boban Acimovic
324a3b30ef fix #275 (#276) 2020-09-30 22:36:58 +03:00
fox.cpp
2d18ff5a30 MIT => GPLv3; Add license/copyright notices everywhere 2020-07-22 16:12:26 +03:00
fox.cpp
18bc68a7ac Implement "IMAP filters"
Closes #202.
2020-07-17 23:33:59 +03:00
fox.cpp
11e5b28546 config/tls: Remove unused code
GODEBUG line is no longer necessary since TLS 1.3 is enabled by default
since Go 1.13 and we now require Go 1.14.
2020-07-17 00:34:56 +03:00
fox.cpp
e74393eaf9 framework/config/tls: Unbreak tests
Also fix a linter warning regarding lock copy along the way.
2020-07-16 16:25:38 +03:00
fox.cpp
cee8bbdce7 Migrate TLS certificate loading to use modules for sources 2020-07-15 17:58:47 +03:00
fox.cpp
6c0b947464 target/remote: Use modules system for MX authentication policies
Allow extensibility via external plugins
2020-07-15 01:31:06 +03:00
fox.cpp
623c0d8a04 Document relation between module namespaces and interfaces 2020-07-15 01:31:06 +03:00
fox.cpp
bcceec4fe4 Extract several packages to form a public API 2020-07-15 01:31:06 +03:00