Article View: comp.mail.sendmail
Article #3322how do I get those stupid 822 source routes out of my From_ line
From: Erik Murrey
Date: Sat, 15 Apr 1989 23:44
Date: Sat, 15 Apr 1989 23:44
37 lines
1573 bytes
1573 bytes
Sendmail 5.61++/IDA-1.2.8
Problem:
my sendmail puts source routes in the From_ line for
mail bound for local delivery..
How can I get sendmail to convert the 822 Source routes into at least
a ! path, or keep in a user@host form. Even when the originating host
is fully qualified via a nameserver, if it goes through an
intermediate machine, sendmail tacks on another part to the source
route.. The end result is that my From_ lines look like a mess.
(Yes, my From: lines are intact..)
Here is an excerpt from deliver.c for local delivery:
/* rewrite from address, using rewriting rules */
expand("\001f", buf, &buf[sizeof buf - 1], e);
(void) strcpy(tfrombuf, remotename(buf, m, TRUE, TRUE, FALSE));
define('g', tfrombuf, e); /* translated sender address */
define('h', host, e); /* to host */
Errors = 0;
pvp = pv;
*pvp++ = m->m_argv[0];
/* insert -f or -r flag as appropriate */
if (FromFlag && (bitnset(M_FOPT, m->m_flags) || bitnset(M_ROPT, m->m_flags)))
{
if (bitnset(M_FOPT, m->m_flags))
*pvp++ = "-f";
else
*pvp++ = "-r";
expand("\001g", buf, &buf[sizeof buf - 1], e);
*pvp++ = newstr(buf);
}
Technical Details
Message-ID:
<546@lehi3b15.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!dptcdc!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!psuvax1!vu-vlsi!lehi3b15!murreyShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!dptcdc!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!psuvax1!vu-vlsi!lehi3b15!murrey From: murrey@lehi3b15.UUCP (Erik Murrey) Newsgroups: comp.mail.sendmail Subject: how do I get those stupid 822 source routes out of my From_ line Message-ID: <546@lehi3b15.UUCP> Date: 15 Apr 89 23:44:40 GMT Organization: CSEE Dept., Lehigh Univ., Bethlehem, PA Lines: 37