dunno about anyone else, but passwords in plaintext in my .fetchmailrc
have always bothered me. i just noticed a few weeks ago how to avoid
them. thought i'd mention it if people didn't know:
all you do is this:
poll inle with proto imap and preauth ssh:
plugin "ssh %h /usr/sbin/imapd"
preconnect "/home/kevin/bin/herep inle"
the preconnect command is run and if it returns 0, it tries to connect.
in this case, the herep script checks that ssh-agent is accessible (ie
i'm currently logged in) and that inle is accessible where i am (this is
a laptop so it moves among different networks. it does this by running
the plugin command. in this case it uses ssh to run the imapd daemon
on the mail server. imapd doesn't need a password sent to it if it is
run by a user (and ssh is auth'd via ssh-agent).
anyway, might be handy.
kevin
--
kevin at suberic.net buffy: come on, can't you put your foot down?!
fork()'ed on 37058400 giles: it *is* down.
meatspace place: orbit buffy: one of these days you're going to have to
http://suberic.net/~kevin get a grown up car. --inca mummy girl
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!