LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-14-2003, 10:45 AM   #1
peeples
Member
 
Registered: Sep 2002
Location: Wichita Falls, TX
Distribution: tried a lot of 'em, now using kubuntu
Posts: 180

Rep: Reputation: 30
Mail question -- what to use???


I have an old computer (PII-233) that I installed Slack 8.1 on and I am using it as a NAT/firewall/webserver. I have the firewall set-up exactly how I want it (everthing incoming is dropped unless on port 80); NAT is working flawlessly; Webserver is chugging along just fine, thanks. Now, I think I need something to send mail from the firewall computer across the lan to my personal Linux box. (I am about to put tripwire and portsentry on it and both need the ability to mail). Whatever I end up using for MTA, I don't want it to try to access my ISP (just mail to local machine). I have heard and read that sendmail is a bitch to configure, so, is there something else that will do what I need? What are your suggestions? The only problem I may have (but I'm not sure) is that the webserver is www.mydomain.com, and the router is router.mydomain.com, and my personal box is myhost.mydomain.com. When the mail program tries to send mail, will it first try to resolve the address through my ISP's DNS server, or can I force it to only use the local LAN for mail?

If I was unclear about this, I'm sorry.
 
Old 09-14-2003, 03:43 PM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
Use whatever mail server you'd like, I always suggest Postfix as it's far easier to use than Sendmail, easier to config, easier to setup... just an all around better application, it's more secure as well since you look like a security nut, that's probably a good point to bring up

After that, you can setup to resolve the names of your local machines in /etc/hosts so that the mail will never go outside your local network to check for email, unless it's sent to an external domain/IP not setup/resolved in /etc/hosts or any local DNS servers you have.

HTH

Cool
 
Old 09-14-2003, 04:50 PM   #3
peeples
Member
 
Registered: Sep 2002
Location: Wichita Falls, TX
Distribution: tried a lot of 'em, now using kubuntu
Posts: 180

Original Poster
Rep: Reputation: 30
Thanks. That's all that I was looking for, a suggestion. I've never had to set up a MTA, so I was unsure.

'preciate it.

Denny
 
Old 09-14-2003, 06:51 PM   #4
peeples
Member
 
Registered: Sep 2002
Location: Wichita Falls, TX
Distribution: tried a lot of 'em, now using kubuntu
Posts: 180

Original Poster
Rep: Reputation: 30
Now, I guess I have a configuration problem. My desktop system is setup to where all mail is forwarded to my user account (denny). I ssh'd into the router, after setting up postfix and mutt, and then tried to send an email from mutt to denny@debian. BTW, both computers (router and debian) have the same /etc/hosts:

127.0.0.1 localhost
192.168.1.7 router.xxx.com router
192.168.1.5 debian.xxx.com debian
192.168.1.1 lanell.xxx.com lanell

The mail is stuck somewhere on router. This is a snippet from /var/log/maillog:

Sep 14 18:35:17 router postfix/pickup[15048]: 37A80C250: uid=0 from=<root>
Sep 14 18:35:17 router postfix/cleanup[15057]: 37A80C250: message-id=<20030914233517.GA15052@xxx.com>
Sep 14 18:35:17 router postfix/qmgr[15049]: 37A80C250: from=<root@xxx.com>, size=446, nrcpt=1 (queue active)
Sep 14 18:35:17 router postfix/smtp[15059]: 37A80C250: to=<denny@debian.xxx.com>, orig_to=<denny@debian>, relay=none, delay=0, status=bounced (Name service error for name=debian.xxxf.com type=A: Host not found)
Sep 14 18:35:17 router postfix/cleanup[15057]: EF082C25B: message-id=<20030914233517.EF082C25B@router.xxx.com>
Sep 14 18:35:17 router postfix/qmgr[15049]: EF082C25B: from=<>, size=2265, nrcpt=1 (queue active)
Sep 14 18:35:18 router postfix/local[15061]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Sep 14 18:35:18 router postfix/cleanup[15057]: 507A2C250: message-id=<20030914233517.EF082C25B@router.xxx.com>
Sep 14 18:35:18 router postfix/qmgr[15049]: 507A2C250: from=<>, size=2414, nrcpt=1 (queue active)
Sep 14 18:35:18 router postfix/local[15061]: EF082C25B: to=<root@xxx.com>, relay=local, delay=1, status=sent (forwarded as 507A2C250)
Sep 14 18:35:18 router postfix/smtp[15059]: 507A2C250: to=<denny@debian.xxx.com>, orig_to=<root@xxx.com>, relay=none, delay=0, status=bounced (Name service error for name=debian.xxx.com type=A: Host not found)

The only thing that I see that MIGHT be wrong (and to honest, "hell if I know") is the third line of /var/log/maillog says "root@xxx.com", shouldn't that be "root@router.xxx.com" ?? I CAN see that the denny@debian got expanded correctly to denny@debian.xxx.com, so that's good. Whatever, the problem is, can someone help me fix this? I'll be glad to provide any more info necessary...

TIA

Denny

Last edited by peeples; 09-14-2003 at 06:56 PM.
 
Old 09-15-2003, 02:59 PM   #5
peeples
Member
 
Registered: Sep 2002
Location: Wichita Falls, TX
Distribution: tried a lot of 'em, now using kubuntu
Posts: 180

Original Poster
Rep: Reputation: 30
SOLVED

After much googling, I came to the conclusion that this is not possible to do without having a DNS server on the local net. If that is incorrect, oh well, I got it to work this way. If you have two Linux boxen on your net, say one is your router/firewall and the other is your personal desktop. If you want the firewall to be able to send the "root" emails to you at your desktop, the only way I found to accomplish this is to set-up DNS. It's a REAL PITA to do this. If anyone wants specifics they can email me : dpeeples at wfbiz dot rr dot com
 
  


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
Mail question Likosin Linux - Software 1 09-14-2005 05:41 PM
Mail question jorasmi Slackware 3 03-29-2005 02:20 AM
Mail Question cartfanatic39 Linux - General 2 10-16-2003 01:00 PM
mail question plisken Linux - General 1 04-18-2003 05:04 PM
Mail question drjimstuckinwin Linux - Networking 3 06-29-2001 06:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:29 PM.

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