Vsevolod Stakhov
cf2ae3292a
[Minor] Fix lua error after #3387
vor 4 Jahren
Janne Heß
270862feda
Fix some DMARC issues
These issues were reported in #2872 which was closed by the stale bot.
This addresses the first two issues by getting rid of the string
"softfail" and by fixing the reason.
vor 4 Jahren
Vsevolod Stakhov
9def8135c3
[Minor] Explicitly convert things to strings
Issue: #3272
vor 4 Jahren
Vsevolod Stakhov
9e80349be4
[Minor] Implement additional_address_bcc feature
Issue: #3242
vor 4 Jahren
Thomas Oettli
7ee0ad41f6
[Minor] Fix parsing DMARC records containing upper-case letters
vor 4 Jahren
Thomas Oettli
a7e5d0b2a1
[Minor] Register forgotten symbol DMARC_BAD_POLICY
vor 4 Jahren
Vitaliy Vasilenko
df32de0bf1
Tune DMARC report
Add customization - message-id from
vor 4 Jahren
Vsevolod Stakhov
1d577bf39b
[Project] More fixes to follow the C module semantics
vor 4 Jahren
Vsevolod Stakhov
5f116f6edb
[Minor] Fix dmarc after change
vor 4 Jahren
Phil Ross
25ef2636ef
[Minor] Fix not logging DMARC reporting addresses.
`reporting_addr` uses the email address strings as keys so
`table.concat` won't produce any output.
vor 4 Jahren
Phil Ross
d80afefcbf
[Fix] Fix issues sending DMARC reports.
Processing the email template was causing a parse error (#3054 ). This
was caused by the use of `{% ... %}` statements instead of `{= ... =}`
output expressions.
The message was failing to be sent over SMTP, closing the socket after
reading the response to the DATA command and logging the following
errors:
> lua_tcp_arg_toiovec: bad argument at position -1
> lua_tcp_add_write: tcp request has bad data argument at pos 3
This was caused by the number of substitutions made by `gsub` being
added to the message table.
Sending would stop after processing the first message. This was caused
by the sendmail callback function missing a call to
`get_reporting_domain` on a successful outcome.
Resolves #3054 .
vor 4 Jahren
Vsevolod Stakhov
d9f755c976
[Minor] Distinguish absent IP address in a more sane way
vor 4 Jahren
cgielen
3462370931
fix variable name report_start
vor 4 Jahren
Vsevolod Stakhov
b07b8c60f7
[Minor] Dmarc: Fix bad policies detection
vor 4 Jahren
cgielen
923fd86195
rename report_domain -> reportING_domain
vor 4 Jahren
Vsevolod Stakhov
38a7c9073a
[Fix] Fix DMARC_NA behaviour in case of no valid policies
Issue: #2955
Submitted by: @mguesdon
vor 4 Jahren
Vsevolod Stakhov
2e5224fcab
[Minor] Use lua_smtp for dmarc reports
vor 5 Jahren
Vsevolod Stakhov
43dfa08ded
[Fix] Do not blacklist mail by SPF/DMARC for local/authed users
Issue: #2871
vor 5 Jahren
Vsevolod Stakhov
f4efae27e9
[Fix] Switch to GMT
vor 5 Jahren
Vsevolod Stakhov
a1c156778f
[Fix] Set dmarc force action as least action
vor 5 Jahren
Vsevolod Stakhov
19026c7116
[Minor] Do not use `get_symbol` to check existance
vor 5 Jahren
Vsevolod Stakhov
9b054676f0
[Minor] Add more fields to the DMARC reports
Issue: #2847
vor 5 Jahren
Vsevolod Stakhov
2b72876639
[Minor] Fix line length in DMARC reports
Issue: #2820
Closes: #2820
vor 5 Jahren
Vsevolod Stakhov
31bc20082d
[Minor] Fix flags on virtual symbols
vor 5 Jahren
analogic
7d5502ada6
Update dmarc.lua
vor 5 Jahren
analogic
8a8f32f858
Update dmarc.lua
vor 5 Jahren
Vsevolod Stakhov
a763b9c316
[Minor] Remove too long strings in Lua code
vor 5 Jahren
Vsevolod Stakhov
a171bcffba
[Fix] Perform policy downgrade on sample out, add tests
vor 5 Jahren
Vsevolod Stakhov
71499b6811
[Test] Add tests for pct=0 case
vor 5 Jahren
Vsevolod Stakhov
0125a1a771
[Minor] Include module name when setting pre result
vor 5 Jahren
Vsevolod Stakhov
3c96f689a7
[Minor] Fix some tests
vor 5 Jahren
Vsevolod Stakhov
a2ea0822d2
[Rework] Completely rewrite DMARC checks logic
vor 5 Jahren
Vsevolod Stakhov
4c9f6b2118
[Minor] Unify check_auth/check_local options
vor 5 Jahren
Vsevolod Stakhov
09c208bda1
[Fix] Fix groups mess
vor 5 Jahren
Vsevolod Stakhov
30365705c8
[Fix] Fix resolving in DMARC reports
Issue: #2538
vor 5 Jahren
Jan-Philipp Benecke
fe98070fef
make dmarc report from address custom
vor 5 Jahren
Vsevolod Stakhov
0d4212eb6c
[Fix] Deprecate task:inc_dns_req as it is redundant
vor 5 Jahren
Vsevolod Stakhov
11043c1280
[Feature] Use pure Lua debugm function
vor 5 Jahren
Vsevolod Stakhov
7f169bd819
[Minor] Avoid pre-result overriding
vor 6 Jahren
Vsevolod Stakhov
2ffba6be37
[Fix] Try to fix leak in dmarc module
vor 6 Jahren
Vsevolod Stakhov
85e5de3d81
[Fix] Send DMARC reports compressed
vor 6 Jahren
Vsevolod Stakhov
4ae3fe9af8
[Fix] Fix base64 folding in Lua API
Issue: #2225
vor 6 Jahren
Vsevolod Stakhov
d54cddeeee
[Project] Encourage dependencies registration by name only
vor 6 Jahren
Andrew Lewis
1e54b03ed6
[Fix] Deal with non-key arguments in lua_redis.exec_script
vor 6 Jahren
Andrew Lewis
eb71392c46
[Fix] DMARC: require report_settings for sending reports only
vor 6 Jahren
Andrew Lewis
e3c522b8e5
[Minor] DMARC: apply library functions
vor 6 Jahren
Vsevolod Stakhov
714ebee786
[Minor] Add common methods to find a primary controller
vor 6 Jahren
Andrew Lewis
8308c7983f
[Fix] Setting check_local / check_authed in plugins (#1954)
vor 6 Jahren
Andrew Lewis
3f3ab3c9a8
[Minor] Use controller for single-instance tasks
vor 6 Jahren
Andrew Lewis
c13a5cbb44
[Fix] Redis script loading in DMARC; URL tags; URL reputation
- Issue: #1716
vor 6 Jahren