mox/testdata/smtp/domains.conf
Mechiel Lukkien 3e2695323c
add config option to reject incoming deliveries with an error during the smtp transaction
useful when a catchall is configured, and messages to some address need to be
rejected.

would have been nicer if this could be part of a ruleset. but evaluating a
ruleset requires us to have the message (so we can match on headers, etc). but
we can't reject messages to individual recipients during the DATA command in
smtp. that would reject the entire delivery attempt.

for issue #156 by ally9335
2025-01-24 16:51:21 +01:00

42 lines
829 B
Plaintext

Domains:
mox.example:
Aliases:
public:
Addresses:
- mjl@mox.example
- móx@mox.example
PostPublic: true
AllowMsgFrom: true
private:
Addresses:
- mjl@mox.example
- móx@mox.example
mox2.example: nil
Accounts:
mjl:
Domain: mox.example
Destinations:
mjl@mox.example: nil
mjl@mox2.example: nil
""@mox.example: nil
# ascii o, we'll check that greek & cyrillic lookalike isn't accepted
o@mox.example: nil
# ohm sign, \u2126
Ω@mox.example: nil
móx@mox.example: nil
blocked@mox.example:
SMTPError: 550 no more messages
JunkFilter:
Threshold: 0.9
Params:
Onegrams: true
MaxPower: 0.01
TopWords: 10
IgnoreWords: 0.1
RareWords: 2
# not a member of an alias.
☺:
Domain: mox.example
Destinations:
☺@mox.example: nil