LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Sendmail not sending within local domain (https://www.linuxquestions.org/questions/linux-server-73/sendmail-not-sending-within-local-domain-715562/)

GarrettVD 03-30-2009 02:49 PM

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"

gilead 03-30-2009 07:49 PM

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?

GarrettVD 03-30-2009 10:46 PM

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?

gilead 03-30-2009 11:22 PM

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.

GarrettVD 03-31-2009 07:44 AM

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,

GarrettVD 03-31-2009 09:06 AM

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! :)

gilead 04-01-2009 12:16 AM

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.


All times are GMT -5. The time now is 09:34 PM.