On Fri, 17 Jun 2005 07:56:59 -0700 Ken A <[EMAIL PROTECTED]> wrote: > > > [EMAIL PROTECTED] wrote: > > Hello, > > > > Is it possible to use qpopper through a ssh connection ? Like: > > > > ssh my.pop.server.net /usr/sbin/in.qpopper > > no. using ssh that way doesn't give you the ability to run interactive > commands on the remote host. It would be the same for any daemon that > required an interactive session; sendmail, telnet, etc..
I give a more detailed sample of what I did at the end of the message. > If you really wanted to do this, you could create a perl script that > uses Mail::Pop3 to send the contents of a mailbox back using a single > command line like: > "ssh my.pop.server.net /usr/local/bin/getmymail.pl $user $pass $function" > Function could be something like 'delete 1' or 'list all', etc.. > You could store the passwords on the qpopper server or pass them on the > command line - either way is insecure! The script would have to handle > all possible responses from qpopper. > Not sure why this would ever be a good idea... > > Ken That is a good suggestion, maybe the script allready exists (if you know one such thing, tell it to me, please!) and maybe they are ways to solve the security issues. I would just have prefered to use directly qpopper to do it, just to be sure it have abs olutly the good behavior for clients. Have a nice day, Jean-Bernard Example (useless) of qpopper successfully used through a ssh connection truite:~> ssh ernesto /usr/sbin/in.qpopper [EMAIL PROTECTED]'s password: +OK Qpopper (version 4.0.4) at ernesto.ras.eu.org starting. <[EMAIL PROTECTED]> CAPA +OK Capability list follows TOP USER LOGIN-DELAY 0 EXPIRE 0 UIDL RESP-CODES AUTH-RESP-CODE X-MANGLE X-MACRO X-LOCALTIME Fri, 17 Jun 2005 20:42:44 +0200 IMPLEMENTATION Qpopper-version-4.0.4 . EXIT -ERR Unknown command: "exit". QUIT +OK Pop server at ernesto.ras.eu.org signing off. Example of qpopper used through a ssh connection: the PASS problem! truite:~> ssh ernesto /usr/sbin/in.qpopper [EMAIL PROTECTED]'s password: +OK Qpopper (version 4.0.4) at ernesto.ras.eu.org starting. <[EMAIL PROTECTED]> USER ***** +OK Password required for *****. PASS ***** -ERR [AUTH] PAM authentication failed for user "*****": Authentication service cannot retrieve authentication info. (9) +OK Pop server at ernesto.ras.eu.org signing off. Example of sendmail used on a remote server using a ssh connection truite:~> ssh ernesto /usr/sbin/sendmail Jean-Bernard.ADDOR [EMAIL PROTECTED]'s password: test ssh Here I used ctrl-D to terminate the connection, the message has been delivered.