Operating System - HP-UX
1751936 Members
4924 Online
108783 Solutions
New Discussion юеВ

sendmail : can not receive message

 
yangk
Frequent Advisor

sendmail : can not receive message

Hi All,

I want to test the sendmail deamon can work fine or not

Here is my test:

root 9091 1 0 17:39:38 ? 0:01 sendmail: accepting connections

$ mail root
hello root,this is user.

$ mail -f /var/mail/root

there is no test message. But the mail is in
/var/spool/mqueue/

# cat dfo7NJeJu2008186
hello root,this is user.

So could someone help me about this?
Thanks in advances!

Kevin
----------------------------------------------------------------------------------------------------------
P.S. This thread has been moved from system administration to messaging- Forum Moderator
2 REPLIES 2
Raj D.
Honored Contributor

Re: sendmail : can not receive message

Kevin,

As sendmail is configured and accepting connections, try send some test email to your mailbox:

Make sure you have valid mail server configured:
- To check the mail server :
# cat /etc/mail/sendmail.cf | grep ^DS



- To send a test email:
# echo "This is Test_mail From `hostname`" | mailx -s "Test From `hostname` your_email@domain.com




Hth,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
yangk
Frequent Advisor

Re: sendmail : can not receive message

Hi,

# grep "^DS" /etc/mail/sendmail.cf
DS

But it also can not email out.

There are some files in the /var/spool/mqeue like "qfo7ODQ4O7029805".

# cat qfo7ODQ4O7029805
V8
T1282656364
K1282657441
N2
P120158
I64/65537/141416
Malias database unavailable
Fbs
$_root@localhost
${daemon_flags}c u
Sroot
Aroot@+81w.domainname
Malias database unavailable
rRFC822; yangk@localhost
RPFD:yangk
H?P?Return-Path:
H??Received: (from root@domainname)
by domainame (@(#)Sendmail version 8.13.3 - Revision 1.003:: HP-UX11.31 - 8th December,2008/8.13.3) id o7ODQ4O7029805
for yangk; Tue, 24 Aug 2010 10:56:04 -0230 (NDT)
H?D?Date: Tue, 24 Aug 2010 10:56:04 -0230 (NDT)
H?F?From: root
H?M?Message-Id: <201008241326.o7ODQ4O7029805@domainname>
H??To: yangk
H??Subject: Test from srp04
H??Mime-Version: 1.0
H??Content-Type: text/plain; charset=us-ascii
H??Content-Transfer-Encoding: 7bit