LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-13-2007, 07:08 AM   #1
nirwin
LQ Newbie
 
Registered: May 2006
Posts: 9

Rep: Reputation: 0
sendmail won't work - possible DNS problem


Hello,

I have set up a machine to run bugzilla on. All is well and good except that bugzilla won't send e-mails out.

So i did a
Code:
tail -f /var/log/mail.log
and got the following output (slightly edited to hide host names):
Code:
Mar 13 11:29:17 bugzilla sm-mta[5952]: l2D8THqh005949: to=<user@fakedomain.cix.co.uk>, delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=120892, relay=mx.cix.co.uk. [###.###.###.###], dsn=5.6.0, stat=data format error
That is where the log indicates it goes wrong, it then indicates that a failure message was sent back to bugzilla-admin-daemon@bugzilla.fakedomain but the user was unknown.

From the little information I have found, this is caused because some relay thinks I am a spammer because I do not have a proper host name or am not in the DNS lookup table.

the entries I have on my 'bugzilla' machine are:
Code:
127.0.0.1 localhost localhost
192.168.###.### bugzilla.fakedomain bugzilla bugzilla.fakedomain.local
(#'s are to keep the address private (though it is internal so I don't know why I'm so paranoid, but the address is correct)

My bugzilla machine was not listed in the local servers DNS table (an nslookup revealed this) so I added it manually (supplying the name bugzilla, to which it appended ".fakedomain.local".
Now an "nslookup bugzilla.fakedomain.local" works if my local server is the primary DNS. but none of the aliases work (though they can all be pinged).

So do you think the problem is that other DNS are thinking my bugzilla machine is a spammer and thus rejecting the mail? Can anyone suggest something I can do to solve this?

P.S. I can surf the internet, I have samba shares etc so the network is generally fine.

Thanks in advance.

---EDIT---

Further investigation shows that the e-mails bugzilla sends out are sent from "bugzilla-admin-daemon@bugzilla", and the return mail complains (quite rightly) that 'bugzilla' is not a qualified domain name. However /etc/hosts does not have a 'bugzilla' entry, it does have a 'bugzilla.fakedomain' and 'bugzilla.fakedomain.local'.
In ubuntu's network configuration app I have set the host to 'bugzilla.fakedomain' and the domain to fakedomain. etc etc.

So my question is where is it getting this address from?

Last edited by nirwin; 03-13-2007 at 10:17 AM.
 
Old 03-13-2007, 10:52 AM   #2
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
To send email, you need to have a real domain name, with a real IP address. 192.168 is a non-routing address. It can't send or receive email from the public internet. Your /etc/hosts file is local only to the machine in question. You can call your box anything you want, but that doesn't make it the machines name to the internet. That is similar to a nickname. All of your friends (the LAN) may know you as Skip, but to the world, you're name is not Skip.

So long story short, you need to own a real world domain, and create a MX record, which points to the real world IP of the mail server. Just because your local fake domain knows this is a mail server doesn't allow the world to know it in any way.

The address you are sending out as is usually configured in the MTA, so you should check the configuration you have on sendmail.

Peace,
JimBass
 
Old 03-13-2007, 11:41 AM   #3
nirwin
LQ Newbie
 
Registered: May 2006
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks for your help.

I am certainly aware of the whole Internal vs external addressing concept, but what confuses me is where sendmail is getting it's choice of domain name from, since it's not set to that anywhere.

I have been looking at sendmail's configuration files for a while, but this is my first time with sendmail and it seems quite cryptic.

I know what my FQDN (fully qualified domain name is) just need to tell sendmail to use it.

Thanks for your help anyway, guess I'll plod on...
 
Old 03-13-2007, 11:49 AM   #4
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
A quick google shows that there is a program named sendmailconfig that allows you to set the FQDN for sendmail. I suggest trying that.

Peace,
JimBass
 
Old 03-14-2007, 05:45 AM   #5
nirwin
LQ Newbie
 
Registered: May 2006
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by JimBass
A quick google shows that there is a program named sendmailconfig that allows you to set the FQDN for sendmail. I suggest trying that.

Peace,
JimBass
Ahh JimBass, sendmailconfig makes everything a lot easier.

I think I have solved my problem now (it was in actual fact a problem with /etc/hosts entries), but that sendmailconfig tool is going to come in handy.

Thank you very much for your assistance.
 
Old 03-14-2007, 09:49 AM   #6
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
No problem man, glad I could help.

Peace,
JimBass
 
  


Reply



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
Sendmail problem and DNS bhm8hwcm Fedora 2 10-31-2006 10:56 AM
sendmail/dns problem hcmk Linux - General 3 06-23-2004 12:40 PM
Sendmail, DNS, portsentry problem peppiv Linux - Software 3 02-11-2004 11:29 AM
Getting further, I think I have a sendmail, DNS problem. HELP! WorldBuilder Linux - Networking 0 05-14-2003 02:18 PM
Sendmail, DNS help please!! WorldBuilder Linux - Networking 2 05-10-2003 05:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:44 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration