LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 11-25-2008, 12:56 AM   #1
sureshunix
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" help@as.com in linux, i got "bad address" output.

How to resolve this ?

Note:It is working in root login.

Thanks & Regards,
Suresh
 
Old 11-25-2008, 04:23 AM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

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

Code:
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
rdmarsh
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
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:27 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
Open Source Consulting | Domain Registration