LinuxQuestions.org
Review your favorite Linux distribution.
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
 
Search this Thread
Old 03-30-2009, 02:49 PM   #1
GarrettVD
LQ Newbie
 
Registered: Mar 2009
Posts: 5

Rep: Reputation: 0
Sendmail not sending within local domain


Hey guys,

I'm having some issues with Sendmail on my Linux box... I have no problems at all sending mail to external domains, like aol, gmail, etc. but I'm having issues sending emails locally. I ran a sendmail -bv test and it tells me that the user is unknown... Any ideas on how to fix this? If you need more info feel free to ask. Thanks,

Just ran an NS lookup... Shows the server and address, but tells me "***Cant find mydomain.com: No answer"

Last edited by GarrettVD; 03-30-2009 at 03:13 PM.
 
Old 03-30-2009, 07:49 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
It sounds like you're unable to resolve the domain name for your box. If you look in /etc/hosts or /etc/mail/local-host-names is it there?
 
Old 03-30-2009, 10:46 PM   #3
GarrettVD
LQ Newbie
 
Registered: Mar 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Hey there Gilead, thanks for the response.

The domain is in the /etc/mail/local-host-names file, yeah. I tried removing it and restarting Sendmail, but that didn't do much, so I reverted the file back to the way it was.

It isn't in /etc/hosts, though. Should I add it?
 
Old 03-30-2009, 11:22 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
I would - it should have been recognised in /etc/mail/local-host-names, but it may be that sendmail wasn't configured to use that file. If that's the case, adding the name/IP address to /etc/hosts should fix it.
 
Old 03-31-2009, 07:44 AM   #5
GarrettVD
LQ Newbie
 
Registered: Mar 2009
Posts: 5

Original Poster
Rep: Reputation: 0
I think it was configured in sendmail.mc to use that file, but I'll add it to /etc/hosts and let you know what happens shortly. Thanks,
 
Old 03-31-2009, 09:06 AM   #6
GarrettVD
LQ Newbie
 
Registered: Mar 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Alright, so after smashing my head off of the keyboard for a couple hours, I figured out the root of all problems... The nameserver we had listed in /etc/resolv.conf couldn't weren't working for whatever reason. So, I've switched them to a public DNS for now... Probably not the best solution, but it will do for now as we fix our nameserver... Thanks for the help though, Gil!
 
Old 04-01-2009, 12:16 AM   #7
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
Not that I did much - but thanks for posting your fix, it gives other people who might have the same problem something to check for.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Gmail Application and Sending Email to Local Domain kelepirci Linux - Server 1 10-07-2008 09:50 AM
Sending mail between local users (other than root) fails using sendmail dbradshaw Linux - Server 3 12-29-2007 12:06 AM
Restricting local users from sending external mail (except for one domain) iolames Linux - Newbie 1 03-15-2006 09:57 AM
Sendmail sending as host.domain.com, i want it to be from just domain.com. PlatinumRik Linux - Software 5 10-07-2004 04:32 PM
postfix : sending local mail without domain iainr Linux - Software 2 12-10-2003 03:05 AM


All times are GMT -5. The time now is 07:32 PM.

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 Google+: linuxquestions
Open Source Consulting | Domain Registration