mox/smtpserver
Mechiel Lukkien e413c906b1
if the first smtp or imap command is invalid, shut down the connection instead of trying to read more
this is quite common on the internet. the other side may be trying some other
protocol, e.g. http, or some common vulnerability. we don't want to spam our
own logs with multiple invalid lines. if the first command is valid, but later
are not, we'll keep trying to process them. so this only affects protocol
sessions that are very likely not smtp/imap.

also remove a few more sleeps during tests, making imapserver and smtpserver tests a bit faster.
2023-03-10 10:23:43 +01:00
..
alignment.go mox! 2023-01-30 14:27:06 +01:00
analyze.go fix handling of reputation for messages that were moved out of the rejects mailbox 2023-03-03 13:19:27 +01:00
authresults.go mox! 2023-01-30 14:27:06 +01:00
authresults_test.go mox! 2023-01-30 14:27:06 +01:00
dnsbl.go mox! 2023-01-30 14:27:06 +01:00
dsn.go consistently use log.Check for logging errors that "should not happen", don't influence application flow 2023-02-16 13:22:00 +01:00
error.go mox! 2023-01-30 14:27:06 +01:00
fuzz_test.go only check the autotls hostnames once when serving 2023-03-05 23:56:02 +01:00
limitwriter.go mox! 2023-01-30 14:27:06 +01:00
mx.go mox! 2023-01-30 14:27:06 +01:00
parse.go add scram-sha-256 for smtp 2023-01-31 00:22:26 +01:00
parse_test.go mox! 2023-01-30 14:27:06 +01:00
rejects.go mox! 2023-01-30 14:27:06 +01:00
reputation.go improve training of junk filter 2023-02-11 23:00:12 +01:00
reputation_test.go improve training of junk filter 2023-02-11 23:00:12 +01:00
server.go if the first smtp or imap command is invalid, shut down the connection instead of trying to read more 2023-03-10 10:23:43 +01:00
server_test.go if the first smtp or imap command is invalid, shut down the connection instead of trying to read more 2023-03-10 10:23:43 +01:00