Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing root@localhost to root@domain.com

Status
Not open for further replies.

Stingreen

Technical User
Mar 5, 2001
86
US
How can I change this boring root@localhost thing to
something like root@domain.com?
Not only it's boring, even some email servers won't accept my mail.
Any help appreciated,
Thank you.
 
go to sendmail.cf and find the format of headers section and change the line that begins HReceived:
to HReceived:(from root@yourdomain.com)

eg.

#########################
# Format of headers #
#########################

H?P?Return-Path: <$g>
HReceived:(from root@yourdomain.com)
$.$?{auth_type}(authenticated$?{auth_ssf} (${auth_ssf} bits)$.)
$.by $j ($v/$Z)$?r with $r$. id $i$?{tls_version}
(using ${tls_version} with cipher ${cipher} (${cipher_bits} bits) verified ${verify})$.$?u
for $u; $|;
$.$b$?g
(envelope-from $g)$.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top