Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 04-13-2004, 01:31 PM   #1
Registered: Oct 2003
Location: southern cali
Distribution: fedora core 4
Posts: 79

Rep: Reputation: 15
Sendmail Can't Send Mail To My Isp Account

I'm pretty much a linux noob.. been using it for years, but never very in depth. I'm trying to set up sendmail to send me an email from my linux box to my email account on my isp (tampabay roadrunner). I have my linux box /etc/hosts file set up with a line that looks something like this: blah blah server

My emails using sendmail are being bounced back with this error:

From Wed Mar 10 09:23:23 2004
Return-Path: <>
Received: from localhost (localhost)
by (8.12.10/8.12.10) id i2AENNDk002134;
Wed, 10 Mar 2004 09:23:23 -0500
Date: Wed, 10 Mar 2004 09:23:23 -0500
From: Mail Delivery Subsystem <>
Message-Id: <>
To: <>
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
Subject: Returned mail: see transcript for details
Auto-Submitted: auto-generated (failure)

This is a MIME-encapsulated message


The original message was received at Wed, 10 Mar 2004 09:23:23 -0500
from localhost.localdomain []

----- The following addresses had permanent fatal errors -----
(reason: 550 5.7.1 Mail Refused - 68.202.7 - See - 20031206)

----- Transcript of session follows -----
... while talking to
>>> MAIL From:<>
<<< 550 5.7.1 Mail Refused - 68.202.7 - See - 20031206
554 5.0.0 Service unavailable

Content-Type: message/delivery-status

Reporting-MTA: dns;
Received-From-MTA: DNS; localhost.localdomain
Arrival-Date: Wed, 10 Mar 2004 09:23:23 -0500
Final-Recipient: RFC822;
Action: failed
Status: 5.7.1
Diagnostic-Code: SMTP; 550 5.7.1 Mail Refused - 68.202.7 - See - 20031206
Last-Attempt-Date: Wed, 10 Mar 2004 09:23:23 -0500

Content-Type: message/rfc822

What's going on? I think it has something to do with the fact that my ISP thinks these emails are spam, which they are not. Is it because it's resolving the dns to "localhost:localdomain"? If so, how do I get rid of that? Remember, I changed my etc/hosts file to reflect Please help.
Old 04-13-2004, 03:10 PM   #2
Registered: Aug 2003
Location: New Delhi, India
Distribution: RHEL AS 3/4, Windows XP
Posts: 546

Rep: Reputation: 31

By looking at the error message, it seems that your ISP may have blocked the address 'localhost.localdomain'. However...

1. If you do not have a registered domain name with you or If you are not in a LAN with more than 1 computers, then the following entry in my opinion isnt required. I am assuming that you are trying to send mail from your standalone computer to your ISP e-mail account. If thats correct, then try removing the following line from your /etc/hosts and then send mail again. server

2. You can also see whats actually going on in detail with sendmail by using the -v option

mail -v <your-email-address>

3. Also, just to check, try stopping your firewall

service iptables stop

4. Additionally, monitor /var/log/maillog and check what error messages are being produced other than the ones u just posted.


Old 04-14-2004, 08:59 AM   #3
Registered: Oct 2003
Location: southern cali
Distribution: fedora core 4
Posts: 79

Original Poster
Rep: Reputation: 15

Thanks for the reply. I have a strong suspicion that it has something to do with the localhost.localdomain.

I am running the linux box behind my 4 port linksys router, so that NAT IP is necessary in the etc/hosts file. I have 3 other computers running on my home network.

Is there any way to stop the ISP from resolving my linux box as localhost.localdomain? I tried configuring those spoofing setting in the sendmail.conf, and my etc/hosts (and prompt) are configured to have the machine resolve to Please tell me this is fixable without having to run a DSN server on my box.

Old 04-14-2004, 09:35 AM   #4
Registered: Mar 2004
Location: Canada
Distribution: Slackware
Posts: 92

Rep: Reputation: 15

Any reasonably secure mail server is going to look for an mx record for any server trying to send it mail. We bounce mail all the time here.

If you do not have an mx record for your server I suspect that you have problems.
Old 04-14-2004, 11:22 AM   #5
Registered: Oct 2003
Location: southern cali
Distribution: fedora core 4
Posts: 79

Original Poster
Rep: Reputation: 15
Ok, I'll bite..

What is an mx record and how to I get one?
Old 04-14-2004, 12:12 PM   #6
Registered: Oct 2003
Location: Riverside, CA
Distribution: Slackware/RedHat
Posts: 79

Rep: Reputation: 15
An MX record is what DNS uses for a Mail Exchanger for a particular domain.
You can easily run a security check on your ISP mail system by masquerading your sendmail MTA with a domain name that can be resolved. If the ISP resolves the domain and lets you send mail now, then they dont check for valid hosts at that domain. If it is bounced again, then they most likely have host checking and you will have to contact them about adding an MX Record for a domain name that you register.


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
Using sendmail to relay mail to ISP mail server Swift&Smart Linux - Software 26 11-09-2008 04:00 PM
how to send all mail through isp server with sendmail or? dlm4444 Linux - Wireless Networking 1 07-06-2005 05:07 PM
Using sendmail to send mail from your ISP nrmx Linux - Software 2 12-16-2004 01:43 PM
Adding a ISP mail account skibud2 Linux - Newbie 4 12-05-2004 01:06 AM
How to set up ISP e-mail account kelper Linux - Networking 4 07-14-2004 04:13 PM

All times are GMT -5. The time now is 08:37 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration