[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1005970: [PATCH] System userid display in 1st Recevied header



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);
-- 
2.30.2


Reply to: