LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 01: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, 05:23 AM   #2
aus9
LQ Guru
 
Registered: Oct 2003
Posts: 5,124

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 05:24 AM.
 
Old 08-07-2013, 02: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


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 06: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 09:33 AM
Who's sending this mail to "Bad destination mailbox address" ssfrstlstnm Linux - Server 10 06-20-2008 11:14 PM
Option to specify Sender's Address in Mail command crazy_girl Linux - Newbie 2 08-20-2007 11:36 AM
Rejecting non local mail for specific e-mail address vrsic Linux - Server 4 10-24-2006 03:46 AM


All times are GMT -5. The time now is 10:30 PM.

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