site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Aor57x+BMewV7hG4r5xebJ9V4uKEd9Ltt6hfP+ikF7PaaM/0kX9m7NiDRPnMIDD4B2IGszY3NvTgZ6ShbA/MoQ4iZKPMPRT8rAR3oq+jqDs6dPm3NxxJrd8GJwf4qvaFmVoRQk61PKsGnamkyo2/MvIYg0v/WWsLjOr1snNJsOI= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=qlLI2WE+DqUjIJstm5W6nb36lp9Cz7pN0iNQJFTmkjkTAXRQdTdPp5TKP+jd6w6URakpazD6C5ZYuEp171gJT0uEHJbKmWpyzvUii9ZJcJ+rDuviPZ43iH3Bz5cY82Kt7vzjmgBCICgkWd0/2V5pEmxoECaXErMrkHp0V2HlLYg= On 13/apr/07, at 22:01, James Peach wrote:
On 13/04/07, Nicola Vitacolonna <vitacolo@dimi.uniud.it> wrote:
Hi, I use to read email through an ssh tunnel and I want to turn the task into an on-demand launchd user agent. So far, I have come out with the following, "nearly working", solution: <snip> I have a couple of problems, though:
Ar you sure that ssh isn't prompting? Yes, pretty sure. I have tried from the Terminal.
Remove the RunAtLoad key? It should not make any difference: RunAtLoad is false by default. I use this with Mail.app, and it works just fine: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key> <string>my.mail.service</string> <key>Program</key> <string>/usr/bin/ssh</string> <key>ProgramArguments</key> <array> <string>/usr/bin/ssh</string> <string>-L</string> <string>9025:mailserver:25</string> <string>jpeach@mailserver</string> <string>imapd</string>
yes I tunnel mail through ssh directly to imapd on the remote system where I have a shell account. the remote system only allows ssh access.
</array> <key>inetdCompatibility</key> <dict> <key>Wait</key> <false/> </dict> <key>Sockets</key> <dict> <key>Listeners</key> <dict> <key>SockNodeName</key> <string>localhost</string> <key>SockServiceName</key> <integer>9220</integer>
9025 is for outgoing mail (smtp) , 9220 is for incoming mail (imap). This connects my local port 9220 directly to imapd's stdin via ssh.
<key>SockType</key> <string>stream</string> <key>SockFamily</key> <string>IPv4</string> </dict> </dict> <key>Debug</key> <true/>
and yet it works :) -- James Peach | jorgar@gmail.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... On 18/04/07, Nicola Vitacolonna <vitacolo@dimi.uniud.it> wrote: Have you set up a passwordless account? Why are you executing imapd? This is not the same port as the tunnel's port (9025). Your solution does not seem correct. This email sent to site_archiver@lists.apple.com