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
qmail-queue(8)						      System Manager's Manual						    qmail-queue(8)

NAME
qmail-queue - queue a mail message for delivery SYNOPSIS
qmail-queue DESCRIPTION
qmail-queue reads a mail message from descriptor 0. It then reads envelope information from descriptor 1. It places the message into the outgoing queue for future delivery by qmail-send. The envelope information is an envelope sender address followed by a list of envelope recipient addresses. The sender address is preceded by the letter F and terminated by a 0 byte. Each recipient address is preceded by the letter T and terminated by a 0 byte. The list of recipient addresses is terminated by an extra 0 byte. If qmail-queue sees end-of-file before the extra 0 byte, it aborts without placing the message into the queue. Every envelope recipient address should contain a username, an @ sign, and a fully qualified domain name. qmail-queue always adds a Received line to the top of the message. Other than this, qmail-queue does not inspect the message and does not enforce any restrictions on its contents. However, the recipients probably expect to see a proper header, as described in qmail-header(5). Programs included with qmail which invoke qmail-queue will invoke the contents of $QMAILQUEUE instead, if that environment variable is set. FILESYSTEM RESTRICTIONS
qmail-queue imposes two constraints on the queue structure: each mess subdirectory must be in the same filesystem as the pid directory; and each todo subdirectory must be in the same filesystem as the intd directory. EXIT CODES
qmail-queue does not print diagnostics. It exits 0 if it has successfully queued the message. It exits between 1 and 99 if it has failed to queue the message. All qmail-queue error codes between 11 and 40 indicate permanent errors: 11 Address too long. 31 Mail server permanently refuses to send the message to any recipients. (Not used by qmail-queue, but can be used by programs offering the same interface.) All other qmail-queue error codes indicate temporary errors: 51 Out of memory. 52 Timeout. 53 Write error; e.g., disk full. 54 Unable to read the message or envelope. 55 Unable to read a configuration file. (Not used by qmail-queue.) 56 Problem making a network connection from this host. (Not used by qmail-queue.) 61 Problem with the qmail home directory. 62 Problem with the queue directory. 63 Problem with queue/pid. 64 Problem with queue/mess. 65 Problem with queue/intd. 66 Problem with queue/todo. 71 Mail server temporarily refuses to send the message to any recipients. (Not used by qmail-queue.) 72 Connection to mail server timed out. (Not used by qmail-queue.) 73 Connection to mail server rejected. (Not used by qmail-queue.) 74 Connection to mail server succeeded, but communication failed. (Not used by qmail-queue.) 81 Internal bug; e.g., segmentation fault. 91 Envelope format error. SEE ALSO
addresses(5), envelopes(5), qmail-header(5), qmail-inject(8), qmail-qmqpc(8), qmail-send(8), qmail-smtpd(8) qmail-queue(8)
All times are GMT -4. The time now is 10:59 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy