#1005970 [PATCH] System userid display in received header

Package:
ssmtp
Source:
ssmtp
Description:
extremely simple MTA to get mail off the system to a mail hub
Submitter:
Byung-Hee HWANG
Date:
2022-02-19 14:36:03 UTC
Severity:
wishlist
#1005970#5
Date:
2022-02-18 11:50:14 UTC
From:
To:
Package: ssmtp

Hello, I am using sSMTP under Debian 11 Bullseye.

It is not a bug. I got this idea from Postfix.
I hope this simple patch will make the sSMTP a bit more reliable.

Thanks!

Sincerely, Linux fan Byung-Hee

URL:  https://salsa.debian.org/debian/ssmtp.git
Signed-off-by: Byung-Hee HWANG <soyeomul@doraji.xyz>
---
 ssmtp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ssmtp.c b/ssmtp.c
index af4d1e5..5d435ff 100644
--- a/ssmtp.c
+++ b/ssmtp.c
@@ -1606,7 +1606,7 @@ int ssmtp(char *argv[])
 	}

 	outbytes += smtp_write(sock,
-		"Received: by %s (sSMTP sendmail emulation); %s", hostname, arpadate);
+		"Received: by %s (sSMTP sendmail emulation, from userid %d); %s", hostname, getuid(), arpadate);

 	if(have_from == False) {
 		outbytes += smtp_write(sock, "From: %s", from);

#1005970#10
Date:
2022-02-19 14:34:13 UTC
From:
To:
Thanks!

Sincerely, Linux fan Byung-Hee