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:
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