mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-17 14:37:02 +00:00
This patch adds checks that verify: - The envelope from must match the authenticated user. This prevents impersonation at the envelope level (while still allowing bounces, of course). - If the destination is remote, then the user must have completed authentication. This prevents unauthorized relaying. The patch ends up adjusting quite a few tests, as they were not written considering these restrictions so they have to be changed accordingly.
This directory holds end to end tests, written usually in a combination of shell and some Python. They're not expected to be portable, as that gets impractical very quickly. They also have some dependencies, listed below. === Dependencies The tests depend on the following things being installed on the system (listed as Debian package, for consistency): - netcat (nc) - msmtp - util-linux (for /usr/bin/setsid) For t-exim (Exim interaction tests): - gettext-base (for /usr/bin/envsubst) - The exim binary available somewhere, but it doesn't have to be installed. There's a script "get-exim4-debian.sh" to get it from the archives.