Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 11-25-2008, 12:56 AM   #1
LQ Newbie
Registered: Nov 2008
Posts: 1

Rep: Reputation: 0
mail -s command gives Bad Address

Hi All,

When i tried to execute the command mail -s "test" in linux, i got "bad address" output.

How to resolve this ?

Note:It is working in root login.

Thanks & Regards,
Old 11-25-2008, 04:23 AM   #2
LQ Addict
Registered: Oct 2003
Location: Australia
Distribution: MX 16
Posts: 5,291

Rep: Reputation: Disabled
my /usr/bin/mail links to a mailer executable and has permissions to allow the local user to execute it

as YMMV try

find / -name mail
(pretend response is /usr/bin/mail)
ls -al /usr/bin/mail
/usr/bin/mail -> /etc/alternatives/mail
ls -al /etc/alternatives/mail
lrwxrwxrwx 1 root root 18 2008-10-10 16:32 /etc/alternatives/mail -> /usr/bin/bsd-mailx
ls -al /usr/bin/bsd-mailx
-rwxr-xr-x 1 root root 81016 2008-11-09 17:03 /usr/bin/bsd-mailx
you probably do not have so many sym links as mine but the main thing is the third set of r-x for the others

Last edited by aus9; 11-25-2008 at 04:24 AM.
Old 08-07-2013, 01:52 AM   #3
LQ Newbie
Registered: Jan 2012
Posts: 2

Rep: Reputation: Disabled
For anyone that wanders past this way, I had this exact problem.

Turned out to be permissions on $TMPDIR, so check /tmp if it's not set. For me, TMPDIR was set to /restore/tmpdir


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
mail command + changing senders email address aeby Linux - Server 5 04-18-2010 05:43 PM
can mail command be used to send mail onto global mail servers like yahoo etc dale_chip Linux - Newbie 4 08-12-2008 08:33 AM
Who's sending this mail to "Bad destination mailbox address" ssfrstlstnm Linux - Server 10 06-20-2008 10:14 PM
Option to specify Sender's Address in Mail command crazy_girl Linux - Newbie 2 08-20-2007 10:36 AM
Rejecting non local mail for specific e-mail address vrsic Linux - Server 4 10-24-2006 02:46 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:23 PM.

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