From 0a20a3e954ed0d0b3ab0395bd0b5eef48864110d Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 12 Oct 1998 16:14:35 +0000 Subject: Force MAIL FROM to be an FQDN. svn path=/trunk/; revision=2085 --- driver.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'driver.c') diff --git a/driver.c b/driver.c index 3fc82dec..8f2ab2ed 100644 --- a/driver.c +++ b/driver.c @@ -753,10 +753,15 @@ int num; /* index of message */ * not trigger bounces if delivery fails. What we *do* need to do is * make sure we never try to rewrite such a blank Return-Path. We * handle this with a check for <> in the rewrite logic. + * + * If the Return-Path header has no host part, tack on "@localhost" + * in order to pacify sendmails that want to see an FQDN. */ if (!strncasecmp("Return-Path:", line, 12) && (cp = nxtaddr(line))) { strcpy(return_path, cp); + if (!strchr(return_path, '@')) + strcat(return_path, "@localhost"); if (!ctl->mda) { free(line); continue; -- cgit v1.2.3