LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 09-27-2003, 09:53 AM   #1
Crazed123
Member
 
Registered: Jul 2003
Location: You'll never take me alive!!!!!
Distribution: Snootix
Posts: 73

Rep: Reputation: 15
Help with sendmail and NAT


OK, I have my box behind a NAT firewall router given by my isp. I run sendmail to listen on port 25 for smtp on my pc. I've configured the firewall to foward port 25 to my computer. What I think I'm supposed to do is be able to send email to my LAN's public IP and it will be sent to my PC right? Well, whenever an email sent from outside to my pc it gets a failure delivery email saying "550 relaying denied". I think this is because sendmail thinks it's my internal ip, but the emails go to user@publicip. How do I make this work?
 
Old 09-27-2003, 09:58 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
If you are using a domain this shouldn't matter. If for some reason you are just using ip addresses then try using the "local-host-names" file.
 
Old 09-27-2003, 10:00 AM   #3
Crazed123
Member
 
Registered: Jul 2003
Location: You'll never take me alive!!!!!
Distribution: Snootix
Posts: 73

Original Poster
Rep: Reputation: 15
Sorry, I don't understand you. This is my first time running a server.
 
Old 09-27-2003, 10:16 AM   #4
karunesh
Member
 
Registered: Jan 2002
Location: India
Distribution: CentOS/Mandriva
Posts: 126

Rep: Reputation: 15
Add Domain Entry

I think you need to add "yourdomain.com" in your "local-host-names" file, save it and restart the sendmail.
 
Old 09-27-2003, 10:33 AM   #5
Crazed123
Member
 
Registered: Jul 2003
Location: You'll never take me alive!!!!!
Distribution: Snootix
Posts: 73

Original Poster
Rep: Reputation: 15
What are these domain things?
 
Old 09-27-2003, 01:01 PM   #6
Crazed123
Member
 
Registered: Jul 2003
Location: You'll never take me alive!!!!!
Distribution: Snootix
Posts: 73

Original Poster
Rep: Reputation: 15
I don't have a domain. I am running an ordinary PC. I don't work for a major company or have server boxes at my disposal.

Last edited by Crazed123; 09-27-2003 at 01:02 PM.
 
Old 09-27-2003, 01:21 PM   #7
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
This brings us to the point of why your are setting up a mail serer only to receive mail on an IP. You don't need to be big company to register a domain. Also if you aren't on a fixed IP it will be very difficult to manage as an incomming mail server.
 
Old 09-27-2003, 01:34 PM   #8
Crazed123
Member
 
Registered: Jul 2003
Location: You'll never take me alive!!!!!
Distribution: Snootix
Posts: 73

Original Poster
Rep: Reputation: 15
OK, so how I get a domain?
 
Old 09-27-2003, 01:38 PM   #9
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
If you hav a dynamic IP address then take a look at a dynamic DNS service like http://www.dyndns.org/ If you have a fixed a address then you should be able to use almost any registrar - just shop about for the best deal.
 
Old 09-27-2003, 01:44 PM   #10
Crazed123
Member
 
Registered: Jul 2003
Location: You'll never take me alive!!!!!
Distribution: Snootix
Posts: 73

Original Poster
Rep: Reputation: 15
Wait, why do I need a domain? I just want sendmail to realize that publicip=privateip.
 
Old 09-27-2003, 01:46 PM   #11
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Are you wanting people to send e-mail to your server? What address do you expect them to use?
 
Old 09-27-2003, 01:52 PM   #12
Crazed123
Member
 
Registered: Jul 2003
Location: You'll never take me alive!!!!!
Distribution: Snootix
Posts: 73

Original Poster
Rep: Reputation: 15
Can an ip address be used like that or do I need a domain?
 
Old 09-27-2003, 01:54 PM   #13
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
It will be much easier with a domain especially if you have a dynamic IP address.
 
Old 09-27-2003, 01:56 PM   #14
Crazed123
Member
 
Registered: Jul 2003
Location: You'll never take me alive!!!!!
Distribution: Snootix
Posts: 73

Original Poster
Rep: Reputation: 15
My local IP is dynamic my public is static.
 
Old 09-27-2003, 02:12 PM   #15
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
You should probably make your local IP static too so that you don;t need to keep changing your forwarding rules.

The reason that you need ot use a domain name is so that an MX record can be set up. You can't setup mx records for IP addresses. Using an IP would only work if you were using the mail server as everyones smtp server.
 
  


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
I configure NAT and use "services ..." to save it but when I reboot there is no nat bruack Linux - Software 4 09-01-2004 02:38 AM
Susefirewall2 Nat Problem / nat 1:1 trubi Linux - Distributions 0 07-20-2004 05:50 AM
sendmail - nat ISP and relaying issues jimieee Linux - Software 0 09-02-2003 11:44 AM
What's the difference between Linux-NAT and Sygate-NAT? yuzuohong Linux - Networking 0 08-07-2002 04:07 AM
Sendmail - RunAsUser=sendmail:mail/What files to i have to change ForumKid Linux - Security 45 01-18-2002 11:47 AM


All times are GMT -5. The time now is 12:29 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