From 90ddfaa808179439a08181c4af9fdc0bcfe40ae2 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 21 Oct 1996 04:09:48 +0000 Subject: Deeal with exim. svn path=/trunk/; revision=359 --- fetchmail.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 */ -- cgit v1.2.3