dear liz use masquerading feature in sendmail.mc and set masquerade domains or host names as followings MASQUERADE_AS(`csr.com')dnl FEATURE(masquerade_envelope)dnl MASQUERADE_DOMAIN(localhost)dnl MASQUERADE_DOMAIN(localhost.localdomain)dnl then in /etc/mail directory simply type "make" this result in all dbs hashed and sendmail.cf produced in the last step restart sendmail then make these tests note that someone, someone@localhost, someone@xxxxxxxxxxxxxxxxxxxxx turned into masquerade domain someone@xxxxxxxxxx [root@localhost mail]# sendmail -bt ADDRESS TEST MODE (ruleset 3 NOT automatically invoked) Enter <ruleset> <address> > /tryflags ES > /try esmtp someone@localhost Trying envelope sender address someone@localhost for mailer esmtp canonify input: someone @ localhost Canonify2 input: someone < @ localhost > Canonify2 returns: someone < @ atlas . cc . itu . edu . tr . > canonify returns: someone < @ atlas . cc . itu . edu . tr . > 1 input: someone < @ atlas . cc . itu . edu . tr . > 1 returns: someone < @ atlas . cc . itu . edu . tr . > EnvFromSMTP input: someone < @ atlas . cc . itu . edu . tr . > PseudoToReal input: someone < @ atlas . cc . itu . edu . tr . > PseudoToReal returns: someone < @ atlas . cc . itu . edu . tr . > MasqSMTP input: someone < @ atlas . cc . itu . edu . tr . > MasqSMTP returns: someone < @ atlas . cc . itu . edu . tr . > MasqEnv input: someone < @ atlas . cc . itu . edu . tr . > MasqHdr input: someone < @ atlas . cc . itu . edu . tr . > MasqHdr returns: someone < @ itu . edu . tr . > MasqEnv returns: someone < @ itu . edu . tr . > EnvFromSMTP returns: someone < @ itu . edu . tr . > final input: someone < @ itu . edu . tr . > final returns: someone @ itu . edu . tr Rcode = 0, addr = someone@xxxxxxxxxx> /try esmtp someone@xxxxxxxxxxxxxxxxxxxxx Trying envelope sender address someone@xxxxxxxxxxxxxxxxxxxxx for mailer esmtp canonify input: someone @ localhost . localdomain Canonify2 input: someone < @ localhost . localdomain > Canonify2 returns: someone < @ localhost . localdomain . > canonify returns: someone < @ localhost . localdomain . > 1 input: someone < @ localhost . localdomain . > 1 returns: someone < @ localhost . localdomain . > EnvFromSMTP input: someone < @ localhost . localdomain . > PseudoToReal input: someone < @ localhost . localdomain . > PseudoToReal returns: someone < @ localhost . localdomain . > MasqSMTP input: someone < @ localhost . localdomain . > MasqSMTP returns: someone < @ localhost . localdomain . > MasqEnv input: someone < @ localhost . localdomain . > MasqHdr input: someone < @ localhost . localdomain . > MasqHdr returns: someone < @ itu . edu . tr . > MasqEnv returns: someone < @ itu . edu . tr . > EnvFromSMTP returns: someone < @ itu . edu . tr . > final input: someone < @ itu . edu . tr . > final returns: someone @ itu . edu . tr Rcode = 0, addr = someone@xxxxxxxxxx best wishes Quoting Liz Beresford <Liz.Beresford@xxxxxxx>: > Dear RedHat users, > > I am setting up sendmail to forward all mails to another mail server on > the network. I am running RedHat WS 3.0. > I have got this part working but I am unhappy with the appearance of the > from address. It looks like: > username@xxxxxxxxxxxxxxxxx > > I would like to get rid of the localhost part. > I have added the following to the sendmail.cf file: > > Dj$w.csr.com > > Any ideas? > > Regards, > > Liz Beresford. > > > > ********************************************************************** > This email and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom they > are addressed. If you have received this email in error please notify > the system manager. > > This footnote also confirms that this email message has been swept by > MIMEsweeper for the presence of computer viruses. > > www.mimesweeper.com > ********************************************************************** > > -- > redhat-list mailing list > unsubscribe > mailto:redhat-list-request@xxxxxxxxxx? subjecthttps://www.redhat.com/mailman/listinfo/redhat-list > ------------------------------------------------- This mail sent through IMP: http://webmail.itu.edu.tr -- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list