1753716 Members
4594 Online
108799 Solutions
New Discussion юеВ

Regarding sendmail error

 
SOLVED
Go to solution
Kavita Poonia
Regular Advisor

Regarding sendmail error

Hello techies,

When I am trying to send mails from my HP-UX client server through mailx command then it is giving me below mentioned error. Can anyone help me on this ?

# echo kandy|mailx -s "PS" kpoonia@its.jnj.com
sh: its.jnj.com: not found.

I checked all seetings for sendmail and everything looks good.


Thanks & regards,
Kavita
5 REPLIES 5
Matti_Kurkela
Honored Contributor
Solution

Re: Regarding sendmail error

The shell is reacting as if you have typed only "its.jnj.com".

Please run this command:

stty -a

Check the output. Does it say "kill = @" somewhere on the second line or so?

If yes, then this is not a sendmail-specific error. For some reason, HP-UX has failed to detect your terminal type correctly.

If the terminal type detection fails, HP-UX falls back to very very old default values.

"kill = @" means that the "@" character is interpreted to mean "ignore everything written to the command line so far and start over".

The quick work-around is to assign the kill character to something else. For example:

stty kill ^U

would set the kill character to Control-U, making "@" just a regular character.

The real fix would be finding out why the terminal type was not detected correctly automatically, and fixing it. This depends on how you're connecting to the HP-UX system and what kind of terminal/emulator you're using.

MK
MK
Kavita Poonia
Regular Advisor

Re: Regarding sendmail error

Hello Matti,

Thanks for your reply. I ran the command suggested by you as mentioned below where kill = ^U and not "kill = @" as mentioned by you and after that I am able to send in the mails but you mentioned that kill is set to @ which is not regular character and running stty kill ^U will make it regular but here it was set to ^U, somewhere I got confused with this but anyhow it did work for me.


# stty -a
speed 9600 baud; line = 0;
rows = 57; columns = 158
min = 1; time = 0;
intr = ^C; quit = ^\; erase = ^H; kill = ^U
eof = ^D; eol = ^@; eol2 ; swtch
stop = ^S; start = ^Q; susp ; dsusp
werase ; lnext
parenb -parodd cs7 -cstopb hupcl -cread -clocal -loblk -crts
-ignbrk brkint ignpar -parmrk -inpck istrip -inlcr -igncr icrnl -iuclc
ixon -ixany ixoff -imaxbel -rtsxoff -ctsxon -ienqak
isig icanon -iexten -xcase echo echoe echok -echonl -noflsh
-echoctl -echoprt -echoke -flusho -pendin
opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel -tostop tab3
Hakki Aydin Ucar
Honored Contributor

Re: Regarding sendmail error

Hi,

The problem only related with its.jnj.com domain OR you got the error any domain like google.com ?

And ,did you try this;
echo test | sendmail -f you kpoonia@its.jnj.com.
Dennis Handly
Acclaimed Contributor

Re: Regarding sendmail error

>Hakki: The problem only related with its.jnj.com domain

As MK said, this has nothing to do with mailx/sendmail, especially with that sh error.
You can see that by the "stty -a" or looking at the shell history and see that only chars after the "@" were there.
Hakki Aydin Ucar
Honored Contributor

Re: Regarding sendmail error

>Dennis:
I got it, thanks.