Can someone please help me with setting up mail
Chris Johnston
chris at gargoyle.uchicago.edu
Sat Jan 14 09:26:29 AEST 1989
lrj at 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 at cvedg.prime.com
bwhittak at uk.co.cv.edg +44 494 714771 x 304
More information about the Comp.sys.sun
mailing list