aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-10-21 04:09:48 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-10-21 04:09:48 +0000
commit90ddfaa808179439a08181c4af9fdc0bcfe40ae2 (patch)
treedbfe7906bf7244f0d661343be8b8dae6af211c4a
parent8b5df49fb7813cf9f76dec00f47a67769ade1235 (diff)
downloadfetchmail-90ddfaa808179439a08181c4af9fdc0bcfe40ae2.tar.gz
fetchmail-90ddfaa808179439a08181c4af9fdc0bcfe40ae2.tar.bz2
fetchmail-90ddfaa808179439a08181c4af9fdc0bcfe40ae2.zip
Deeal with exim.
svn path=/trunk/; revision=359
-rw-r--r--fetchmail.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/fetchmail.c b/fetchmail.c
index 3e5a991d..08a762b4 100644
--- a/fetchmail.c
+++ b/fetchmail.c
@@ -180,6 +180,18 @@ char **argv;
else
strcpy(hostp->localname, user);
+ /*
+ * Turn the localname into a full Internet address...
+ * otherwise exim (somebody's smail equivalent) becomes
+ * annoyed much later when the SMTP interface tries to
+ * ship it a local name in a RCPT TO command.
+ */
+ if (strchr(hostp->localname, '@') == 0)
+ {
+ strcat(hostp->localname, "@");
+ strcat(hostp->localname, hostp->smtphost);
+ }
+
/* check that delivery is going to a real local user */
if ((pw = getpwnam(user)) == (struct passwd *)NULL)
exit(PS_SYNTAX); /* has to be from bad rc file */