LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-16-2010, 09:20 AM   #1
asw
LQ Newbie
 
Registered: Jan 2010
Posts: 3

Rep: Reputation: 0
failing to send mail from command line


I am using Ubuntu 9.10 and when I tried to send mail from the command line I get: /usr/lib/sendmail: Permission denied. any takers on this.
 
Old 03-16-2010, 09:23 AM   #2
wolfperkins
Member
 
Registered: Oct 2007
Location: Val-des-Monts, Québec, Canada
Distribution: CentOS, RHEL, Fedora
Posts: 109

Rep: Reputation: 16
What is your command when you send the mail? Are you using mailx/mail?
 
Old 03-16-2010, 06:24 PM   #3
SemiBeard
LQ Newbie
 
Registered: Mar 2010
Location: Miami
Distribution: Slackware
Posts: 24

Rep: Reputation: 2
reply

Sounds like the mail queue directories might have the permissions set
in a restrictive way.

Quote:
Originally Posted by asw View Post
I am using Ubuntu 9.10 and when I tried to send mail from the command line I get: /usr/lib/sendmail: Permission denied. any takers on this.
 
Old 03-16-2010, 07:38 PM   #4
10speed705
Member
 
Registered: May 2009
Location: Ontario Canada
Distribution: debian
Posts: 56

Rep: Reputation: 17
I agree with semibeard. but please post the command
 
Old 03-17-2010, 02:46 AM   #5
asw
LQ Newbie
 
Registered: Jan 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Smile

$ mail abc@yahoo.com
Subject: Testing

Testing

Babai
.
EOT
/usr/lib/sendmail: Permission denied

----------------------

Quote:
Originally Posted by wolfperkins View Post
What is your command when you send the mail? Are you using mailx/mail?
 
Old 03-17-2010, 07:43 AM   #6
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by asw View Post
$ mail abc@yahoo.com
Subject: Testing

Testing

Babai
.
EOT
/usr/lib/sendmail: Permission denied

----------------------
sendmail executable or whatever it links to does not have execute permissions for you it looks like.

check you or the mail user have the permissions to run the sendmail command and if not correct this by adding execute perms in the right place. really , after seeing this error, you should long list the /usr/lib/sendmail file so we can see what is going on here.....

Last edited by centosboy; 03-17-2010 at 07:44 AM.
 
Old 03-17-2010, 10:15 AM   #7
wolfperkins
Member
 
Registered: Oct 2007
Location: Val-des-Monts, Québec, Canada
Distribution: CentOS, RHEL, Fedora
Posts: 109

Rep: Reputation: 16
Here is what the permission set looks like on my fedora 11

Code:
$ ll /usr/lib/sendmail
lrwxrwxrwx 1 root root 30 nov 19  2008 /usr/lib/sendmail -> /etc/alternatives/mta-sendmail
$ ll /etc/alternatives/mta-sendmail
lrwxrwxrwx 1 root root 26 fév 17  2009 /etc/alternatives/mta-sendmail -> /usr/lib/sendmail.sendmail
$ ll /usr/lib/sendmail.sendmail
lrwxrwxrwx 1 root root 25 fév 17  2009 /usr/lib/sendmail.sendmail -> ../sbin/sendmail.sendmail
$ ll /usr/sbin/sendmail.sendmail
-rwxr-sr-x 1 root smmsp 841560 déc 19  2008 /usr/sbin/sendmail.sendmail
What are yours like?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian etch - Unable to send mail from command line or from php mail command lqforumuser Linux - Newbie 1 03-01-2009 07:56 AM
command line email client to send mail to remote mail server dhanju Linux - Software 1 03-07-2008 07:37 AM
How to send mail from command line buskmann Linux - Newbie 7 07-23-2006 11:18 PM
can i send mail from command line? iflorea Linux - Software 6 11-02-2005 08:08 AM
Command Line Send Mail nutthick Linux - Newbie 10 01-24-2005 08:52 PM


All times are GMT -5. The time now is 11:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration