Your message dated Fri, 6 Mar 2026 07:23:18 +0500
with message-id 
<capeewgdzbfhfnseqqse6in3bf187w_clq--y0b+owcy0yi7...@mail.gmail.com>
and subject line Bug is invalid
has caused the Debian Bug report #981244,
regarding ssmtp “FromLineOverride=NO” has no impact
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
981244: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=981244
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: ssmtp
Version: 2.64-9 amd64

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

(not auth internal relay)

/etc/ssmtp/revaliases

# sSMTP aliases
# 
# Format:   local_account:outgoing_address:mailhub
#
# Example: root:[email protected]:mailhub.your.domain[:port]
# where [:port] is an optional port number that defaults to 25.
root:[email protected]:mailout.example.com
www-data:[email protected]: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.
[email protected]

# The place where the mail goes. The actual machine name is required no
# MX records are consulted. Commonly mailhosts are named ...
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?" [email protected]


But if I send an email with an additional "from address" like this...

www-data@srv0815:~# echo "Test message" | mail -s "Test message - is
from?" [email protected] -a From:[email protected]


...I will receive the email with the given "From address" (e.g. From:
[email protected]). 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 address".

The same configuration works as expected on another container with
gentoo linux (its ssmtp-2.64-r3 here). Probably the same upstream
version.

Also, I've tried an older ssmtp version on the same lxd container:
ssmtp-2.64-8.1+b1

With 2.64-8.1+b1, no issues. The additional from parameter will be
ignored correctly.

I think it could be a bug in the current testing version of ssmtp.


Best,
René

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

Attachment: signature.asc
Description: This is a digitally signed message part


--- End Message ---
--- Begin Message ---
This command does not work.

$ echo "Test message" | mail -s "Test message - is
from?" [email protected] -a From:[email protected]

-s option is not handled by ssmtp

-a is of no use unless paired with -au for the authentication user or
-ap for the authentication password.

To effectively test the command you will need this:

echo "Test message" | ./ssmtp -d -f  [email protected] [email protected]

The -f option replaces the from address.

Closing the issue.

--- End Message ---

Reply via email to