• ssmtp =?UTF-8?Q?=E2=80=9CFromLineOverride=3DNO=E2=80=9D?= has no impact

    From =?ISO-8859-1?Q?Ren=E9?= Neumaier@21:1/5 to All on Wed Jan 27 16:30:02 2021
    Hello together,

    a new lxd container with debian bullseye has to send emails to a SMTP-
    Relay. The chosen software is ssmtp 2.64-9 and the configuration looks
    like that:


    /etc/ssmtp/revaliases

    # sSMTP aliases
    #
    # Format: local_account:outgoing_address:mailhub
    #
    # Example: root:your_login@your.domain:mailhub.your.domain[:port]
    # where [:port] is an optional port number that defaults to 25. root:admin@example.com:mailout.example.com www-data:admin@example.com:mailout.example.com


    /etc/ssmtp/ssmtp.conf

    #
    # Config file for sSMTP sendmail
    #
    # The person who gets all mail for userids < 1000
    # Make this empty to disable rewriting.
    root=admin@example.com

    # The place where the mail goes. The actual machine name is required no
    # MX records are consulted. Commonly mailhosts are named
    mail.domain.com
    mailhub=mailout.example.com

    # Where will the mail seem to come from?
    #rewriteDomain=

    # The full hostname
    hostname=srv0815

    # Are users allowed to set their own From: address?
    # YES - Allow the user to specify their own From: address
    # NO - Use the system generated From: address
    FromLineOverride=NO


    I can send an email as following and everything looks like expected: www-data@srv0815:~# echo "Test message" | mail -s "Test message - is
    from?" itsme@example.com


    But if I send an email with an additional "from field" like this... www-data@srv0815:~# echo "Test message" | mail -s "Test message - is
    from?" itsme@example.com -a From:otherAddress@example.com


    ...I will receive the email with the given "From address" (e.g. otherAddress@example.com). But this shouldn't be possible!? I've
    explicitly set "FromLineOverride=NO" in my configuration. Therefore, as
    far as I know, ssmtp should ignore any additional "from field".

    The same configuration works as expected on another container with
    gentoo linux. Is it a bug? Did I missed some setting? I am grateful for
    any hint.


    Best,
    René


    --
    _____________________________
    GPG-Fingerprint:
    EC0E B6F6 B3FF 6324 B0C8 9452 EF6B 4E3C 2E59 F5AA

    -----BEGIN PGP SIGNATURE-----

    iQJLBAABCAA1FiEE7A629rP/YySwyJRS72tOPC5Z9aoFAmARhNQXHHIubmV1bWFp ZXJAbWFpbGJveC5vcmcACgkQ72tOPC5Z9aq0Bw/9GO/v+gPoVuEUGWE/BsZn4CB8 l3pRNJoIGLwwoKwwZZjWthyGUNU4sP/ziYs2KWAjnGsb17+9hpscucInkJhBsZJh 98iVSOoJ9Dx8+TANzKtz87CazCkZdk5aHWFt74tPrP4ZFhIRDbMy9ZF0QUxd8hfY ty1qa0rADRZobiyVF4oWIuwi8e6bi/xQNokLih07bOpua7AQgNMDVfAHy6feA/yc 9geOw5JfhF4tukixJr1esmTFm0yZ6v9xgNqug4DN97DBvETzCg9rECKBjSSKAY3Z vS29A/wX5W+D3GNKQDWz0ci+wEOzqRwPiXR9w9gniPM0iK+4U81OvMsssbvdYB0W GxZ7cO8k7/daZLGkE5BYf8J/51KnOf2sYNN7u2E/DorYWk/VPOcTxz2y7szg1Joq GJjL/jaF4/gYpv5xhVtfUQosANlv7NnNq26G4OF1vdyGHzZjU26j/RuaA1/m8A3m 7jjpZ2s3zq9XA9Fg3UvIPgqlb7t9UKLXQFL8Sncm7oLKSBSQbvLXIkYTZacdu5C0 vj2/BlkaHmcYufIZ4zEZgGoucW2tsgIQrZtzyfABg6udUdQNBjbE0/JrpLIiYhFs 3kbU5cuZHIx3DWDOEYyiXWsQtR/Gk+a5Kh+B86hvNcmkZ7fDEeIgbwegPRg4N1e/ 1dH+yq44MDlXOnu7tak=
    =YuEo
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Ori