[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Fetchmail + Exim + Other system



On Fri, Jun 22, 2001 at 08:07:40PM -0400, Andrew Overholt wrote:
> How can I make it forward to my local machine if I'm on a dialup account?

Oh, I assumed wrong.  

You can setup a script on the solaris machine that safely flushes your mail
spoolfile to a place in your homedirectory, probably best done using tools
installed on the solaris machine already.  Maybe also gzip it.  Finally,
the script "cat"'s the file to stdout and deletes it (or something more
robust than that, so you have less risk of losing mail due to mistakes).

solaris:~/bin/catmail:

  #!/bin/sh
  $safe_flush > $stash
  gzip -c $stash
  $safe_rm $stash

At home, you dial in and run a script that runs a ssh command on the
solaris machine at school, the script described above.  The output of
this ssh command is redirected by the script at home into a file and
unzipped, which also gives a free cheap transport integrity check.

linux:~/bin/getmail:

  #!/bin/sh
  ssh -q you@solaris '~/bin/catmail' > $localfile
  gunzip $localfile
  
This should let you read the file as a folder with a mail client, or
pipe it into procmail or formail.

Cheers,


Joost



Reply to: