diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2011-02-27 13:12:42 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2011-02-27 13:12:42 +0000 |
commit | 2e7f70ed4a2876422b43fa09d4e4139fa86a35f6 (patch) | |
tree | cee8c4c34a02b37fb4a87c14dd6e95a33b1df01b /mail/ssmtp/files/remote-addr.patch | |
parent | - Update to 0.0.5 (diff) |
- Update to 2.64.
Other changes:
* Restyle port to use options framework plus other style changes.
* Remove MD5 authentication knob - enabled by default now.
* Add X-Originating-IP knob with patch from upstream.
* Add ssmtp.conf.5 man page to installation.
PR: 154924
Submitted by: Aragon Gouveia <aragon@phat.za.net> (maintainer)
Diffstat (limited to 'mail/ssmtp/files/remote-addr.patch')
-rw-r--r-- | mail/ssmtp/files/remote-addr.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/mail/ssmtp/files/remote-addr.patch b/mail/ssmtp/files/remote-addr.patch new file mode 100644 index 000000000000..8d7d770b5852 --- /dev/null +++ b/mail/ssmtp/files/remote-addr.patch @@ -0,0 +1,26 @@ +http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=557741 + +Patch by Victor Sudakov <sudakov@sibptus.tomsk.ru> +Modified by Anibal Monsalve Salazar <anibal@debian.org> + +--- ssmtp.c.orig 2009-11-23 20:55:11.000000000 +1100 ++++ ssmtp.c 2009-11-24 13:27:58.000000000 +1100 +@@ -1409,6 +1409,7 @@ + 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 +@@ -1612,6 +1613,10 @@ + 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); + } |