Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Trying to get mail working on a Linux machine Post 302291997 by sllinux on Thursday 26th of February 2009 04:41:59 PM
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?
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
MAIL(1) 						      General Commands Manual							   MAIL(1)

NAME
mail - send and receive electronic mail SYNOPSIS
mail [-dpqrv] [-f file] [user] OPTIONS
-d Force use of the shell variable MAILER -f Use file instead of /usr/spool/mail/user as mailbox -p Print all mail and then exit -q Quit program if SIGINT received -r Reverse print order, i.e., print oldest first -v Verbose mode EXAMPLES
mail ast # Send a message to ast mail # Read your mail DESCRIPTION
Mail is an extremely simple electronic mail program. It can be used to send or receive email on a single MINIX system, in which case it functions as user agent and local delivery agent. If the flag MAILER is defined in mail.c, it can also call a transport agent to handle remote mail as well. No such agent is supplied with MINIX. When called by user with no arguments, it examines the mailbox /usr/spool/mail/user, prints one message (depending on the -r flag), and waits for one of the following commands: <newline> Go to the next message - Print the previous message !command Fork off a shell and execute command CTRL-D Update the mailbox and quit (same as q) d Delete the current message and go to the next one q Update the mailbox and quit (same as CTRL-D) p Print the current message again s [file] Save message in the named file x Exit without updating the mailbox To send mail, the program is called with the name of the recipient as an argument. The mail is sent, along with a postmark line containing the date. For local delivery, a file named after the recipient in the directory /usr/spool/mail must be writable. If the directory /usr/spool/mail does not exist then the mail is dumped on the console, so that system programs have a way to notify a user on a system that does not have a mail spool. MAIL(1)
All times are GMT -4. The time now is 10:18 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy