Xref: utzoo comp.mail.sendmail:1242 comp.mail.uucp:3857 Path: 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 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