Origin for each line in README from check-in 338af36a00:
da7fc7983d 2024-05-23 1: First of all make sure to never listen on public IPs and always put sockets in da7fc7983d 2024-05-23 2: directories not acessible by just about everyone on your system. Though da7fc7983d 2024-05-23 3: listening on 127.0.0.1:XXXX is equivalent to creating a world-writable socket. da7fc7983d 2024-05-23 4: da7fc7983d 2024-05-23 5: To catch bounces (so they wouldn't stuck in upper mail server) make sure sender da7fc7983d 2024-05-23 6: envelope address is real as required by SaMoToP. For example Postfix has to be da7fc7983d 2024-05-23 7: tweaked like this: da7fc7983d 2024-05-23 8: da7fc7983d 2024-05-23 9: $config_directory/main.cf: da7fc7983d 2024-05-23 10: smtp_generic_maps = hash:$config_directory/generic da7fc7983d 2024-05-23 11: da7fc7983d 2024-05-23 12: $config_directory/generic: da7fc7983d 2024-05-23 13: "" postmaster@example.com da7fc7983d 2024-05-23 14: <> postmaster@example.com da7fc7983d 2024-05-23 15: da7fc7983d 2024-05-23 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.