Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sendmail and a Novice....

Status
Not open for further replies.

BIS

Technical User
Jun 1, 2001
1,893
0
36
NL
Hello All,

I am very very new to this, so please bear with me. I am trying to get sendmail working on a SunOS 5.7 box, but I keep getting this error. Perhaps my syntax is wrong but I have got to start somewhere :)
This is what I do:

#sendmail me@over.here (for example)
but I only get this error:
ksh: sendmail: not found

So maybe sendmail is not even active/installed?

Could someone point me in the right direction on where to start? Please?
 
first grep to see if send mail is runnig.
e.g. ps -ef | grep sendmail

you should see something like this if it is:

root 297 1 0 Nov 12 ? 0:01 /usr/lib/sendmail -bd -q15m
root 25455 25197 0 15:57:34 pts/3 0:00 grep sendmail
 
This is the result. Does this mean it is running?

root 6265 6247 0 11:17:05 pts/15 0:00 grep aendmail
 
Hi
This means sendmail is not running. The process shown is the grep you ran. You can start sendmail by

/etc/init.d/sendmail start

Make sure that /usr/lib is included in your path. Now sendmail should work.

Hope this helps.
 
You should be able to use sendmail to send email without the daemon running.

Try "which sendmail", and use the full pathname when invoking sendmail. To avoid doing this either add the path to your environment or create a symbolic link somewhere in your defined paths, e.g. in /usr/bin/ or similar. IBM Certified Specialist - MQSeries
IBM Certified Specialist - AIX 5 pSeries System Administration
 
Sorry - I don't quite understand the last remark...
this is the output:
which sendmail
no sendmail in /usr/sbin /usr/bin /usr/dt/bin /usr/openwin/bin
Perhaps I don't even have sendmail on this box? The goal of this is simply to have an email sent at a scheduled time (with cron f.ex), the email having a text file attached. Is this at all possible?
 
OK, maybe you don't have sendmail installed to begin with. To do a proper search run the following: "find / -name sendmail"

If it is somewhere on your box it will be listed.

To send mail you will need a MTA like sendmail installed to do the actual sending of your email. To send a message as an attachment require even more, sendmail by itself cannot do that for you. If you look in the "General UNIX discussion" FAQ's you will find a shell script which will do the attachment bit for you. IBM Certified Specialist - MQSeries
IBM Certified Specialist - AIX 5 pSeries System Administration
 
Thanks a million. I found sendmail in /usr/lib and will have a go at your script. Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top