LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 02-26-2009, 10:51 AM   #1
sllinux
Member
 
Registered: Feb 2009
Posts: 31

Rep: Reputation: 15
Can't send mail on a linux machine


I tried using the mail command on one of our Linux machines to send email, and it works fine. I tried using the same command on another one of our Linux machines, and it didn't work (no error message was returned either).

The machine that works has the following version information:

Code:
esgbuild@bbox003:/etc$ cat /proc/version
Linux version 2.6.12 (root@Knoppix) (gcc-Version 3.3.6 (Debian 1:3.3.6-7)) #2 SMP Tue Aug 9 23:20:52 CEST 2005
esgbuild@bbox003:/etc$ uname -a
Linux bbox003 2.6.12 #2 SMP Tue Aug 9 23:20:52 CEST 2005 i686 GNU/Linux
The machine that does not work has the following version information:

Code:
root@masterd:/opt/automate# cat /proc/version
Linux version 2.6.18-6-686 (Debian 2.6.18.dfsg.1-23etch1) (dannf@debian.org) (gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)) #1 SMP Fri Dec 12 16:48:28 UTC 2008
root@masterd:/opt/automate# uname -a
Linux masterd 2.6.18-6-686 #1 SMP Fri Dec 12 16:48:28 UTC 2008 i686 GNU/Linux
Can anyone tell me where I might look to see why the one machine can't send email? What configuration files I might want to look at, or what packages are installed or not installed? Thanks.
 
Old 02-26-2009, 11:49 AM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
For one thing you seem to be running different kernels on the two machines and both are pretty old kernels. (2.6.12 and 2.6.18).
The dates on both machines are off but I don't know if either of these things bears on your problem. Maybe it would be useful if you indicated the error messages you receive when you try to send email on the machine that's a problem. Also how are you sending the email?
cheers,
jdk
 
Old 02-26-2009, 12:02 PM   #3
sllinux
Member
 
Registered: Feb 2009
Posts: 31

Original Poster
Rep: Reputation: 15
I am doing this on both machines:

mail -s "test" myaddress@mycompany.com

I get the email from the one machine, but I don't get any email from the other machine. There is no error message on that machine when I do the mail command.
 
Old 02-26-2009, 12:16 PM   #4
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
Have you verified that the contents of /etc/mail.rc and ~/.mail.rc are the same on both machines. If they aren't then you might try copying the contents of the files on the working machine to the machine that doesn't work.
cheers,
jdk
 
Old 02-26-2009, 12:23 PM   #5
sllinux
Member
 
Registered: Feb 2009
Posts: 31

Original Poster
Rep: Reputation: 15
The /etc/mail.rc files are the same on both machines, and there is no ~/.mail.rc on either machine.
 
Old 02-26-2009, 12:50 PM   #6
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
I've run out of suggestions.
Sorry about that.
jdk
 
Old 02-26-2009, 12:50 PM   #7
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
I've run out of suggestions.
Sorry about that.
jdk
 
Old 02-26-2009, 12:52 PM   #8
sllinux
Member
 
Registered: Feb 2009
Posts: 31

Original Poster
Rep: Reputation: 15
OK, thanks anyway. Maybe someone else will have an idea.
 
  


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
cannot send mail from local machine harsshal Linux - Software 9 02-20-2009 07:25 AM
Postfix : mail cannot send to send outside ( can send/receive locally) bobbinsupport Linux - Networking 3 12-15-2007 10:40 PM
with the linux proxi, backend pop3 mail client can not receive mail and send mail rubin823 Linux - Networking 0 12-21-2006 10:06 PM
Send mail from Linux machine to outside world schamie Linux - Networking 1 11-10-2005 02:15 AM
Cannot send mail with mail() command in PHP 4.3.4, Apache 2.0.48, Mandrake Linux 10 arcanum Linux - General 3 06-27-2004 06:06 PM


All times are GMT -5. The time now is 08:32 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