mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
ssmtp: maintenance update
remove needless dead.letter function (at least on embedded devices) backport debian fixes (slightly modified) compile tested. Please apply to upstream - thank you! Signed-off-by: Dirk Brenken <dirk@brenken.org>
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
--- a/ssmtp.c
|
||||
+++ b/ssmtp.c
|
||||
@@ -1338,6 +1338,7 @@ ssmtp() -- send the message (exactly one
|
||||
int ssmtp(char *argv[])
|
||||
{
|
||||
char b[(BUF_SZ + 2)], *buf = b+1, *p, *q;
|
||||
+ char *remote_addr;
|
||||
#ifdef MD5AUTH
|
||||
char challenge[(BUF_SZ + 1)];
|
||||
#endif
|
||||
@@ -1541,6 +1542,10 @@ int ssmtp(char *argv[])
|
||||
outbytes += smtp_write(sock, "From: %s", from);
|
||||
}
|
||||
|
||||
+ if(remote_addr=getenv("REMOTE_ADDR")) {
|
||||
+ outbytes += smtp_write(sock, "X-Originating-IP: %s", remote_addr);
|
||||
+ }
|
||||
+
|
||||
if(have_date == False) {
|
||||
outbytes += smtp_write(sock, "Date: %s", arpadate);
|
||||
}
|
||||
Reference in New Issue
Block a user