On the machine you want to be the mail hub, configure
it to accept mail for your (local) domain.  On the other
machines, tell them to send all local mail to the mail
hub for delivery and to use it as a smart host also.

A quick example is in order, me thinks.  I have three
Linux machines here along with various flavors of Windows.
"hurricane" is the (internal) mail server (i.e. no direct
Internet connection).  The two other Linux machines,
"kerberos" and "earthquake" are set to send all local mail
to "hurricane", e.g.:

[EMAIL PROTECTED]:pts/0:~]$ grep ^DH /etc/mail/sendmail.cf
DHhurricane.home.lan

The three Linux machines pass off any mail to "hurricane",
where it is stored.  "hurricane" uses "kerberos" as a smart
host, since it's the only machine directly connected to the
Internet, e.g.:

[EMAIL PROTECTED]:pts/0:~]$ grep ^DS /etc/mail/sendmail.cf
DSkerberos.home.lan

"kerberos" then uses my ISP's mail server as it's smart host,
and lets it deal with the task of getting the mail to its final
destination, e.g.:

[EMAIL PROTECTED]:pts/0:~]$ grep ^DS /etc/mail/sendmail.cf
DSmoseisley.blueriver.net

To illustrate this a bit, all my e-mail is stored on my ISP's
mail server.  When I dialup (on "kerberos", the machine with
the modem), fetchmail is started and grabs my mail roughly
every 300 seconds.  fetchmail hands it off to sendmail on
"kerberos" which has been told to send all local e-mail to
"hurricane" for delivery.  "kerberos" then contacts "hurricane"
and gives it the message, which is then passed to procmail which
filters it and puts it into its appropriate place under
/home/jeremy/Mail/.  When I'm done typing this message and hit
"Send", the machine I'm sitting at "tremor" will send it to
"hurricane" (my internal mail server, remember?) which will see
that it's a "non-local" email and pass it off to "kerberos",
who in turn, will give it to my ISP.  (Take a look at the mail
headers.)  See, easy?  :)

This keeps all the e-mail centralized in one place.  As far
as reading e-mail goes, I use a variety of clients depending
on where I'm at.  If I'm here at home, it's usually Outlook.
If I'm logged into the mail server itself, I'll use mutt.  If
I'm on one of the other Linux machines, I'll use Pine (configured
for IMAP).  If I'm somewhere else, I can use one of the webmail
systems I have set up.

To summarize, keep all your e-mail situated on one server and
use mail clients that support IMAP.  Store your e-mail on the
server instead of the client, and your life will be lots easier.

This ended up longer than I expected, but hopefully it'll help
you out.  It's not hard to set up, but when it is, it makes your
life alot easier.  :)

j.

--
Jeremy L. Gaddis     <[EMAIL PROTECTED]>

-----Original Message-----
From: Jay Latham [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 18, 2001 1:36 PM
To: debian-user@lists.debian.org
Subject: Sendmail newbie question


I have three computers in my home. I use one as a router to masq
the other two to the internet. I would also like to use this one
as the mail hub. There is only one user for the three boxes.
What I would like to do is to be able to read my mail from any
box but still save it on the hub. So that if I want to refer to
a saved msg from a different box I can get to it.

The router is running debian 2.2r3 using
fetchmail-sendmail-procmail-mutt to deal with mail. The way it
is currently set up I have to read and send all mail from this
box. The other 2 boxes are using progeny-debian. I went this
route primarily because of the ease of X configuration with
progeny. They also have the same mail pkgs installed. So, my
question is, how can I set the network up to be able to
send/read mail from any box but store all mail on the hub?

Thanks,

Jay Latham

Beer is proof God loves us and
wants us to be happy!

            Benjamin Franklin


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact
[EMAIL PROTECTED]

Reply via email to