From e652084c7e5eb0281ade3f988605ede00263f964 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 6 May 1997 07:18:59 +0000 Subject: Make header rewrite play better with exim. svn path=/trunk/; revision=982 --- INSTALL | 5 +++-- NEWS | 3 ++- fetchmail-FAQ.html | 34 +++++++++++++++++++++++----------- rfc822.c | 21 +++++++++++---------- 4 files changed, 39 insertions(+), 24 deletions(-) diff --git a/INSTALL b/INSTALL index 70fe0595..67515aac 100644 --- a/INSTALL +++ b/INSTALL @@ -61,8 +61,9 @@ wish to change these defaults, edit the Makefile AFTER you run a prefix other than /usr/local, or you can choose completely different directories for each item. -NOTE: If you are using exim, you must configure it to accept local -addresses as valid RCPT TO lines. +NOTE: If you are using an MTA other than sendmail (such as qmail or exim), +see the FAQ (section T) for discussion of any special configuration steps +that may be necessary. 4. SET UP A RUN CONTROL FILE diff --git a/NEWS b/NEWS index dc339569..3b4653bd 100644 --- a/NEWS +++ b/NEWS @@ -38,8 +38,9 @@ pl 3.9.3 (): * Fix for -I option from George Sipe. * Finally got error.c to compile under AIX, thanks to Dave Vinish. * Prevent header rerwrite logic from appending mailserver name to blank To. +* When header rewrite is on, hack Return-Path as well. -There are 224 people on the fetchmail-friends list. +There are 240 people on the fetchmail-friends list. pl 3.9.2 (Wed Apr 23 14:07:03 EDT 1997): * Fixed a glitch in the Makefile yacc and lex productions diff --git a/fetchmail-FAQ.html b/fetchmail-FAQ.html index e3d7b5da..712273b6 100644 --- a/fetchmail-FAQ.html +++ b/fetchmail-FAQ.html @@ -9,9 +9,9 @@

Frequently Asked Questions About Fetchmail

-$Id: fetchmail-FAQ.html,v 1.9 1997/05/03 02:38:26 esr Exp $

+$Id: fetchmail-FAQ.html,v 1.10 1997/05/06 07:18:59 esr Exp $

-(Added O3 on nonexistent logfiles.)

+(New: T2 on using fetchmail with exim.)

Before reporting any bug, please read G3 for advice on how to include diagnostic information that will get your bug fixed @@ -55,10 +55,14 @@ fetchmail-friends-request@thyrsus.com.

C3. How do I know what interface and address to use with --interface?
C4. How can I get fetchmail to work with ssh?
C5. How can I set up support for sendmail's anti-spam 571 response?
-C6. How can I use fetchmail with qmail?
-C7. How can I do automatic startup/shutdown of fetchmail +C6. How can I do automatic startup/shutdown of fetchmail when I may have multiple login sessions going?
+

Configuration tips for non-sendmail MTAs

+ +T1. How can I use fetchmail with qmail?
+T2. How can I use fetchmail with exim?
+

Runtime fatal errors:

R1. I think I've set up fetchmail correctly, but I'm not getting any mail.
@@ -575,7 +579,16 @@ to allow sendmail to process the message further and generate an error message to the sender.


-

C6. How can I use fetchmail with qmail?

+

C6. How can I do automatic startup/shutdown of fetchmail +when I may have multiple login sessions going?

+ +In the contrib subdirectory of the fetchmail distribution there is +some shell code you can add to your .bash_login and .bash_logout +profiles that will accomplish this. Thank James Laferriere +<babydr@nwrain.net> for it.

+ +


+

T1. How can I use fetchmail with qmail?

Turn on the forcecr option; qmail's listener mode doesn't like header or message lines terminated with bare linefeeds.

@@ -637,13 +650,12 @@ in the alias directory (normally /var/qmail/alias) with the contents:

Note this does require a modern /bin/sh.


-

C7. How can I do automatic startup/shutdown of fetchmail -when I may have multiple login sessions going?

+

T2. How can I use fetchmail with exim?

-In the contrib subdirectory of the fetchmail distribution there is -some shell code you can add to your .bash_login and .bash_logout -profiles that will accomplish this. Thank James Laferriere -<babydr@nwrain.net> for it.

+There is a switch somewhere in exim's configuration files that allows +it to accept domainless MAIL FROM addresses; you may have to flip that +if you're running a fetchmail version prior to 3.9.3. Otherwise +you're all set.


R1. I think I've set up fetchmail correctly, but I'm not getting any mail.

diff --git a/rfc822.c b/rfc822.c index 1b83bee5..267c06e5 100644 --- a/rfc822.c +++ b/rfc822.c @@ -29,11 +29,12 @@ const char *host; /* server hostname */ char *from, *cp; int parendepth, state, has_bare_name_part, has_host_part; - if (strncmp("From: ", buf, 6) - && strncmp("To: ", buf, 4) - && strncmp("Reply-", buf, 6) - && strncmp("Cc: ", buf, 4) - && strncmp("Bcc: ", buf, 5)) { + if (strncasecmp("From: ", buf, 6) + && strncasecmp("To: ", buf, 4) + && strncasecmp("Reply-To: ", buf, 10) + && strncasecmp("Return-Path: ", buf, 13) + && strncasecmp("Cc: ", buf, 4) + && strncasecmp("Bcc: ", buf, 5)) { return; } @@ -312,11 +313,11 @@ main(int argc, char *argv[]) { if (buf[0] == ' ' || buf[0] == '\t') strcat(longbuf, buf); - else if (!strncmp("From: ", buf, 6) - || !strncmp("To: ", buf, 4) - || !strncmp("Reply-", buf, 6) - || !strncmp("Cc: ", buf, 4) - || !strncmp("Bcc: ", buf, 5)) + else if (!strncasecmp("From: ", buf, 6) + || !strncasecmp("To: ", buf, 4) + || !strncasecmp("Reply-", buf, 6) + || !strncasecmp("Cc: ", buf, 4) + || !strncasecmp("Bcc: ", buf, 5)) strcpy(longbuf, buf); else if (longbuf[0]) { -- cgit v1.2.3