Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Get mails from remote machine via SSH
@ 2012-08-22 12:35 .
  2012-08-23 14:56 ` William Gardella
       [not found] ` <mailman.7474.1345733928.855.info-gnus-english@gnu.org>
  0 siblings, 2 replies; 3+ messages in thread
From: . @ 2012-08-22 12:35 UTC (permalink / raw)
  To: info-gnus-english

Hello,

My server-side setup can be found here [1].

I'd like to read/write mail from another machine (it doesn't have a
public ip). I'd also like to store it there.

I found this guide [2] (SSH / getmail part). I tried to use it but it
didn't work out.
Could you help me? (I'm not familiar with sh.)

How to automatically delete all mails from the server after the
mentioned SSH-sync?

[1] https://groups.google.com/group/gnu.emacs.gnus/browse_thread/thread/013fd87d1f1238ac
[2] http://www.gnu.org/software/emacs/manual/html_node/gnus/Mail-Source-Specifiers.html#Mail-Source-Specifiers

Thanks

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Get mails from remote machine via SSH
  2012-08-22 12:35 Get mails from remote machine via SSH .
@ 2012-08-23 14:56 ` William Gardella
       [not found] ` <mailman.7474.1345733928.855.info-gnus-english@gnu.org>
  1 sibling, 0 replies; 3+ messages in thread
From: William Gardella @ 2012-08-23 14:56 UTC (permalink / raw)
  To: info-gnus-english-mXXj517/zsQ

Hello again!

"." <nkwerk-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> Hello,
>
> My server-side setup can be found here [1].
>
> I'd like to read/write mail from another machine (it doesn't have a
> public ip). I'd also like to store it there.
>
> I found this guide [2] (SSH / getmail part). I tried to use it but it
> didn't work out.
> Could you help me? (I'm not familiar with sh.)
>
> How to automatically delete all mails from the server after the
> mentioned SSH-sync?
>
> [1] https://groups.google.com/group/gnu.emacs.gnus/browse_thread/thread/013fd87d1f1238ac
> [2] http://www.gnu.org/software/emacs/manual/html_node/gnus/Mail-Source-Specifiers.html#Mail-Source-Specifiers

I see that you are already using a Maildir setup on your server, so
perhaps a simpler option than this rather involved getmail/movemail stuff
would simply be to sync the Maildirs from one system to the other, using
rsync or scp.  If you intend Gnus to be your MUA on the client machine,
you even have the option of setting up a maildir source using a remote
TRAMP-style filename as the target, e.g. `/ssh:user@host:Maildir'.
However, syncing the Maildirs in the background, outside of Gnus, will
probably yield better performance.  If your client has public-key
authentication without a passphrase to the server, you can set up the
maildir-syncing script as a cron job.  The script could also include
some command to clear out the server-side Maildir, but personally I
think that is a bad idea unless there is some special reason for it.

For sending, you could use a relay-only MTA such as msmtp, nullmailer,
etc. on the client machine, and set up an SSH tunnel to the server's
mail submission port, thus avoiding the security/authentication problems
of SMTP.

Since you already have an Emacs going on your server, I should also note
the easy, lazy, no-hassle option: use the emacsclient functionality.
With the Emacs server features enabled--by evaluating (server-start) or
starting Emacs with `emacs --daemon'--you can easily access your
server's Emacs instance from anywhere over SSH.  Try `ssh -t emacsclient
-c' to get a TTY emacsclient frame on your client box, or `ssh -Xt
emacsclient -c' to get a GUI emacsclient frame via SSH X forwarding.  If
you have an always-on server at your disposal, this is a perfectly sane
and pleasant way to use Emacs programs that you want to persist on the
network for a long period of time, such as mailclients or IRC clients.

-- 
I use grml (http://grml.org/)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Get mails from remote machine via SSH
       [not found] ` <mailman.7474.1345733928.855.info-gnus-english@gnu.org>
@ 2012-08-27 15:48   ` .
  0 siblings, 0 replies; 3+ messages in thread
From: . @ 2012-08-27 15:48 UTC (permalink / raw)
  To: info-gnus-english

> If you intend Gnus to be your MUA on the client machine,
> you even have the option of setting up a maildir source using a remote
> TRAMP-style filename as the target, e.g. `/ssh:user@host:Maildir'.

Could you provide a full command (including Emacs Lisp code)?

> However, syncing the Maildirs in the background, outside of Gnus, will
> probably yield better performance.  If your client has public-key
> authentication without a passphrase to the server, you can set up the
> maildir-syncing script as a cron job.

It uses a passphrase.

> The script could also include
> some command to clear out the server-side Maildir, but personally I
> think that is a bad idea unless there is some special reason for it.

Is there a way to do it from Gnus?

> For sending, you could use a relay-only MTA such as msmtp, nullmailer,
> etc. on the client machine, and set up an SSH tunnel to the server's
> mail submission port, thus avoiding the security/authentication problems
> of SMTP.

Could you provide more details (or links)?

Thanks

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-08-27 15:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-22 12:35 Get mails from remote machine via SSH .
2012-08-23 14:56 ` William Gardella
     [not found] ` <mailman.7474.1345733928.855.info-gnus-english@gnu.org>
2012-08-27 15:48   ` .

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).