From bdf8ed139a586f3ef1d11574c59813f982ca0698 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 7 Jun 2000 02:21:36 +0000 Subject: Julian Haight's changes. svn path=/trunk/; revision=2900 --- NEWS | 4 ++++ driver.c | 11 ++++++++++- fetchmail-FAQ.html | 8 ++++---- fetchmail-features.html | 14 +++++++++++--- fetchmail.c | 37 +++++++++++++++++++++++++++++++++++-- fetchmail.h | 2 ++ fetchmail.man | 8 ++++++++ options.c | 12 +++++++++--- sink.c | 25 ++++++++++++++++++------- 9 files changed, 101 insertions(+), 20 deletions(-) diff --git a/NEWS b/NEWS index 0539dcba..864fb1b0 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,10 @@ (The `lines' figures total .c, .h, .l, and .y files under version control.) +* Julian Haight added support for arbitrary SMTP RCPT TO: control using: + --smtpname user@host. Should be useful for sites running multiple virtual + domains without local users, such as a cyrus IMAP installation. +* Julian Haight added hostaddr reporting in the "Received: from" clause. * NT material added to FAQ item O9. * Commented out the socket-shutdown code that was causing mystery hangs under Red Hat 6.2. We can live with a socket leak (assuming it comes back) nmore diff --git a/driver.c b/driver.c index 4f35261e..c1b171f5 100644 --- a/driver.c +++ b/driver.c @@ -987,7 +987,16 @@ static int readheaders(int sock, if (!run.invisible && n != -1) { /* utter any per-message Received information we need here */ - sprintf(buf, "Received: from %s\r\n", ctl->server.truename); + if (ctl->server.trueaddr) { + sprintf(buf, "Received: from %s [%u.%u.%u.%u]\r\n", + ctl->server.truename, + (unsigned char)ctl->server.trueaddr[0], + (unsigned char)ctl->server.trueaddr[1], + (unsigned char)ctl->server.trueaddr[2], + (unsigned char)ctl->server.trueaddr[3]); + } else { + sprintf(buf, "Received: from %s\r\n", ctl->server.truename); + } n = stuffline(ctl, buf); if (n != -1) { diff --git a/fetchmail-FAQ.html b/fetchmail-FAQ.html index 12a81729..28e2f0ab 100644 --- a/fetchmail-FAQ.html +++ b/fetchmail-FAQ.html @@ -10,7 +10,7 @@
Back to Fetchmail Home Page To Site Map -$Date: 2000/06/07 00:22:00 $ +$Date: 2000/06/07 02:21:34 $

Frequently Asked Questions About Fetchmail

@@ -1002,8 +1002,8 @@ option to point fetchmail at it. That should solve the problem.

C7. How can I forward mail to another host?

To forward mail to a host other than the one you are running fetchmail -on, use the smtphost option. See the manual page for -details.

+on, use the smtphost or smtpname option. +See the manual page for details.


T1. How can I use fetchmail with sendmail?

@@ -2856,7 +2856,7 @@ install Linux on your server...

Back to Fetchmail Home Page To Site Map -$Date: 2000/06/07 00:22:00 $ +$Date: 2000/06/07 02:21:34 $

Eric S. Raymond <esr@snark.thyrsus.com>
diff --git a/fetchmail-features.html b/fetchmail-features.html index 5f24bfcd..983a55a0 100644 --- a/fetchmail-features.html +++ b/fetchmail-features.html @@ -10,7 +10,7 @@
Back to Fetchmail Home Page To Site Map -$Date: 2000/06/07 00:22:01 $ +$Date: 2000/06/07 02:21:34 $

@@ -19,7 +19,15 @@

Since 5.0: