Lines of
README
from check-in 338af36a00
that are changed by the sequence of edits moving toward
check-in 9a76ed5387:
1: First of all make sure to never listen on public IPs and always put sockets in
2: directories not acessible by just about everyone on your system. Though
3: listening on 127.0.0.1:XXXX is equivalent to creating a world-writable socket.
4:
5: To catch bounces (so they wouldn't stuck in upper mail server) make sure sender
338af36a00 2024-05-23 6: envelope address is real as required by SaMoToP. For example Postfix has to be
338af36a00 2024-05-23 7: tweaked like this:
8:
9: $config_directory/main.cf:
10: smtp_generic_maps = hash:$config_directory/generic
11:
12: $config_directory/generic:
13: "" postmaster@example.com
14: <> postmaster@example.com
15:
16: Actually not sure which one works...
338af36a00 2024-05-23 17:
338af36a00 2024-05-23 18: I kindda know this whole stuff is written in completely wrong way, but I have
338af36a00 2024-05-23 19: reasons for that. SaMoToP prevent me from creating a separate transport so I'm
338af36a00 2024-05-23 20: just using MailDir and directly reading files from there in separate task. Also
338af36a00 2024-05-23 21: socket permissions can't actually be hinted to SaMoToP, and I don't want to
338af36a00 2024-05-23 22: mess with umask in this case, hence the extra task that changes socket
338af36a00 2024-05-23 23: permissions later. The whole MailDir idea was shamelessly ripped from
338af36a00 2024-05-23 24: https://github.com/meysam81/lori, kudos to the author. And if you think I
338af36a00 2024-05-23 25: actually copypasted too much code - you are free to use this under APACHE-2.0
338af36a00 2024-05-23 26: license.