LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 01-22-2010, 12:23 AM   #1
chrlsquincy
LQ Newbie
 
Registered: Jan 2010
Posts: 10

Rep: Reputation: 0
MAILS GETTING BOUNCED BACK (localhost.localdomain does not exists)


We've had this server running before but two hours ago there are some domains outside which we cannot send email to.

this is a sample of the message we get
Quote:
The original message was received at Fri, 22 Jan 2010 14:31:59 +0800
from [10.0.200.10]

----- The following addresses had permanent fatal errors -----
<beth@nippon-antennaphil.com>
(reason: 550 localhost.localdomain does not exist)

----- Transcript of session follows -----
... while talking to nippon-antennaphil.com.:
>>> DATA
<<< 550 localhost.localdomain does not exist
550 5.1.1 <beth@nippon-antennaphil.com>... User unknown
451 4.4.1 reply: read error from nippon-antennaphil.com.
Our server's been running smoothly before but i dunno what happened.
I'm a newbie here so i really don't know what's been causing this.

Thanks in advance!

---------------------------------------

I can send mails to gmail and yahoo as well... but there are like 3 domains which we cannot send mails to.

Last edited by chrlsquincy; 01-22-2010 at 12:25 AM. Reason: Additional Info
 
Old 01-22-2010, 12:39 AM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
Your MTA is sending a HELO/EHLO string of localhost.localdomain . That's wrong. You need to configure it to send it's fully-qualified domain name. You should also have an A record in public DNS for that hostname, and the IP it points to should have a PTR record that points back to the A record. Failing any of those steps will result in a lot of sites blocking your mail.
 
Old 01-22-2010, 12:56 AM   #3
chrlsquincy
LQ Newbie
 
Registered: Jan 2010
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks!! but how do i change it? is it on sendmail?

and yes we do have a registered domain.
 
Old 01-22-2010, 01:08 AM   #4
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
Edit /etc/mail/sendmail.mc
Code:
O HeloName=hostname.mydomain.tld
Then do service sendmail restart
 
Old 01-22-2010, 01:30 AM   #5
chrlsquincy
LQ Newbie
 
Registered: Jan 2010
Posts: 10

Original Poster
Rep: Reputation: 0
there's no such line in my sendmail.mc
but i added it at the bottom dnl HeloName=mydomain.etc
restarted sendmail
but my mails still get bounced back....
 
Old 01-22-2010, 01:40 AM   #6
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
I don't believe it will pick it up with dnl in front of it. Copy and paste exactly what I put in the code block, then just change the FQDN to match yours.
 
Old 01-22-2010, 02:43 AM   #7
chrlsquincy
LQ Newbie
 
Registered: Jan 2010
Posts: 10

Original Poster
Rep: Reputation: 0
It says header Syntax error, line "eloName=hst.com.ph" when i restarted the sendmail.
 
Old 01-22-2010, 03:14 AM   #8
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
Hmm, here is what's in my sendmail.mc with the line before and after:
Code:
dnl #
O HeloName=pps-01.smtps.net
(the line below it is blank)

Perhaps you need dnl at the end of the previous line? M4 always drives me nuts. I wouldn't use Sendmail except that it's bundled with the product my company sells. I use Postfix on all the e-mail servers I build from scratch.
 
Old 01-22-2010, 04:18 AM   #9
chrlsquincy
LQ Newbie
 
Registered: Jan 2010
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks for really helping me out Chort...

works fine now when i placed exactly what you got right there...

**i place our domain though

Last edited by chrlsquincy; 01-22-2010 at 04:21 AM.
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail from root@localhost.localdomain thru relay=localhost.localdomain[216.24.138.1] rshartog Linux - Server 2 02-02-2009 10:35 PM
RT(Request Tracker) w/ Exim gateway causing bounced e-mails nssblue Linux - Software 1 06-28-2007 09:21 AM
MySQL: Why are there two roots localhost, and localhost.localdomain? paulsiu Linux - Server 6 04-18-2007 09:43 AM
localhost name localdomain name assyrian1 Linux - Newbie 9 07-05-2005 04:17 AM
localhost.localdomain KennyK Linux - Software 9 04-17-2003 06:56 AM


All times are GMT -5. The time now is 06:10 AM.

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