Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.