🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.sendmail
Article #3428

domain in From line (cont...)

#3428
From: Dan O'Neill
Date: Thu, 14 Dec 1989 21:54
48 lines
1857 bytes
To bring things up to date, I was trying to have my domain name tacked
on to the end of the Unix "From " line in outgoing mail messages.  It
now appears that I didn't understand a couple of things.

Messages leaving our site have a line like:

    From dan  Thu Dec 14 13:36:22 1989 remote from asitor

When they are delivered, the From line get changed to:

    From asitor!dan  Thu Dec 14 13:40:14 1989

What I really wanted to do was have the outgoing line look like:

    From dan  Thu Dec 14 13:36:22 1989 remote from asitor.AUTOSYS.COM

and on the receipt end

    From asitor.AUTOSYS.COM!dan  Thu Dec 14 13:40:14 1989


To do this I was looking into the sendmail.cf and smail (v2.5).  It
appears that the solution is within smail, but I would like to run it
by the people on the net for comments.

In the file defs.h, change the RFROM macro.

Original:

#define RFROM(frm,now,host) \
              "From %s  %.24s remote from %s\n",frm,now,host

Suggested improvement:

#define RFROM(frm,now,host) \
              "From %s  %.24s remote from %s%s\n",frm,now,host,MYDOM


This will accomplish what I am seeking, however, I do not have the
experience to say "Yes, this is the correct solution".

Comments will be appreciated.  Thanks.


-- 
Dan O'Neill	dan@asihub.AUTOSYS.COM    {uunet|ncr-sd}!asihub!dan
Automated Systems, Inc.  San Diego R&D
Technical Details
Message-ID: <206@asihub.AUTOSYS.COM>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!usc!apple!agate!ucbvax!hplabs!hp-sdd!ncr-sd!asihub!dan

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!usc!apple!agate!ucbvax!hplabs!hp-sdd!ncr-sd!asihub!dan
From: dan@asihub.AUTOSYS.COM (Dan O'Neill)
Newsgroups: comp.mail.sendmail,comp.mail.uucp
Subject: domain in From line (cont...)
Keywords: From header, smail, domain
Message-ID: <206@asihub.AUTOSYS.COM>
Date: 14 Dec 89 21:54:43 GMT
Distribution: na
Organization: Automated Systems Inc.
Lines: 48