mox/imapserver
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
..
append_test.go mox! 2023-01-30 14:27:06 +01:00
authenticate_test.go support cram-md5 authentication for imap and smtp 2023-02-05 16:29:03 +01:00
copy_test.go improve training of junk filter 2023-02-11 23:00:12 +01:00
create_test.go mox! 2023-01-30 14:27:06 +01:00
delete_test.go only send \NonExistent for IMAP4rev2, and automatically subscribe to imported mailboxes 2023-02-17 18:35:11 +01:00
error.go mox! 2023-01-30 14:27:06 +01:00
expunge_test.go mox! 2023-01-30 14:27:06 +01:00
fetch.go mox! 2023-01-30 14:27:06 +01:00
fetch_test.go mox! 2023-01-30 14:27:06 +01:00
fuzz_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
idle_test.go mox! 2023-01-30 14:27:06 +01:00
list.go mox! 2023-01-30 14:27:06 +01:00
list_test.go mox! 2023-01-30 14:27:06 +01:00
lsub_test.go mox! 2023-01-30 14:27:06 +01:00
move_test.go mox! 2023-01-30 14:27:06 +01:00
pack.go add two new log levels for tracing sensitive auth protocol messages, and bulk data messages 2023-02-03 20:33:19 +01:00
parse.go mox! 2023-01-30 14:27:06 +01:00
prefixconn.go mox! 2023-01-30 14:27:06 +01:00
protocol.go mox! 2023-01-30 14:27:06 +01:00
protocol_test.go mox! 2023-01-30 14:27:06 +01:00
rename_test.go mox! 2023-01-30 14:27:06 +01:00
search.go mox! 2023-01-30 14:27:06 +01:00
search_test.go mox! 2023-01-30 14:27:06 +01:00
selectexamine_test.go mox! 2023-01-30 14:27:06 +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
starttls_test.go mox! 2023-01-30 14:27:06 +01:00
status_test.go mox! 2023-01-30 14:27:06 +01:00
store_test.go mox! 2023-01-30 14:27:06 +01:00
subscribe_test.go mox! 2023-01-30 14:27:06 +01:00
unselect_test.go mox! 2023-01-30 14:27:06 +01:00
unsubscribe_test.go mox! 2023-01-30 14:27:06 +01:00
utf7.go mox! 2023-01-30 14:27:06 +01:00
utf7_test.go mox! 2023-01-30 14:27:06 +01:00