LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 04-03-2007, 02:31 PM   #1
ARHutchins
LQ Newbie
 
Registered: Apr 2007
Posts: 2

Rep: Reputation: 0
Sendmail Not finding Domain


Okay, here's my setup.

I have an Private Network and a DMZ all connected through a firewall that is connected to the outside world.

- Inside the DMZ I have 2 DNS servers (Fedora 5) and 1 web server (Slack11)
- I am running email via M$Exchange in the private network.

I am trying to use sendmail to send an email from my webserver(DMZ) to my internal network without opening up a connection directly from the DMZ to the private network.

Sendmail works great when I send email to anything outside of our domain. The problem is happening when I send email to anyone in our domain.

IE:
I want to send an email to "user@mydomain.com". This is an actual mailbox on the M$Exchange server, in the private network. BUT - It gets rejected saying "mailbox not found"

When I send an email to "root@mydomain.com" - which is _not_ a mailbox on the M$Exchange server, the email is delivered to "root" on my webserver.


I think sendmail thinks it's the only mail server on my network.

Ideally I'd like to have the email go out to the net, find our public IP address, and try to come in from that direction seeing how a direct connection from the DMZ to the private network is not going to happen.


Any help would be appreciated.
 
Old 04-03-2007, 02:53 PM   #2
mcupples
Member
 
Registered: Jun 2006
Location: Orlando
Distribution: FC3, FC5, CentOS4, Ubuntu 6.06
Posts: 57

Rep: Reputation: 15
I'm not quite sure how much off the track I am on this, but try editing the "/etc/mail/local-host-names" file. Just comment out your domain. Then it *should* send it out to public dns.

Hopefully anyway.

Give it a shot?

This is how my file looks. The commented out lines begin with #'s. You should probably restart all lamp services after making the change.
Code:
example1.com
example2.com
example3.com

# example4.com
# example5.com
 
Old 04-04-2007, 07:43 AM   #3
ARHutchins
LQ Newbie
 
Registered: Apr 2007
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by mcupples
I'm not quite sure how much off the track I am on this, but try editing the "/etc/mail/local-host-names" file. Just comment out your domain. Then it *should* send it out to public dns.

Hopefully anyway.

Give it a shot?

This is how my file looks. The commented out lines begin with #'s. You should probably restart all lamp services after making the change.
Code:
example1.com
example2.com
example3.com

# example4.com
# example5.com
Thank you for the reply.

That didn't seem to do it. I didn't have any domains added in that file when I originally set it up and have since double-checked to make sure no domains are listed.

Any other ideas?
 
Old 04-04-2007, 08:27 AM   #4
mcupples
Member
 
Registered: Jun 2006
Location: Orlando
Distribution: FC3, FC5, CentOS4, Ubuntu 6.06
Posts: 57

Rep: Reputation: 15
Sorry man, you've tapped the extent of my impressive internal knowledge base.
 
  


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 Domain?? jmorris8 Linux - Newbie 6 03-14-2007 07:47 AM
Finding all Sub-domains of a domain anjanesh Programming 3 05-22-2005 03:19 AM
Sendmail domain configuration don_wombat Linux - Software 5 02-25-2005 11:09 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
HELP! Sendmail Config for xxx.domain.com where xxx is not domain, but want act like 1 rld1025 Linux - Newbie 2 09-11-2003 07:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:02 AM.

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