Operating System - HP-UX
1832650 Members
2801 Online
110043 Solutions
New Discussion

Re: mailx doesn't work on 2 systems

 
SOLVED
Go to solution
Maurice Peterse
Frequent Advisor

mailx doesn't work on 2 systems

I have several systems.
2 of them can't mail to system x
other systems CAN mail to system x

I do have NDS running
/etc/mail/service.switch is ok
/etc/resolv is ok


nslookup returns the right ip-address
and i can ping to any system i want

"zzzz sendmail[9332]: KAA09332: Ruleset
check_mail () rejection: 418 ...
invalid host name

Jul 19 10:09:33 zzzz sendmail[9450]: KAA09450:
from=, size=0, cla
ss=0, pri=0, nrcpts=0, proto=ESMTP, relay=[199.81.70.13]
(may be forged) "

this is in /var/adm/syslog/mail.log on the receiving
system....

any ideas?
6 REPLIES 6
Berlene Herren
Honored Contributor

Re: mailx doesn't work on 2 systems

Check your /etc/mail/sendmail.cw. This should contain only the names by which this host is known by.

localhost
shortname
fully qualified hostname
aliases

Berlene
http://www.mindspring.com/~bkherren/dobes/index.htm
Maurice Peterse
Frequent Advisor
Solution

Re: mailx doesn't work on 2 systems

Hi,

/etc/mail/sendmail.cw on the system has exactly the same build as on a system that does work with the mailx

any more ideas?
Dieter Koegel
New Member

Re: mailx doesn't work on 2 systems

Hi,

on server x check wether nslookup is working properly also for reverse resolving - otherwise fix it.

Also check the MX records of your boxes.

Cheers,


Dieter
Anthony deRito
Respected Contributor

Re: mailx doesn't work on 2 systems

Run the command:

#sendmail -d0.1 -bt < /dev/null

This runs sendmail in address testing mode and will print what it can find as the address of the local machine.

Do this on each machine you are communicating with via sendmail. Make sure you can ping and resolve all names that show up (if any) from all systems. Use "nslookup" if you are using DNS, "ypcat hosts" if you are using NIS or just view the /etc/hosts file. The nsswitch.conf file will tell you how you are using these facilities and in which order.

If you have trouble with name resolution, then post again.

Tony
rajsri
Frequent Advisor

Re: mailx doesn't work on 2 systems

Hi ensure the following
1.Check nslookup destination host with name and ip , both should result same.
2.Make sure ur able to ping to remote system.
3.Make sure you can telnet remotesystem 25
4.Make sure /etc/sendmail.cf and sendmail.cw are ok with working systems.
5.make sure your system returns correct domain name when you do telnet loopback 25

Good luck.
Maurice Peterse
Frequent Advisor

Re: mailx doesn't work on 2 systems

thanx all

it was a fault in the
sendmail.cf AND the sendmail.cw file