Operating System - HP-UX
1826646 Members
3659 Online
109695 Solutions
New Discussion

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 3
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".