On Mon, 2010-07-12 at 18:42 +0300, Felipe Contreras wrote:
> Anyway, how would I access mail through SSH? 'ssh $mailserver dovecot
> --exec-mail imap' is to start the remote mail server, isn't it?

No, it gives you an IMAP prompt directly. Your mail client runs the
command and uses its stdin/stdout instead of making a TCP connection to
a listening IMAP dæmon...

 $ ssh twosheds exec dovecot --exec-mail imap
* PREAUTH [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE SORT 
SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT IDLE CHILDREN 
NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT 
SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS] Logged in as dwmw2

(Almost) all decent mail clients support this method of access; how you
configure it varies. In Evolution it's under the 'receiving options'
tab, called "Use custom command to connect to server". In Alpine it's
rsh-command and rsh-path. In mutt I think it's the 'tunnel' option.

> I can do some socat tricks to access SSH servers, but I haven't tried
> other ports.

You don't need other ports; just ssh.

-- 
dwmw2

_______________________________________________
MeeGo-dev mailing list
[email protected]
http://lists.meego.com/listinfo/meego-dev

Reply via email to