Sendmail syntax to send mail

Hi
ive installed sendmail and the its running as is the daemon, what can i do at this point to check its working,
what syntax do i need to type into the terminal window to basically send an e-mail to itself. im using red hat 9.0
damieneowenAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Daniel Van Der WerkenIndependent ConsultantCommented:
Does this example do what you need?


testing:~> mail -v dwerken   <=== this is the command
Subject: Hey
Testing                       <=== NOTE:  I hit CTRL-D to exit from the text entry mode.
Cc:
LOG: 0 MAIN
  <= dwerken@testing U=dwerken P=local S=314
testing:~> Exim version 3.35 debug level 1 uid=8 gid=8
Berkeley DB: Sleepycat Software: Berkeley DB 2.7.7: (08/20/99)
delivering message 1CTkVN-0005kC-00
LOG: 0 MAIN
  => dwerken <dwerken@testing> D=localuser T=local_delivery
LOG: 0 MAIN
  Completed
0
Daniel Van Der WerkenIndependent ConsultantCommented:
...continued

After you send the mail, you'd type "mail" at the prompt to see if you got it:

testing:~> mail
Mail version 8.1.2 01/15/2001.  Type ? for help.
"/var/mail/dwerken": 1 message 1 new
>N  1 dwerken@testing    Mon Nov 15 12:19   14/421   Hey
&

---Dan---
0
mrwebdevCommented:
0
NashvilleGuitarPickerCommented:
Try this generic procedure for testing SMTP (>> is stuff you type, << is stuff you get back):


$ telnet yourmailhost.whatever.com 25 (or telnet yourhost:25 on some systems)

<< 220 yourmailhost.whatever.com blah blah
>> HELO yourclientname
<< 250 yourmailhost.whatever.com Hello [ip address]
>> mail from:someaddress@hotmail.com
<< 250 2.1.0 yourmailhost.whatever.com ...Sender OK
>> rcpt to:someaddress@yourmailhost.whatever.com
<< 250 2.1.5 someaddress@yourmailhost.whatever.com
>> data
<< 354 Please start mail input.
>> Subject: Test message
>>
>> This is a test...
>> Testing 1-2-3
>> .
(note, ^^^^  that is a period on an otherwise blank line to end)
<< 250 Mail queued for delivery.
>> quit

This was tested on Exchange, but it should work for any other SMTP server.  Please don't make any typos, since backspace usually doesn't work as expected.

I hope this helps.

- Will

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Software

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.