Check-in [9a76ed5387]
Logged in as anonymous
Overview
Comment:update README
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | v0.3.0
Files: files | file ages | folders
SHA3-256: 9a76ed5387d13d5c664f138215c3f5a33858c73ab67e4d8ced77aad419eaeac2
User & Date: arcade on 2024-11-28 15:52:11.039
Other Links: manifest | tags
Context
2024-12-10
17:29
bump crates, fix error sending check-in: 7f8a9994b3 user: arcade tags: trunk, v0.3.1
2024-11-28
15:52
update README check-in: 9a76ed5387 user: arcade tags: trunk, v0.3.0
15:44
This is kindda a HUGE rework. SMTP backend switched from SaMoToP to mailin-embedded, resulting in: * LMTP support dropped (I hope just temporary); * no need to write anything to files as whole processing is done in memory; * this also means we can return status - whether message was sent, was there any errors etc, no internal queue exists now, SMTP server should handle queueing from now on; * possibility to deny mail to unknown/unconfigured recipients. check-in: 1db9dbe390 user: arcade tags: trunk, v0.3.0
Changes
Modified README from [01323d8919] to [e057422bf7].
1
2
3
4
5
6
7


8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
1
2
3
4
5


6
7
8
9
10
11
12
13
14
15
16















-
-
+
+









-
-
-
-
-
-
-
-
-
-
First of all make sure to never listen on public IPs and always put sockets in
directories not acessible by just about everyone on your system. Though
listening on 127.0.0.1:XXXX is equivalent to creating a world-writable socket.

To catch bounces (so they wouldn't stuck in upper mail server) make sure sender
envelope address is real as required by SaMoToP. For example Postfix has to be
tweaked like this:
envelope address is real as required by mail library (actually not sure whether
this applies to mailin). For example Postfix has to be tweaked like this:

$config_directory/main.cf:
	smtp_generic_maps = hash:$config_directory/generic

$config_directory/generic:
	""	postmaster@example.com
	<>	postmaster@example.com

Actually not sure which one works...

I kindda know this whole stuff is written in completely wrong way, but I have
reasons for that. SaMoToP prevent me from creating a separate transport so I'm
just using MailDir and directly reading files from there in separate task. Also
socket permissions can't actually be hinted to SaMoToP, and I don't want to
mess with umask in this case, hence the extra task that changes socket
permissions later. The whole MailDir idea was shamelessly ripped from
https://github.com/meysam81/lori, kudos to the author. And if you think I
actually copypasted too much code - you are free to use this under APACHE-2.0
license.