cancel
Showing results for 
Search instead for 
Did you mean: 

mail problem

SOLVED
Go to solution
mohan singh
Frequent Advisor

mail problem

Hi Gurus,

I have problem in on of our server that if I try to send mail it does not reach to destinaion and it queued up.
I am using mailx -s command.
NAA12397 2417 Wed Sep 8 13:54 root
(host map: lookup (infineon.com): deferred)
rauthanms.external@infineon.com

Can sombody help me to resolve the issue.

Thanx in advance

Mohan
31 REPLIES
Elmar P. Kolkman
Honored Contributor
Solution

Re: mail problem

Apparently infineon.com can not be found by your mailserver to send mail to. Sendmail needs to be able to lookup a host before being able to send mail to it under HP-UX.
Every problem has at least one solution. Only some solutions are harder to find.
Marcel Boogert_1
Trusted Contributor

Re: mail problem

Hi Mohan,

Does the sendmail command work? If not, try:

sendmail -v me@company.com

And check the output.

MB.
Olivier Decorse
Respected Contributor

Re: mail problem

Hi,

it looks like a resolution problem.
Can you just try pinging your remote server with :
ping infineon.com
If no response, check /etc/nsswitch.conf and /etc/resolv.conf to verify host name resolving policy.

Olivier.
They say "install windows 2k, xp or better", so i install unix !
mohan singh
Frequent Advisor

Re: mail problem

Hi MB
there is some error perse error.

# sendmail -v rauthanms.external@infineon.com
infineon.com: Name server timeout
rauthanms.external@infineon.com... Transient parse error -- message queued for future delivery

Regards

Mohan
mohan singh
Frequent Advisor

Re: mail problem

Hi Oliver,

What entry I should check in /etc/nsswitch.conf and there is not resolve.conf file.


Regards

Mohan
Olivier Decorse
Respected Contributor

Re: mail problem

In my case, with not a lot of server, i have :
# cat /etc/nsswitch.conf
hosts: files
services: files
protocols: files
networks: files
rpc: files
netgroup: files
automount: files

So i your case, you have also to fill /etc/hosts with :
x.y.z.t infineon.com infineon

Olivier.
PS : please don't forget to assign points : you will receive more response, and we can see if our response helps you or not ...
They say "install windows 2k, xp or better", so i install unix !
mohan singh
Frequent Advisor

Re: mail problem

Hi All,

I have done every thing whatever solution you gave.
Then I executed following command but problem is as itis Pls help.
# hostname
newfme3
#
# sendmail -v rauthanms.external@infineon.com
infineon.com: Name server timeout
rauthanms.external@infineon.com... Transient parse error -- message queued for f
uture delivery


Regards
Mohan

Marcel Boogert_1
Trusted Contributor

Re: mail problem

Mohan,

Check the following link:

http://www4.itrc.hp.com/service/cki/patchDocDisplay.do?patchId=PHNE_29774

Maybe this is your solution.

MB.
Muthukumar_5
Honored Contributor

Re: mail problem

Mail hostname must be resolved so that we can send mails. It must be with Fully Qualified Domain name.

FQDN is defined as,

hostname.domainname.com

For exmaple:

newfme3.infineon.com

It has to be resolved as,

nslookup newfme3.infineon.com

hostname: newfme3.infineon.com
ip-address: xx.xxx.xx.xx
alias: newfme3

If you did not get this then,

-- edit /etc/nsswitch.conf file as,

hosts: files dns

-------------

--- edit /etc/hosts file as --

# FQDN alias
xx.xx.xx.xx newfme3.infineon.com newfme3


If you want to your hostname resolved with dns then,

-- /etc/nsswitch.conf --
hosts: dns files

----- /etc/resolv.conf --
domain infineon.com
nameserver


Check resolvation as,

nslookup newfme3.infineon.com

If you get results, then you won't get any problem on sending mails

Easy to suggest when don't know about the problem!
mohan singh
Frequent Advisor

Re: mail problem

Hi Guru,s

Thanks a log for helping me , I did the changes in required file, then I check the nslookup command .

# nslookup newfme3.infineon.com
Using /etc/hosts on: newfme3

looking up FILES
Name: newfme3.infineon.com
Address: 172.17.17.204
Aliases: newfme3

After this I tried the following command
# sendmail -v me@infineon.com
infineon.com: Name server timeout
me@infineon.com... Transient parse error -- message queued for future delivery

But mail still not working, I am sure you will help me.

some body gave me url ,which refer patches. mean I have to apply those patches.

Best Regards

Mohan



Sunil Sharma_1
Honored Contributor

Re: mail problem

Mohan,

How did yuo configur your server ? Is it relay mode ?

Which is your mail server ?

Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
mohan singh
Frequent Advisor

Re: mail problem

Sunil,

I have not configure this server ,no about relay ....


Thanx
Mohan
Sunil Sharma_1
Honored Contributor

Re: mail problem

Mohan,

Do you have any mail server in your setup ? Like windows exchange server ? If yes then you can configure your HP UX box in relay mode. You have to make small change in /etc/mail/sendmail.cf. You have to put your mail server name or IP address in that file.

Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
mohan singh
Frequent Advisor

Re: mail problem

Hi Sunil,

I did check the /etc/mail/sendmail.cf . I found the follwing entry in this file for relay.
# "Smart" relay host (may be null)
#DS
DSappmail.mkz.infineon.com

Regards

Mohan
mohan singh
Frequent Advisor

Re: mail problem

Hi all,

I am sorry to reoptn this case , mail problem is not yer resolved.
I have configured every thing but I am still getting following errror.
# sendmail -v me@infineon.com
infineon.com: Name server timeout
me@infineon.com... Transient parse error -- message queued for future delivery

If check mailq , all are message are queued up.
Mail Queue (28 requests)
-Q-ID-- --Size-- -----Q-Time----- ------------Sender/Recipient------------
AA22986 2124 Wed Oct 6 14:50 root
(host map: lookup (infineon.com): deferred)
rauthanms.external@infineon.com
AA12424 30 Wed Oct 6 14:28 root
(host map: lookup (infineon.com): deferred)
rauthanms.external@infineon.com
AA10316 2124 Wed Oct 6 14:24 root
(host map: lookup (infineon.com): deferred)
rauthanms.external@infineon.com
AA01435 1110 Wed Oct 6 09:28 jec
(host map: lookup (infineon.com): deferred)
Siew-Gek.Tan@infineon.com
AA01432 1110 Wed Oct 6 09:28 jec
(host map: lookup (infineon.com): deferred)
Min-Kiap.Teh@infineon.com
AA23193 10253 Tue Oct 5 19:09 MAILER-DAEMON
(host map: lookup (infineon.com): deferred)
rauthanms.external@infineon.com
AA19593 8336 Tue Oct 5 15:01 MAILER-DAEMON
(host map: lookup (infineon.com): deferred)
rauthanms.external@infineon.com
AA06130 10370 Tue Oct 5 14:30 MAILER-DAEMON


Can any body help me out to over come from this problem.

thanx in advance

Jose Mosquera
Honored Contributor

Re: mail problem

Hi,

Try this trick. Take your relay server (appmail.mkz.infineon.com) IP address. i.e. please assume that is 3.44.55.66. Then add in your /etc/hosts fiel the following line:
3.44.55.66 infineon.com

So try again with the sendmail verbose option:
#echo "Hi"|sendmail -v rauthanms.external@infineon.com

Rgds.
mohan singh
Frequent Advisor

Re: mail problem

Hi Dear,

I tried your solution , following is the outcome.
# echo "HI"| sendmail -v rauthanms.external@infineon.com
rauthanms.external@infineon.com... Connecting to appmail.mkz.infineon.com via re
lay...
rauthanms.external@infineon.com... Host unknown (Name server: appmail.mkz.infine
on.com: host not found)
root... aliased to rauthanms.external@infineon.com
/dead.letter... Saved message in /dead.letter


Following the message in Dead letter.
From Fri Oct 8 14:06:26 2004
Return-Path:
Received: (from root@localhost)
by newfme3.infineon.com (8.9.3 (PHNE_26305)/8.9.3) id OAA22777
for rauthanms.external@infineon.com; Fri, 8 Oct 2004 14:06:26 +0800 (mal
)
Date: Fri, 8 Oct 2004 14:06:26 +0800 (mal)
From: root
Message-Id: <200410080606.OAA22777@newfme3.infineon.com>

HI

From Fri Oct 8 14:07:34 2004
Return-Path:
Received: (from root@localhost)
by newfme3.infineon.com (8.9.3 (PHNE_26305)/8.9.3) id OAA23200
for rauthanms.external@infineon.com; Fri, 8 Oct 2004 14:07:34 +0800 (mal
)
Date: Fri, 8 Oct 2004 14:07:34 +0800 (mal)
From: root
Message-Id: <200410080607.OAA23200@newfme3.infineon.com>

HI

#

Thanx in Advance

Mohan


mohan singh
Frequent Advisor

Re: mail problem

Hello,

I have just added my SMTP server in sendmail.cf , Mail started going to privete mail like yahoo.com etc .. but I am not able to send the mail to my domain . Mean mails are not going to users@infineon.com
what could be the problem.
output of sendmail -v is below.

# sendmail -v rauthanms.external@infineon.com
rauthanms.external@infineon.com... User unknown


Thanks in advance

Mohan
Sridhar Bhaskarla
Honored Contributor

Re: mail problem

Hi Mohan,

Are you sure rauthanms.external is a valid mail id?. Try sending it from some yahoo.com to see if it really works.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Steven E. Protter
Exalted Contributor

Re: mail problem

If that server is real then the User has been deleted.

This is a typical tactic to stop spam. I've recently been forced to remove one of my dearest aliases because it was getting 50 messages a day.

sendmail -v -q

that will try and force the queue with verbose messages.

sendmail -v -d8.99 -d38.99 address
type some text

.


This will max out your diagnostics.

looks like the host is resolving and the mail server doesn't know the user or is misconfigured.

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
mohan singh
Frequent Advisor

Re: mail problem

Hello SEP

I tried the diagnostic command given by you, following is the output.
# sendmail -v -d8.99 -d38.99 rauthanms.external@infineon.com
seq_map_parse(aliases.files, )
map_init(sequence:aliases.files, NULL, 0)
sequence:aliases.files NULL: valid
map_init(implicit:Alias0, /etc/mail/aliases, 0)
wrong pass (pass = 0, rebuildable = 1)
map_init(host:host, NULL, 0)
host:host NULL: valid
map_init(switch:aliases, aliases, 0)
switch_map_open(aliases, aliases, 0)
switch_map_find => 1
files
map_stack[0] = sequence:aliases.files
switch:aliases aliases: valid
map_init(dequote:dequote, NULL, 0)
dequote:dequote NULL: valid
map_init(sequence:aliases.files, NULL, 1)
wrong pass (pass = 1, rebuildable = 0)
map_init(implicit:Alias0, /etc/mail/aliases, 1)
impl_map_open(Alias0, /etc/mail/aliases, 0)
hash_map_open(Alias0, /etc/mail/aliases, 0)
impl_map_lookup(Alias0, @)
db_map_lookup(Alias0, @)
implicit:Alias0 /etc/mail/aliases: valid
map_init(host:host, NULL, 1)
wrong pass (pass = 1, rebuildable = 0)
map_init(switch:aliases, aliases, 1)
wrong pass (pass = 1, rebuildable = 0)
map_init(dequote:dequote, NULL, 1)
wrong pass (pass = 1, rebuildable = 0)
getcanonname(infineon.com), trying files
text_getcanonname(infineon.com)
getcanonname(infineon.com), found
seq_map_lookup(aliases, rauthanms.external)
seq_map_lookup(aliases.files, rauthanms.external)
impl_map_lookup(Alias0, rauthanms.external)
db_map_lookup(Alias0, rauthanms.external)
rauthanms.external@infineon.com... User unknown


.
seq_map_lookup(aliases, root)
seq_map_lookup(aliases.files, root)
impl_map_lookup(Alias0, root)
db_map_lookup(Alias0, root)
/dead.letter... Saved message in /dead.letter
closemaps: closing aliases.files (NULL)
closemaps: closing Alias0 (/etc/mail/aliases)
impl_map_close(Alias0, /etc/mail/aliases, 12a3)
db_map_close(Alias0, /etc/mail/aliases, 12a3)
closemaps: closing host (NULL)
closemaps: closing aliases (aliases)
closemaps: closing dequote (NULL)
#


Can you make out some thing.
Best Regards

Mohan
Yogeeraj_1
Honored Contributor

Re: mail problem

hi,

please allow me to comment:
"rauthanms.external@infineon.com... User unknown"

can you try to send it to another valid and confirmed user on that same domain?
e.g.
sendmail -v -d8.99 -d38.99 postmaster@infineon.com

this will confirm that there is no problem with the email addresses...

regards
Yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
mohan singh
Frequent Advisor

Re: mail problem

Hello Yogeeraj

plese see below message

# sendmail -v -d8.99 -d38.99 postmaster@infineon.com
seq_map_parse(aliases.files, )
map_init(sequence:aliases.files, NULL, 0)
sequence:aliases.files NULL: valid
map_init(implicit:Alias0, /etc/mail/aliases, 0)
wrong pass (pass = 0, rebuildable = 1)
map_init(host:host, NULL, 0)
host:host NULL: valid
map_init(switch:aliases, aliases, 0)
switch_map_open(aliases, aliases, 0)
switch_map_find => 1
files
map_stack[0] = sequence:aliases.files
switch:aliases aliases: valid
map_init(dequote:dequote, NULL, 0)
dequote:dequote NULL: valid
map_init(sequence:aliases.files, NULL, 1)
wrong pass (pass = 1, rebuildable = 0)
map_init(implicit:Alias0, /etc/mail/aliases, 1)
impl_map_open(Alias0, /etc/mail/aliases, 0)
hash_map_open(Alias0, /etc/mail/aliases, 0)
impl_map_lookup(Alias0, @)
db_map_lookup(Alias0, @)
implicit:Alias0 /etc/mail/aliases: valid
map_init(host:host, NULL, 1)
wrong pass (pass = 1, rebuildable = 0)
map_init(switch:aliases, aliases, 1)
wrong pass (pass = 1, rebuildable = 0)
map_init(dequote:dequote, NULL, 1)
wrong pass (pass = 1, rebuildable = 0)
getcanonname(infineon.com), trying files
text_getcanonname(infineon.com)
getcanonname(infineon.com), found
seq_map_lookup(aliases, postmaster)
seq_map_lookup(aliases.files, postmaster)
impl_map_lookup(Alias0, postmaster)
db_map_lookup(Alias0, postmaster)
postmaster@infineon.com... aliased to root
seq_map_lookup(aliases, root)
seq_map_lookup(aliases.files, root)
impl_map_lookup(Alias0, root)
db_map_lookup(Alias0, root)
seq_map_lookup(aliases, owner-postmaster)
seq_map_lookup(aliases.files, owner-postmaster)
impl_map_lookup(Alias0, owner-postmaster)
db_map_lookup(Alias0, owner-postmaster)

.
root... Connecting to local...
root... Sent
closemaps: closing aliases.files (NULL)
closemaps: closing Alias0 (/etc/mail/aliases)
impl_map_close(Alias0, /etc/mail/aliases, 12a3)
db_map_close(Alias0, /etc/mail/aliases, 12a3)
closemaps: closing host (NULL)
closemaps: closing aliases (aliases)
closemaps: closing dequote (NULL)


Waiting for your reply,

Mohan



Re: mail problem

I have seen this problem before.

I have found that, even though I edit nsswitch.conf, mail doesn't get the new resolution order. SAM fixes it somehow. Someday I will look into what SAM does.

Go into SAM, Network and Communications, Name Service Switch. Select hosts, then configure the menus so that resolution occurs the way you expect it to.