Operating System - HP-UX
1834220 Members
3075 Online
110066 Solutions
New Discussion

Re: problem with sendmail

 
nagendra_3
Advisor

problem with sendmail

Hi,
When i invoke the sendmail to send a mail to a user , the mail is not sent and is present in the queue.
I see a message saying useropen,

When is do a ps -ef |grep sendmail i see the follwoing,
root 23110 1 0 14:15:06 ? 0:00 sendmail: OAA23108 smtp.43.com.: user open
root 22799 1 0 14:05:05 ? 0:00 sendmail: OAA22797 smtp.43.com.: user open

Can anyone help me out resolve this problem,

Thanx,
Nag
Knowledge is Power
3 REPLIES 3
someone_4
Honored Contributor

Re: problem with sendmail

Hello
what happends when you do
mailq
how are you sending the mail is it from a local user? Or is it comming from another server? What happends when you send an email from the command line? Post your results.

echo test | sendmail -v user@localhost

echo test | sendmail -v user@host

Does /var/adm/mail.log say anything?

Richard

nagendra_3
Advisor

Re: problem with sendmail

When i do a mailq I can see all the mails in the queue,
OAA24236* 670 Tue Mar 26 14:58

PAA24303* 670 Tue Mar 26 15:00

PAA24308* 670 Tue Mar 26 15:00

PAA24316* 670 Tue Mar 26 15:00

PAA24533* 670 Tue Mar 26 15:08


When i tried sending the mail
echo test | sendmail -v user@localhost
user@localhost... User unknown
/home/smadmin/dead.letter... cannot open: Permission denied
smadmin... Connecting to local...
smadmin... Sent


echo test | sendmail -v user@host
user@host... Host unknown (Name server: host: host not found)
/home/smadmin/dead.letter... cannot open: Permission denied
smadmin... Connecting to local...
smadmin... Sent

And the logs read as
Mar 26 15:18:21 hpat561 sendmail[24802]: PAA24802: to=user@localhost, delay=00:00:00, mailer=local, stat=User unknown
Mar 26 15:18:21 hpat561 sendmail[24802]: PAA24802: from=smadmin, size=5, class=0, pri=30005, nrcpts=1, msgid=<2002032620
18.PAA24802@hpat561.atl.hp.com>, relay=root@localhost
Mar 26 15:18:21 hpat561 sendmail[24802]: PAA24802: PAB24802: DSN: User unknown
Mar 26 15:18:21 hpat561 sendmail[24802]: PAB24802: to=smadmin, delay=00:00:00, xdelay=00:00:00, mailer=local, stat=Sent
Mar 26 15:19:06 hpat561 sendmail[24809]: PAA24809: from=smadmin, size=5, class=0, pri=30005, nrcpts=1, msgid=<2002032620
19.PAA24809@hpat561.atl.hp.com>, relay=root@localhost
Mar 26 15:19:06 hpat561 sendmail[24809]: PAA24809: to=user@host, ctladdr=smadmin (104/20), delay=00:00:05, xdelay=00:00:
00, mailer=esmtp, relay=host, stat=Host unknown (Name server: host: host not found)
Mar 26 15:19:07 hpat561 sendmail[24809]: PAA24809: PAB24809: DSN: Host unknown (Name server: host: host not found)
Mar 26 15:19:07 hpat561 sendmail[24809]: PAB24809: to=smadmin, delay=00:00:00, xdelay=00:00:00, mailer=local, stat=Sent

However after a DEALAY OF SOME 10-15 I AM GETTING THE MAIL.

Thankyou,
Nag
Knowledge is Power
someone_4
Honored Contributor

Re: problem with sendmail

Hello
when I mean

echo test | sendmail -v user@localhost

echo test | sendmail -v user@host


I dont mean use user@localhost or user@host .. you need to use the actull username and hostname of where are trying to send mail to. If you are tyrying to.

Richard