Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Synchronizing emails data.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
barlad
l33t
l33t


Joined: 22 Feb 2003
Posts: 673

PostPosted: Thu Jun 03, 2004 7:05 pm    Post subject: Synchronizing emails data. Reply with quote

Hey all,

here is the deal: I have a laptop and a PC. At any given time I want to be able to synchronize the mail data of my PC and my laptop. That is to say, I want to be able to have the same emails on both computers.
If I receive, send and delete some emails on my laptop while I am traveling, I would like to be able to come back home and make sure I get those same emails on my PC just by typing a command. The updates would take place when my laptop and my PC are on the same LAN.


I am using Maildir format on both computers (well I think that's maildir.. it's default's thunderbird format). I am thinking about using rsync at the moment but I have no clue whether or not that is a good solution. Do you have anything to recommend?

Naturally, I would like it to be as secure as possible.
Back to top
View user's profile Send private message
needles
n00b
n00b


Joined: 27 Feb 2003
Posts: 31
Location: Downingtown, Pennsylvania - USA

PostPosted: Thu Jun 03, 2004 8:01 pm    Post subject: Unison Reply with quote

It's a package that uses a technique similar to rsync, but it works both ways. (Changes on laptop are sent to desktop and vice versa.) Rsync works well when you have one place that has a definitive version of all the files involved, and you want to keep other places up to date with that repository. It isn't really designed to deal with both sides making changes to the files, whereas unison handles this quite nicely.
Code:
emerge -s unison

for more info.

Similar to rsync or CVS, unison can be made to work over ssh, with no more than the usual hassle. (Usually all one needs to do is provide unison with an ssh:// URL for it's "root". (see the docs for further information.))
Back to top
View user's profile Send private message
jimcooncat.
n00b
n00b


Joined: 25 Mar 2004
Posts: 21

PostPosted: Thu Jun 03, 2004 8:04 pm    Post subject: Reply with quote

I'm thinking IMAP (over ssh if you like). Might save you a step, like remembering to rsync before unplugging the laptop from the net.

Not using these technologies yet, so I guess I'm just a n00b.
_________________
— JimCooncat
Fly-by-Night Operations Empowerment Advocate
Back to top
View user's profile Send private message
barlad
l33t
l33t


Joined: 22 Feb 2003
Posts: 673

PostPosted: Thu Jun 03, 2004 9:33 pm    Post subject: Reply with quote

Thanks. Looks like unisson is exactly what I want.
Back to top
View user's profile Send private message
Derringer
n00b
n00b


Joined: 06 Jan 2004
Posts: 53
Location: Detroit, MI

PostPosted: Fri Jun 04, 2004 2:11 am    Post subject: Reply with quote

An IMAP implementation on the server end would save you some hassle, assuming you have the ability to do so.

Courier IMAP, if you check it out, stores mail locally so changes are made on the server and any client you might use (including any in addition to the two you mention) would give you a uniform mail interface and mailboxes.
Back to top
View user's profile Send private message
barlad
l33t
l33t


Joined: 22 Feb 2003
Posts: 673

PostPosted: Fri Jun 04, 2004 6:44 am    Post subject: Reply with quote

IMAP would not really work for me. In my case I only have clients, I don't have access to the mail servers. I guess I could set up my own private mail server that would collect all the mails from my "public" mail servers but that would be way too complicated and I don't want to add any potentially vulnerable service to my main PC.

Unisson just looks great ;)
Back to top
View user's profile Send private message
davidblewett
Apprentice
Apprentice


Joined: 15 Feb 2004
Posts: 274
Location: Indiana

PostPosted: Fri Jun 04, 2004 4:24 pm    Post subject: Reply with quote

It was a hassle, but I finally got things set up on my server at home. I use Courier and fetchmail. Fetchmail gets all of the mail from the public servers, then distributes it to the system accounts. I can then connect from the internal LAN to Courier and view the mail. Most email programs have an offline feature, where it will store certain messages/folders on the hard drive of the local machine.

In order to access the server from outside of the LAN, I first SSH into the gateway. I can then use SSH's port forwarding to send all IMAP requests from the local machine to Courier on the gateway. I have the same setup for SMTP and also use Squid for HTTP. Works a treat, now.
_________________
No guilt in life, no fear in death
this is the power of Christ in me
From life’s first cry to final breath
Jesus commands my destiny
-- Newsboys, "In Christ Alone", "Adoration: The Worship Album"
Back to top
View user's profile Send private message
jimcooncat.
n00b
n00b


Joined: 25 Mar 2004
Posts: 21

PostPosted: Sun Jun 13, 2004 9:06 am    Post subject: Reply with quote

Congradulations! It is a hassle to set up an email server the first time, but now you have the skills under your belt. I can foresee a future that people who don't take control over their email will be barraged by so much crap that the medium will be unusable to them.
_________________
— JimCooncat
Fly-by-Night Operations Empowerment Advocate
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum