Closed phdoerfler closed 7 years ago
Hey @phdoerfler, I think this is a good idea but there's no need to place this in /etc
, you can use pkgs.writeText
and source the file from the store:
https://github.com/eqyiel/deployments/blob/master/realms/tsumugi.rkm.id.au/mail-server.nix#L74-L83 https://github.com/eqyiel/deployments/blob/master/realms/tsumugi.rkm.id.au/mail-server.nix#L145-L146
@eqyiel that's a great idea, thanks!
@eqyiel Is there any specific reason you also test for header fields that contain whitespace before the field name?
All tests pass.
I'll try to write a test to ensure that this information is not included as soon as I find some time.
@phdoerfler no specfic reason other than that I copied riseup's example verbatim: https://we.riseup.net/debian/mail 😅
I added a test that ensures that the sender IP address is not in the email header anymore.
This adds header filtering which essentially gets rid of the user's mail client's identification as well as the user's IP address etc. I was not able to have the file placed in /etc/postfix, so I went for /etc/postfixsupport.