Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
General
cancel
Showing results for 
Search instead for 
Did you mean: 

emails arrive with "hostname" in email address

Stuart Abramson_2
Honored Contributor

emails arrive with "hostname" in email address

I recently rebuilt my sendmail.cf from /usr/newconfig/etc/mail/cf/cf.

I used "gen_cf" and selected "relay_entire_domain".

I changed:

# my official domain name
#Dj$w.Foo.COM

To:

Dj$w.wabtec.com

And Uncommented:

#R$* < @ $* > $* $: $>check_local <$m> $1 < @ $2 > $3 Local Domain?:

Now all of my emails are being sent as:

name@hostname.wabtec.com

I don't want the "hostname" to show up in my email address. I just want:

name@wabtec.com

How do I fix that?

Stuart

3 REPLIES
Steven E. Protter
Exalted Contributor

Re: emails arrive with "hostname" in email address

Your setup has made this happen.

You can get around this by commenting out the Dj directive and using fully qualified domain name as your host name.

server in /etc/rc.config.d/netconf becomes

server.wabtec.com

Then emails will be from server.wabtec.com

Alternatively, change the Dj directive to what you want in your message.

Of course after any change...

/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Stuart Abramson_2
Honored Contributor

Re: emails arrive with "hostname" in email address

I figured it out.

You just set:

DMdomain.com

And it "site hides". "Site Hiding" is really "server hiding".

Stuart Abramson_2
Honored Contributor

Re: emails arrive with "hostname" in email address

I figured it out.

You just set:

DMdomain.com

And it "site hides". "Site Hiding" is really "server hiding".