Operating System - HP-UX
1752604 Members
4461 Online
108788 Solutions
New Discussion юеВ

Re: Regarding mailx command

 
SOLVED
Go to solution
Kavita Poonia
Regular Advisor

Re: Regarding mailx command

Hello Dennis,

Please find the mailq output.

[root@mddxrdd1:/.root]#
#-> mailq -v
/var/spool/mqueue (63 requests)
-----Q-ID----- --Size-- -Priority- ---Q-Time--- --------Sender/Recipient--------
n0LGNlOC021292 46082 465665 Jan 21 11:23 MAILER-DAEMON
(reply: read error from smtp.na.jnj.com.)
(---:root---)
jle@ds.com
UnixS@ds.com
(reply: read error from smtp.na.jnj.com.)
n0LGNlOD021292 48985 468568 Jan 21 11:23 MAILER-DAEMON
(Deferred)
(---:root---)
jle7@it.com
UnixS@i.jnj.com
(Deferred)
n0LGNlOE021292 54233 473816 Jan 21 11:23 MAILER-DAEMON
(Deferred)
(---:root---)
jl@i.jj.com
UnixS@it.com
(Deferred)
n0LDNHOC027194 10962 1060545 Jan 21 08:23 MAILER-DAEMON
(Deferred)
(---:root---)
jle@ds.jj.com
UnixS@jj.com
(Deferred)
n0LDNHOD027194 15888 1065471 Jan 21 08:23 MAILER-DAEMON
(Deferred)
(---:root---)
jln7@it.com
UnixS@it.com
(Deferred)
n0LDNHOE027194 16139 1065722 Jan 21 08:23 MAILER-DAEMON
(Deferred)
(---:root---)
jl7@it.com
UnixS@it.com
(Deferred)


We have around 63 entries like this in mailq command.

Actual addresses are not used here.

Thanks * regards,
Kavita
Dennis Handly
Acclaimed Contributor

Re: Regarding mailx command

>relay=ncsusraexmea2.na.jnj.com

Can you look at the logs on this machine?

>Please find the mailq output.

It seems it doesn't like these aliases. Does mail work to any places at all?
Kavita Poonia
Regular Advisor

Re: Regarding mailx command

Hello Dennis,

What should I see for ncsusraexmea2.na.jnj.com ?

No mails are not delivered anywhere. We need to setup sendmail client at the earliest.

Thanks * regards,
Kavita
Dennis Handly
Acclaimed Contributor

Re: Regarding mailx command

>What should I see for ncsusraexmea2.na.jnj.com?

Something in mail.log to say why it refused the mail.

Also what changes have you made in sendmail.cf?

You might want to search other threads for configure and sendmail:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1159697
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1049130
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=610438
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=999188
Kavita Poonia
Regular Advisor

Re: Regarding mailx command

Okay Dennis.....let me see that and get back to you.....thanks
Kavita Poonia
Regular Advisor

Re: Regarding mailx command

Hello All,

I think I have misunderstood here. I do not want to configure a sendmail server here. I want to configure client from which I can send mails. So I have rectified my /etc/rc.config.d/mailservs as below again....

SENDMAIL_SERVER=0
export SENDMAIL_SERVER_NAME=
export SENDMAIL_RECVONLY=0
export SENDMAIL_SENDONLY=0

So please help me out with this as why I am not able to send outgoing mails even if everything is configured properly which I believe to be right....


Thanks * regards,
Kavita
Dennis Handly
Acclaimed Contributor

Re: Regarding mailx command

>I want to configure client from which I can send mails.

You do have to configure sendmail.cf.

export SENDMAIL_SERVER=0
export SENDMAIL_SERVER_NAME=
export SENDMAIL_RECVONLY=0
export SENDMAIL_SENDONLY=0

It seems that mailx invokes sendmail, so this seems fine. But you may have to set SENDMAIL_SENDONLY.