Operating System - HP-UX
1834930 Members
2516 Online
110071 Solutions
New Discussion

mail problem on unix server

 
SOLVED
Go to solution
mohammed arafat_2
Frequent Advisor

mail problem on unix server

hello again
another problem i'm facing,
when i configure hpux server to be a mail server, it is running but when i send a mail it is like this (root@localhost.domainname )
the localhost shouldn't be in the mail address right
i have a registerd mail server with my isp
and in sendmail.cf
i have
Dj$w.domainname
any ideas
a thousend thanx
Arafat
2 REPLIES 2
Jordan Bean
Honored Contributor

Re: mail problem on unix server

use `sendmail -d0` to show you to what $w and others are set. Please report the results here. It looks like $w is being set to localhost. Make sure the hostname for the IP interface is defined in /etc/hosts and DNS.
Steven E. Protter
Exalted Contributor
Solution

Re: mail problem on unix server

Change

Dj$w.domainname

to

Djdomainname

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

The long term fix to avoid this is to use a fully qualified hostname

/etc/rc.config.d/netconf

Change the hostname to hostname.yourdomain.com

and make sure the DNS server on the public Internet resolves the hostnames.

Aol and yahoo both refuse to process mail(aol rejects) that comes from a source that can't be verified by name lookup.

Obviously changing you hostname is a huge issue.


Diagnostics:

/usr/sbin/sendmail -v -d8.99 -d38.99 stevenprotter@targetdomain.com

You can collect the output.

Type in a single line,hit enter
type in a period(dot) .
hit enter.

This will give you the diagnostics you want.

I feel your pain sir. I went through it myself a few months back.

P
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