215 Commits

Author SHA1 Message Date
c169a03ba1 stop xread/xwrite when no ret is zero - conn closed
Signed-off-by: AGentooCat <agentoocat@mail.i2p>
2025-06-12 07:57:26 +00:00
50f54a0a62 fix is_user_allowed whitelist check
Signed-off-by: AGentooCat <agentoocat@mail.i2p>
2025-06-12 07:56:53 +00:00
62843313fc fix crash when b32addr is not provided during bootup
Signed-off-by: AGentooCat <agentoocat@mail.i2p>
2025-06-12 07:56:38 +00:00
85d230aa8c fix crash when refreshing hosts
Signed-off-by: AGentooCat <agentoocat@mail.i2p>
2025-06-12 07:56:08 +00:00
1eac4594d9 implement mail dest cache usage
Signed-off-by: AGentooCat <agentoocat@mail.i2p>
2025-06-11 19:55:16 +00:00
5d1768b8b6 change key generation via SAM command
Signed-off-by: AGentooCat <agentoocat@mail.i2p>
2025-06-11 16:13:31 +00:00
d4efabc70f change README.md again again
Signed-off-by: AGentooCat <agentoocat@mail.i2p>
2025-06-11 09:56:07 +00:00
811398e478 change README.md again
Signed-off-by: AGentooCat <agentoocat@mail.i2p>
2025-06-11 09:54:35 +00:00
2aceaa6a87 change README.md
Signed-off-by: AGentooCat <agentoocat@mail.i2p>
2025-06-11 09:54:02 +00:00
12c51e4e51 don't delete a mail from local send queue until all users have deleted it
Signed-off-by: AGentooCat <agentoocat@mail.i2p>
2025-06-11 06:20:43 +00:00
d0127724e5 don't delete a mail unless all wanted sends are successful
Signed-off-by: AGentooCat <agentoocat@mail.i2p>
2025-06-10 22:10:03 +00:00
a85e287766 log returned error from getmaillines in TOP command correctly
Signed-off-by: AGentooCat <agentoocat@mail.i2p>
2025-06-10 21:39:53 +00:00
898835b515 fix TOP command
Signed-off-by: AGentooCat <agentoocat@mail.i2p>
2025-06-10 21:39:26 +00:00
07e99c953c fix looking up mail sizes for POP sessions
Signed-off-by: AGentooCat <agentoocat@mail.i2p>
2025-06-10 21:03:29 +00:00
4c5c744f27 fix ignoring SIGPIPEs
Signed-off-by: AGentooCat <agentoocat@mail.i2p>
2025-06-10 20:58:31 +00:00
74dd816163 prevent memory leak on logged out POP users
Signed-off-by: AGentooCat <agentoocat@mail.i2p>
2025-06-10 20:57:54 +00:00
e7e7806d09 ignore SIGPIPEs
Signed-off-by: AGentooCat <agentoocat@mail.i2p>
2025-06-10 20:57:41 +00:00
f59190528e fix send errors on >1 users on the same host
Signed-off-by: AGentooCat <agentoocat@mail.i2p>
2025-06-10 20:43:55 +00:00
e40ba292e7 fix uninit errlog string on some errors
Signed-off-by: AGentooCat <agentoocat@mail.i2p>
2025-06-10 19:09:50 +00:00
6aeb36af15 fix at symbol check during sending mail
Signed-off-by: AGentooCat <agentoocat@mail.i2p>
2025-06-10 19:09:17 +00:00
4e111b4871 fix sendmsgid returning 0(=SQLITE_OK) whne a failure happened
Signed-off-by: AGentooCat <agentoocat@mail.i2p>
2025-06-10 19:08:42 +00:00
11c06c1961 and to local connections
Signed-off-by: AGentooCat <agentoocat@mail.i2p>
2025-06-10 15:26:35 +00:00
635fc58580 add basic auth code to limit console sends to a configured admin account
Signed-off-by: AGentooCat <agentoocat@mail.i2p>
2025-06-10 15:24:06 +00:00
f52d265a99 ignore non-i2p mailhosts in ls2 service records
Signed-off-by: AGentooCat <agentoocat@mail.i2p>
2025-06-10 08:36:06 +00:00
abfa953f49 prevent mixups with is_self on mailsend failtracks + some uninit var inits
Signed-off-by: AGentooCat <agentoocat@mail.i2p>
2025-06-10 08:35:51 +00:00
c5124b2e55 fix fetching remote maildest via HTTP
Signed-off-by: AGentooCat <agentoocat@mail.i2p>
2025-06-09 22:34:42 +00:00
5052580f92 fix SAM session creation
Signed-off-by: AGentooCat <agentoocat@mail.i2p>
2025-06-09 22:02:37 +00:00
b744ea0337 fix transmitting large mails through POP
Signed-off-by: AGentooCat <agentoocat@mail.i2p>
2025-06-09 21:19:38 +00:00
da41bd74ad add stub server controling by sending to @itoomail-system
Signed-off-by: AGentooCat <agentoocat@mail.i2p>
2025-06-09 14:31:45 +00:00
8d3747b357 add mail.i2p to postmen sites
Signed-off-by: AGentooCat <agentoocat@mail.i2p>
2025-06-09 13:35:21 +00:00
e2c6b88d73 fix smtp error reports
Signed-off-by: AGentooCat <agentoocat@mail.i2p>
2025-06-09 10:01:22 +00:00
9efd201cdf refuse SMTP sends/recvs as itoomail-system user
Signed-off-by: AGentooCat <agentoocat@mail.i2p>
2025-06-09 09:33:23 +00:00
9b5f653c98 fix line crlf stripping but util.c
Signed-off-by: AGentooCat <agentoocat@mail.i2p>
2025-06-09 09:33:04 +00:00
400cc80f04 refuse SMTP sends as itoomail-system user
Signed-off-by: AGentooCat <agentoocat@mail.i2p>
2025-06-09 09:28:54 +00:00
4b3b488e69 refuse POP logins as itoomail-system user
Signed-off-by: AGentooCat <agentoocat@mail.i2p>
2025-06-09 09:22:17 +00:00
8998a8f8e8 fix MAIL FROM/RCPT TO arguments being rejected (it can have some)
Signed-off-by: AGentooCat <agentoocat@mail.i2p>
2025-06-09 09:18:22 +00:00
6cd83811a7 fix sending mails
Signed-off-by: AGentooCat <agentoocat@mail.i2p>
2025-06-09 09:17:47 +00:00
5f980be935 change failed-notify address to itoomail-system
Signed-off-by: AGentooCat <agentoocat@mail.i2p>
2025-06-09 09:17:35 +00:00
a13c10b64e fix line crlf stripping
Signed-off-by: AGentooCat <agentoocat@mail.i2p>
2025-06-09 09:17:16 +00:00
21bb9f4e04 fix EHLO comms part 2
Signed-off-by: AGentooCat <agentoocat@mail.i2p>
2025-06-09 09:16:27 +00:00
5582aa896b fix saving failed-send-notification hosts
Signed-off-by: AGentooCat <agentoocat@mail.i2p>
2025-06-09 08:10:39 +00:00
471d0c1677 reroute outgoing mails to self as incoming mail
Signed-off-by: AGentooCat <agentoocat@mail.i2p>
2025-06-09 08:08:53 +00:00
2538e67fd2 fix from address generation
Signed-off-by: AGentooCat <agentoocat@mail.i2p>
2025-06-08 21:36:14 +00:00
5e30310b6e also this why not
Signed-off-by: AGentooCat <agentoocat@mail.i2p>
2025-06-08 21:24:18 +00:00
2d062a0cb0 delay when retrying sam connection
Signed-off-by: AGentooCat <agentoocat@mail.i2p>
2025-06-08 21:23:09 +00:00
10e24795ba error out if sam handshake couldn't be done
Signed-off-by: AGentooCat <agentoocat@mail.i2p>
2025-06-08 21:22:28 +00:00
9fd0ad1781 fix sam message generation
Signed-off-by: AGentooCat <agentoocat@mail.i2p>
2025-06-08 21:21:19 +00:00
5d9b161e65 and add func that reports to sender if a mail couldn't be sent multiple times
Signed-off-by: AGentooCat <agentoocat@mail.i2p>
2025-06-08 21:18:29 +00:00
5806ff63c6 add generate_mail func
Signed-off-by: AGentooCat <agentoocat@mail.i2p>
2025-06-08 21:17:09 +00:00
49fb3db5b2 force-exit on a second SIGINT
Signed-off-by: AGentooCat <agentoocat@mail.i2p>
2025-06-08 21:14:35 +00:00