Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Ubuntu/Debian, CentOS, RHEL, FreeBSD, OS X
Posts: 75
Rep:
Unable to send emails using mail command
Hello everyone,
I currently have a Debian Etch server configured and running. I was able to send emails using the mail command before. However as of today I'm not able to do so. I tried starting the /etc/init.d/sendmail script but I wasn't able to locate the service script or the config script either.
I have checked the system to see if it has working email server and was able to connect with out any problems. (telnet 127.0.0.1 25)
Any suggestions why I'm still not able to send emails using the mail command?
Distribution: Ubuntu/Debian, CentOS, RHEL, FreeBSD, OS X
Posts: 75
Original Poster
Rep:
Email header leads to DNS Issue
I can't figure out why its a DNS issue
Code:
recipients. This is a permanent error. The following address(es) failed:
tony.baltazar@trinetsolutions.com
Unrouteable address
------ This is a copy of the message, including all the headers. ------
Return-path: <root@backup.trinetcom.com>
Received: from root by backup with local (Exim 4.63)
(envelope-from <root@backup.trinetcom.com>)
id 1KVUUn-0001tP-Rl; Tue, 19 Aug 2008 09:55:49 -0700
To: all@backup.trinetcom.com, finally@backup.trinetcom.com,
messages@backup.trinetcom.com, removed@backup.trinetcom.com,
tony.baltazar@trinetsolutions.com
Subject: test email
Message-Id: <E1KVUUn-0001tP-Rl@backup>
From: root <root@backup.trinetcom.com>
Date: Tue, 19 Aug 2008 09:55:49 -0700
backup:~# exim -Mvb 1KVUai-0001uJ-L4
1KVUai-0001uJ-L4-D
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:
tony.baltazar@trinetsolutions.com
Unrouteable address
------ This is a copy of the message, including all the headers. ------
Return-path: <root@backup.trinetcom.com>
Received: from root by backup with local (Exim 4.63)
(envelope-from <root@backup.trinetcom.com>)
id 1KVUai-0001uH-JK
for tony.baltazar@trinetsolutions.com; Tue, 19 Aug 2008 10:01:56 -0700
To: tony.baltazar@trinetsolutions.com
Subject: Test
Message-Id: <E1KVUai-0001uH-JK@backup>
From: root <root@backup.trinetcom.com>
Date: Tue, 19 Aug 2008 10:01:56 -0700
This is just a test mail
test mail two
Distribution: Ubuntu/Debian, CentOS, RHEL, FreeBSD, OS X
Posts: 75
Original Poster
Rep:
Quote:
Originally Posted by Mr. C.
So now the question is, can you telnet to port 25 of that address:
telnet 74.52.84.210 25
I mistype the hostname. It should be trinetsolutions.com not trinesolutions.com. I can't telnet to that host on port 25 because their is not mail server running on it (connection refused as well).
I removed the mail queue and restarted the exim 4 daemon and was able to send emails to different address successfully. But I still not able to send mail to any address in the trinetsolutions.com domain. Email header indicates that the hostname is unreachable. (DNS )
Use the logs as your source of diagnostics, not the bounced mail message.
I see trinetsolutions.com mail is handled by:
Code:
$ host trinetsolutions.com
trinetsolutions.com has address 216.177.75.66
trinetsolutions.com mail is handled by 30 aspmx2.googlemail.com.
trinetsolutions.com mail is handled by 30 aspmx3.googlemail.com.
trinetsolutions.com mail is handled by 30 aspmx4.googlemail.com.
trinetsolutions.com mail is handled by 30 aspmx5.googlemail.com.
trinetsolutions.com mail is handled by 10 aspmx.l.google.com.
trinetsolutions.com mail is handled by 20 alt1.aspmx.l.google.com.
trinetsolutions.com mail is handled by 20 alt2.aspmx.l.google.com.
So you'd have to telnet to one of the listed MX servers, not the trinetsolutions.com IP address shown.
Distribution: Ubuntu/Debian, CentOS, RHEL, FreeBSD, OS X
Posts: 75
Original Poster
Rep:
Issue Solve
It turned out the reason why exim wasn't able to email messages to the trinetsolutions.com domain is because the email server is configured to be part as a subdomain of it. This causes exim to get confused and found any address sent to that domain unreachable.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.