Path: utzoo!attcan!uunet!lll-winken!ames!haven!uflorida!mailrus!cornell!uw-beaver!rice!sun-spots-request From: chris@gargoyle.uchicago.edu (Chris Johnston) Newsgroups: comp.sys.sun Subject: Re: Can someone please help me with setting up mail Message-ID: <150@libra.edg.cv.co.uk> Date: 13 Jan 89 23:26:29 GMT References: <8812201635.AA00418@artemis.TN.CORNELL.EDU> Sender: usenet@rice.edu Organization: Prime Computervision, Penn St, Amersham, England Lines: 39 Approved: Sun-Spots@rice.edu Original-Date: 6 Jan 89 18:34:29 GMT X-Sun-Spots-Digest: Volume 7, Issue 102, message 9 of 18 X-Issue-Reference: v7n80 v7n67 lrj@helios.tn.cornell.edu writes: >Simply go through your sendmail.cf (after making a backup copy!) and >change instances of $#local to be $#tcp$@$A. Depends which sendmail.cf you start with, in the one distributed by Sun the TCP mailer is called "ether" not "tcp". > You may also want to define the hostname in >your clients' sendmail.cf to be the name of the server, so it looks like >ALL mail originating from your network is coming from the server. CAREFUL! Watch out for the "I refuse to talk to myself" trap! Do not set $j to be the same on any two hosts ($j is the string by which sendmail identifies itself in SMTP conversations with other mail forwarding agents). Any attempt to set $w (set by sendmail to what /bin/hostname gives) is a bad idea too. In the Sun sendmail.cf $j is set by lines like: # my official hostname Dj$w.$D.$U ... leave that alone - or at least make sure $w is in the string somewhere to make the string unique. The way I do it is set the "from" address is in the sender ruleset for each mailer as in the following extract from my hacked Sun sendmail.cf: Mether, P=[IPC], F=msDFMuCX, S=11, R=21, A=IPC $h S11 R$*<@$+>$* $@$1<@$2>$3 already ok # bwhittak -- give our servername in place of our hostname #R$+ $@$1<@$w> tack on our hostname R$+ $@$1<@$A> tack on our servername -- Brian Whittaker, Prime Computervision, Amersham, HP7 0PX, UK bwhittak@cvedg.prime.com bwhittak@uk.co.cv.edg +44 494 714771 x 304