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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem with using sendmail

Status
Not open for further replies.

donny750

Programmer
Jul 13, 2006
145
FR
hello,

I'm trying to use sendmail command;

so i've create a text file with this
To: benny.jams@micro.com
From : benny.jams@micro.com
Content-type: text/plain
This is my message ....

in the shell i make this :
Code:
 sendmail -t < /home/james/doc/message.txt
-bash: sendmail: command not found

i don't understand why it's not running ?

Thanks
 
Kind of obvious I'd think:

bash can't find the command sendmail, either it's not installed (which I doubt) or it is in a directory which isn't in your $PATH list.


HTH,

p5wizard
 
the sendmail binary is not in your path.

try /usr/sbin/sendmail

 
i try and have thid
-bash: usr/sbin/sendmail: No such file or directory

in usr/sbin i've this file
sendmail.sendmail
sendmail (he have a little arrow)

how can i do , to know if sendmail is installed ?
 
Read again the previous posts.

Obviously there is one / missing in
/usr/sbin/sendmail
 
yes i missed /
i've run the command with no errors message
and i m waiting the mail
 
no mail coming ?
it's normal ?
when i run my command i've no errors messages but i've not received the mail
 
verify in your mailbox if you dont have any error
 
friends send me mail in my mailbox, it's run
but when i use sendmail
i've no errors message and i don't received the mail
i've always waiting
 
exists a log where i can see what sendmail do please ?
 
And what about this ?
man sendmail

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
i've look
but i've nothing
i'm always waiting for the mail
 
Did you set up sendmail so that it knows how to find macro.com?

What does the command "/usr/sbin/sendmail -bp" give you?


HTH,

p5wizard
 
[singing]*Please Mr Postman, deliver the letter, the sooner the better"[/singing]

;-) Sorry.

I want to be good, is that not enough?
 
p5wizard i do what you say me
and i've this
/usr/sbin/sendmail -bp
can not chdir(/var/spool/mqueue/): Permission denied
Program mode requires special privileges, e.g., root or TrustedUser.

I must be connected on root for use sendmail ?it's that ?
 
i try this, for testing
Code:
echo "Test" | mail -s benny.jams@micro.com

but i've received nothing
 
Yes, you need to be privileged user to examine the mail queue using the sendmail program (sendmail -bp).

No, you don't need to be privileged in order to send mail messages using sendmail.



HTH,

p5wizard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top