LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-05-2005, 08:44 PM   #1
ehegagoka
Member
 
Registered: Jun 2005
Distribution: Slackware
Posts: 68

Rep: Reputation: 15
StandAlone Mail Server


Hi!

I'm reading about sending emails. Is it possible to setup a mail server without an internet connection? I mean If I have a standalone pc, can I make it as the pop3/smtp which would make my emails just inside it?
Thank you so much again!!!

Ryan
 
Old 09-05-2005, 08:59 PM   #2
ralvez
Member
 
Registered: Oct 2003
Location: Canada
Distribution: ArchLinux && Slackware 10.1
Posts: 298

Rep: Reputation: 30
Yes, you can. It would work as an intra net mail system.
 
Old 09-05-2005, 09:04 PM   #3
ehegagoka
Member
 
Registered: Jun 2005
Distribution: Slackware
Posts: 68

Original Poster
Rep: Reputation: 15
Hi!


Thank you so much for the fast reply, how can I do that? any keywords? Thanks in advance!

Ryan
 
Old 09-05-2005, 09:12 PM   #4
ehegagoka
Member
 
Registered: Jun 2005
Distribution: Slackware
Posts: 68

Original Poster
Rep: Reputation: 15
Hi!


I've check some howtos on intranet, havent found about mail server. I dont have internet connection at home. It's a just one pc, with Slackware 9.0 setup on it. Thank you so much again!


Ryan
 
Old 09-06-2005, 04:44 PM   #5
ralvez
Member
 
Registered: Oct 2003
Location: Canada
Distribution: ArchLinux && Slackware 10.1
Posts: 298

Rep: Reputation: 30
Ok. If there is only one machine it does not make sense to set up e-mail. How are you going to e-mail ? Yourself?
You may want to "play" with the setup of an smpt server and if that is the case then take a look at "sendmail" it's one of the most popular and you should find no troubles locating information about it.

Hope this helps.

Rick
 
Old 09-06-2005, 05:03 PM   #6
killerbob
Member
 
Registered: Oct 2004
Location: Ottawa, ON
Distribution: Slackware
Posts: 662

Rep: Reputation: 31
ralvez... it's possible that he's administering a network with several users, and wants to use e-mail to keep in touch with them. Possibly a school network, or an office network, or maybe even a home network: there's 5 users on my home network and e-mail really is the easiest way to keep in touch with everybody and make sure a message gets delivered.

On to the matter at hand....


Quote:
Originally posted by ehegagoka
Hi!


I've check some howtos on intranet, havent found about mail server. I dont have internet connection at home. It's a just one pc, with Slackware 9.0 setup on it. Thank you so much again!


Ryan
Just set it up as though it were a normal network. With the current version of SendMail (you should really consider upgrading your sendmail from -current, even if nothing else), just edit /etc/mail/local-host-names and add a line for your internal network line. Plain text is fine, and one domain per line.

Something like this is fine:
Code:
local
mydomain.foo
Restart sendmail, and it'll accept mail on "mydomain.foo". When you want to send an e-mail on your local network, send it to user@mydomain.foo, and make sure that your DNS points the MX for "mydomain.foo" to the appropriate server. edit: I should add that your outgoing SMTP server should also be able to access this server. If you follow my advice below, there's no reason your outgoing SMTP server can't be the box you're setting up as mydomain.foo, though.

Incidentally, it doesn't actually matter if that server can access the Internet. If it's behind a firewall but can tunnel out, that's actually a better idea. Run one mail server, and any mail addressed locally gets routed to local users. Any mail that's addressed outside the network can go through that server and will arrive at its intended destination. Assuming your ISP isn't filtering port 25, that is.

The easiest way to add users to that set up is to SSH into the mailserver box, and add them with "adduser". Oh, and you may want to set up IMAP (should just be a matter of uncommenting a line in inetd.conf) so that users can store their mail on the server and access from more than one computer.


gl
-bob

Last edited by killerbob; 09-06-2005 at 05:05 PM.
 
Old 09-06-2005, 05:16 PM   #7
ralvez
Member
 
Registered: Oct 2003
Location: Canada
Distribution: ArchLinux && Slackware 10.1
Posts: 298

Rep: Reputation: 30
killerbob,

I do not think he is on a network, if you notice he says: I dont have internet connection at home. It's a just one pc, with Slackware 9.0 setup on it.
Nevertheless, I think that what you tell here can give him a better perspective on the use of an smtp.

Rick
 
Old 09-06-2005, 08:20 PM   #8
killerbob
Member
 
Registered: Oct 2004
Location: Ottawa, ON
Distribution: Slackware
Posts: 662

Rep: Reputation: 31
The Internet is just a network of networks... but the place where I work, there's actually two networks that are 100% separate. (separate cabling, separate routers/hubs, separate servers, and absolutely no way to access one network from the other). One has absolutely no connection to the Internet, but does have e-mail services. The other has Internet access. Very few employees have access to both networks, and nobody has access to both networks at the same time.

It is entirely possible to have a network that doesn't have Internet access. If you're dealing with information that, for any number of reasons, should be kept secure, then an unconnected network isn't just possible, it's a good idea. No way for a hacker to break into the network if there's simply no way into or out of the network at all.
 
Old 09-07-2005, 01:20 AM   #9
ehegagoka
Member
 
Registered: Jun 2005
Distribution: Slackware
Posts: 68

Original Poster
Rep: Reputation: 15
Hi!
Thank you so much for all the replies. I'll try also sendmail. Yes I only have one pc at home. The idea is that I can send email & it will just return back to me. You see Sir I'm currently creating programs based ong JavaMail API, and I need a mail server, but I only have one pc at home, with no internet connection or any network. I'm thinking that if its possible to setup a mail server that just listens to itself. I've been ask to used:
JAMES => http://james.apache.org/

Im still studying over it if it will be able what I'm planning. I hope I've explained it well Sir. Thank you very much again!!!


Ryan
 
Old 09-08-2005, 09:35 AM   #10
Fritz_Monroe
Member
 
Registered: Nov 2004
Location: Maryland, USA
Distribution: Mint 13
Posts: 276

Rep: Reputation: 31
You can take a look at Shilo's take on e-mail. I used this to get my home network set up.

F_M
 
  


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
Running a standalone server on startup? critical Linux - Software 5 08-03-2005 05:06 PM
looking for CUPS standalone print server lopette Linux - Networking 6 02-28-2005 02:23 AM
set up a standalone server skippuff54 Linux - Networking 12 07-20-2004 03:26 PM
Standalone Samba server from an NT domain dnar Linux - Networking 3 02-24-2003 02:51 AM
Should I run samba server from xinetd or standalone? system Linux - Networking 0 12-19-2001 07:54 AM

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

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