Trying to get mail working on a Linux machine


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Trying to get mail working on a Linux machine
# 1  
Old 02-26-2009
Trying to get mail working 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? Thanks.
# 2  
Old 02-26-2009
Did you configure the DS record (your smtp server) in the sendmail.cf file? If you received no error, your mail is likely in the /var/spool/mqueue directory waiting to be routed off the host.

You can also use the -d option when using the mail command to get more information about what is happening.

EDIT: A couple typos
Padow
# 3  
Old 02-26-2009
I did find / -name "sendmail.cf" on both machines, and it does not exist on either machine.

Also, neither machine has a /var/spool/mqueue directory. But they do have a /var/log/mail directory. And in the /var/log/mail directory of the machine that can't send emails, there is a file containing all the failed emails. Here is one of the failed emails I tried sending today:

Code:
From MAILER-DAEMON Thu Feb 26 12:54:53 2009
Return-path: <>
Envelope-to: root@masterd.mydomain.com
Delivery-date: Thu, 26 Feb 2009 12:54:53 -0500
Received: from Debian-exim by masterd.mydomain.com with local (Exim 4.63)
        id 1LckRh-0008OF-5U
        for root@masterd.mydomain.com; Thu, 26 Feb 2009 12:54:53 -0500
X-Failed-Recipients: myname@mydomaingroup.com
Auto-Submitted: auto-replied
From: Mail Delivery System <Mailer-Daemon@masterd.mydomain.com>
To: root@masterd.mydomain.com
Subject: Mail delivery failed: returning message to sender
Message-Id: <E1LckRh-0008OF-5U@masterd.mydomain.com>
Date: Thu, 26 Feb 2009 12:54:53 -0500

This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

  myname@mydomaingroup.com
    SMTP error from remote mail server after RCPT TO:<myname@mydomaingroup.com>:
    host mail.mydomaingroup.com [10.17.1.73]: 550 5.7.1 Unable to relay for myname@mydomaingroup.com

------ This is a copy of the message, including all the headers. ------

Return-path: <root@masterd.mydomain.com>
Received: from root by masterd.mydomain.com with local (Exim 4.63)
        (envelope-from <root@masterd.mydomain.com>)
        id 1LckRg-0008OC-TE
        for myname@mydomaingroup.com; Thu, 26 Feb 2009 12:54:52 -0500
To: myname@mydomaingroup.com
Subject: test
Message-Id: <E1LckRg-0008OC-TE@masterd.mydomain.com>
From: root <root@masterd.mydomain.com>
Date: Thu, 26 Feb 2009 12:54:52 -0500

hello

Looks like it is trying to use the mail server mail.mydomaingroup.com, and maybe that's the wrong one. I think we had a similar problem with another one of our machines (but the guy who fixed it is on vacation now). Is there a file somewhere that tells the mail command which mail server to use?
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Network of Virtual machine not working

Hello, I have a problem. I have a server SPARC T3-1 with solaris 11 on the base. The server is working well. And then i did a virtual machine using again Solaris 11 to do this, but now my notwork on my virtual machine is not working anymore. There says that the network that i have created is... (11 Replies)
Discussion started by: keziacp
11 Replies

2. UNIX for Dummies Questions & Answers

SWAP command not working on Linux machine

Hi I am working on linux machine and swap command is not working Linux Machine On Solaris machine it is working fine: uname -a SunOS rgsm01 5.9 Generic_118558-03 sun4u sparc SUNW,Sun-Fire-V440 swap -s total: 6596320k bytes allocated + 1035968k reserved = 7632288k used, 38893408k available ... (5 Replies)
Discussion started by: Basant Mishra
5 Replies

3. UNIX and Linux Applications

Cygwin application not working on my machine.

I have windows XP machine. Today i have tried to install Cygwin, I've downloaded all the packages then ran the setup. It's showed completed. But when i try to open this it's not working. Do i need to do anything extra for this..? Please help... (3 Replies)
Discussion started by: pamu
3 Replies

4. Shell Programming and Scripting

I have a requirement to check whose accounts are expired in Linux machine and send a mail to root

I have a requirement to check whose accounts are expired in Linux machine and send a mail to root user about the accounts. How can i achieve this in Linux? (1 Reply)
Discussion started by: mnmonu
1 Replies

5. Shell Programming and Scripting

no command is not working to send a mail in linux redhot server

HI All, I am facing the problem with rmail ... Actually my server is linux environment Redhot server. To send a mail which command I have to use it . I want subject and I want to Include CC also And body of the mail also there . But If I use rmail command it is not taking any options to... (1 Reply)
Discussion started by: ksrivani
1 Replies

6. Shell Programming and Scripting

shell script to copy files frm a linux machine to a windows machine using SCP

I need a shell script to copy files frm a linux machine to a windows machine using SCP. The files keeps changing day-to-day. I have to copy the latest file to the windows machine frm the linux machine. for example :In Linux, On July 20, the file name will be 20.txt and it should be copied to... (3 Replies)
Discussion started by: nithin6034
3 Replies

7. Shell Programming and Scripting

SSH into a linux machine from a windows machine

I basically want to login into different linux machines( on the same network) from a windows machine. I know i can use ssh <machine name>. But i want to automate this process. I dont want to enter the username and password. Is there any way to do it. Can i make some sort of a batch script for it. (4 Replies)
Discussion started by: lassimanji
4 Replies

8. UNIX for Dummies Questions & Answers

Link type between working machine and server machine

There are two servers where my machine is connected. Is there any type of link formed between my machine and server machine? (1 Reply)
Discussion started by: palash2k
1 Replies

9. Linux

How to set up mail server in Linux machine

Hi, I have a desktop on which linux is installed. It is connected to office LAN. I am able to send mails(using the 'mail' command) to anybody who is connected to the linux machine. But I am not able to send mails to internet IDs. Please inform, what do I have to do to enable mailing to internet... (3 Replies)
Discussion started by: abhishek_ss
3 Replies

10. UNIX for Dummies Questions & Answers

setup mail server on my unix machine

hi, i just finished installation solaris 8 on my unix machine. i want to setup a mail server on it ( i assume it has not had one yet). so, what is my first step? where can i find out step by step configuration procedure on web ? so any expert is willing to teach me? pls help me. ... (1 Reply)
Discussion started by: champion
1 Replies
Login or Register to Ask a Question