Operating System - HP-UX
1832595 Members
3018 Online
110043 Solutions
New Discussion

how to send a mail with local domain?

 
Stanley_8
Advisor

how to send a mail with local domain?

I use "ELM" to send mail.
but It's always show "user@host".
It rejected by remote mail server.
how to send a mail with local domain?
Thanks!!
4 REPLIES 4
T G Manikandan
Honored Contributor

Re: how to send a mail with local domain?

In your /etc/mail/sendmail.cf file
append the domain name after Dj$w
like
Dj$w.hp.com

Restart sendmail

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


Revert
Rajesh G. Ghone
Regular Advisor

Re: how to send a mail with local domain?

Hi,
Please check weather the entry of your Domain is there in
/etc/mail/sendmail.cf

Regards,
Rajesh G.
Rajesh Ghone
Geoff Wild
Honored Contributor

Re: how to send a mail with local domain?

If DNS is working, your box should be able to qualify it's own domain name - do you have a:

domain yourdomain.com

in your /etc/resolv.conf?

Also, if you have an internal mail server - set the DS macro in /etc/mail/sendmail.cf

# "Smart" relay host (may be null)
DSyourmailserver

If you have seperate internal/external domain names (like internal.net and external.com), then also set the DM macro in /etc/mail/sendmail.cf:

# who I masquerade as (null for no masquerading) (see also $=M)
DMexternal.com

Rgds...Geoff

Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Steven E. Protter
Exalted Contributor

Re: how to send a mail with local domain?

The local mail server, if set to relay must accept mail from your server.

If you are using sendmail.cf DS directive that server must be set up in its aliases file to explicitly relay your mail.

Same basic issue if its an exchange server.

You can actually change your system hostname from hostname to hostname.local.net and the sendmail daemon will pick it up on outbound mail.

If your External public DNS record has a record for hostname.local.net then you can get mail from cron mailx or any script anywhere in the world.

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