This is a discussion on NAT + sendmail ? within the Linux Security forums, part of the System Security and Security Related category; Hi, I have a problem that : Two RH Linux servers behind the NAT, and both enable the sendmail server. One ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi,
I have a problem that : Two RH Linux servers behind the NAT, and both enable the sendmail server. One is the Email server with its domain is public domain, say hello.com, the other wants to send mail to the Email server, how to achieve that ? The Email server has public IP address : 199.198.197.196; after NAT, its IP is : 192.168.10.1 The other sendmail server has public IP address : 199.198.197.195; after NAT, its IP is : 192.168.10.2 The problem is: The sendmail server can not find the Email server since it can only find 192.168.10.2, but this address has no MX record, it can not send email to this address. How ? |
|
|||
|
Benson Lei <greenb@netvigator.com> wrote:
> Two RH Linux servers behind the NAT, and both enable the sendmail server. > One is the Email server with its domain is public domain, say hello.com, the > other wants > to send mail to the Email server, how to achieve that ? Implement a DNS server also for the internal network. Than relay mail. VB. -- X-Pie Software GmbH Postfach 1540, 88334 Bad Waldsee Phone +49-7524-996806 Fax +49-7524-996807 mailto:vb@x-pie.de http://www.x-pie.de |
|
|||
|
Benson Lei <greenb@netvigator.com> wrote:
> Hi, > > I have a problem that : > > Two RH Linux servers behind the NAT, and both enable the sendmail server. > > One is the Email server with its domain is public domain, say hello.com, the > other wants > to send mail to the Email server, how to achieve that ? > > The Email server has public IP address : 199.198.197.196; > after NAT, its IP is : 192.168.10.1 > > The other sendmail server has public IP address : 199.198.197.195; > after NAT, its IP is : 192.168.10.2 > > The problem is: > The sendmail server can not find the Email server since it can only find > 192.168.10.2, > but this address has no MX record, it can not send email to this address. > > How ? You answered your own question. Make sure one server finds MX record of the other. -- William Park, Open Geometry Consulting, <opengeometry@yahoo.ca> Linux solution for data management and processing. |
|
|||
|
"Benson Lei" <greenb@netvigator.com> wrote in message
news:bnr76p$j0i9@imsp212.netvigator.com > The Email server has public IP address : 199.198.197.196; > after NAT, its IP is : 192.168.10.1 > > The other sendmail server has public IP address : 199.198.197.195; > after NAT, its IP is : 192.168.10.2 > > The problem is: > The sendmail server can not find the Email server since it can only > find 192.168.10.2, > but this address has no MX record, it can not send email to this > address. Both machines needs these entries in /etc/hosts: 127.0.0.1 localhost.localdomain localhost 192.168.10.1 email.example.net email 192.168.10.2 sendmail.example.net sendmail and in /etc/nsswitch.conf: hosts: files dns Of course both machines need a properly configured /etc/resolv.conf that includes your local (caching) dns if you have one, or else an outside dns server. An MX record is not required, as an A record is also acceptable to sendmail. Your local network is resolved with the use of files rather than dns. tony -- use hotmail com for any email replies -----= Posted via Newsfeeds.Com, Uncensored Usenet News =----- http://www.newsfeeds.com - The #1 Newsgroup Service in the World! -----== Over 100,000 Newsgroups - 19 Different Servers! =----- |
|
|||
|
Sorry, it does not work, the sendmail can't find the Email Server, it just
want the Email Serve with public IP. How ? "ynotssor" <"ynotssor"> ???????:3fa223d4_4@corp.newsgroups.com... > "Benson Lei" <greenb@netvigator.com> wrote in message > news:bnr76p$j0i9@imsp212.netvigator.com > > > The Email server has public IP address : 199.198.197.196; > > after NAT, its IP is : 192.168.10.1 > > > > The other sendmail server has public IP address : 199.198.197.195; > > after NAT, its IP is : 192.168.10.2 > > > > The problem is: > > The sendmail server can not find the Email server since it can only > > find 192.168.10.2, > > but this address has no MX record, it can not send email to this > > address. > > Both machines needs these entries in /etc/hosts: > > 127.0.0.1 localhost.localdomain localhost > 192.168.10.1 email.example.net email > 192.168.10.2 sendmail.example.net sendmail > > and in /etc/nsswitch.conf: > > hosts: files dns > > Of course both machines need a properly configured /etc/resolv.conf that > includes your local (caching) dns if you have one, or else an outside dns > server. > > An MX record is not required, as an A record is also acceptable to sendmail. > Your local network is resolved with the use of files rather than dns. > > > tony > > -- > use hotmail com for any email replies > > > > -----= Posted via Newsfeeds.Com, Uncensored Usenet News =----- > http://www.newsfeeds.com - The #1 Newsgroup Service in the World! > -----== Over 100,000 Newsgroups - 19 Different Servers! =----- |