Commit graph

14 commits

Author SHA1 Message Date
Matthias Schneider
72416b0456 #736: dmarc evalute added check if fromDomain is a TLD 2024-12-09 09:03:45 +01:00
Adrien Mulattieri
7ce4e6a759 Remove duplicated test case 2024-01-25 16:34:58 +01:00
Gusted
b8d8ca6301 refactor(gofumpt): run gofumpt over the code 2021-08-10 19:33:54 +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
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
5d46949b25
gofmt -s everything 2020-10-03 18:42:17 +03:00
fox.cpp
2d18ff5a30
MIT => GPLv3; Add license/copyright notices everywhere 2020-07-22 16:12:26 +03:00
fox.cpp
bcceec4fe4
Extract several packages to form a public API 2020-07-15 01:31:06 +03:00
fox.cpp
9b279735e8
Address several TODO comments
Several comments were removed since they are not worth the trouble.
A few minor issues were addressed.
Most of remaining comments got corresponding GitHub issues assigned.
2020-03-05 02:26:30 +03:00
fox.cpp
c4ea9a730f
Instrument the SMTP code using runtime/trace
runtime/trace together with 'go tool trace' provides extremely powerful
tooling for performance (latency) analysis. Since maddy prides itself on
being "optimized for concurrency", it is a good idea to actually live up
to this promise.

Closes #144. No need to reinvent the wheel. The original issue
proposed a solution to use in production to detect "performance
anomalies", it is possible to use runtime/trace in production too, but
the corresponding flag to enable profiler endpoint is hidden behind the
'debugflags' build tag at the moment.

For SMTP code, the basic latency information can be obtained from
regular logs since they include timestamps with millisecond granularity.
After the issue is apparent, it is possible to deploy the server
executable compiled with tracing support and obtain more information

... Also add missing context.Context arguments to smtpconn.C.
2019-12-13 17:31:35 +03:00
fox.cpp
305fdddf24
Use context.Context all over the place
It is useful to define background tasks lifetimes more precisely,
especially involving timeouts and other cancellation methods.

On top of that, several tracing facilities are context-based (e.g.
runtime/trace), so it is possible to use them now.
2019-12-13 17:31:35 +03:00
fox.cpp
9e5bb288b3
Fix a bunch of grammar errors in messages around the code base 2019-12-13 17:31:35 +03:00
fox.cpp
a6dde6345d
msgpipeline: Fix hang on DMARC fetch error 2019-12-07 05:37:26 +03:00
fox.cpp
bf188e454f
Move most code from the repo root into subdirectories
The intention is to keep to repo root clean while the list of packages
is slowly growing.

Additionally, a bunch of small (~30 LoC) files in the repo root is
merged into a single maddy.go file, for the same reason.

Most of the internal code is moved into the internal/ directory. Go
toolchain will make it impossible to import these packages from external
applications.

Some packages are renamed and moved into the pkg/ directory in the root.
According to https://github.com/golang-standards/project-layout this is
the de-facto standard to place "library code that's ok to use by
external applications" in.

To clearly define the purpose of top-level directories, README.md files
are added to each.
2019-12-06 01:35:12 +03:00