|
|
Send mail from outside a firewalll via Mail.app
What a cool way of doing this. I was just trying to figure this out yesterday.. shoudl have waited a day. :) Just tested this.. and it does work. I modified it slightly though.
Insted of using my normal ssh keys, I created a new key with no passphrase. When I put the entry in the .ssh/authorized_keys2 file I gave it the nc command. Here's the entry: command="/usr/local/bin/nc 127.0.0.1 25",no-port-forwarding,no-X11-forwarding,no-agent-forwarding ssh-rsa KEYThen.. I changed the inetd line to: snet_sm stream tcp nowait tomn /usr/libexec/tcpd /usr/bin/ssh -T -q -l tomn -i /Users/tomn/.ssh/id_snet_email pluto.sneaky.netThis allows that key to ONLY run "nc localhost 25". Now, I'm setting up the rest of my tunnels. I am also going to use this to forward to our internal IMAP server. (Which doesn't have IMAP-SSL enabled.)
neet
That is a nice tip too thanks, but if you cared enough to have a pasword on your ssh-private keys, wouldn't you just be using ssh-agent? I don't care what any sysadmin says about autoomated logins, the least secure thing in the world is for me to continually be typing my passphrase into scp/ssh sesssions right in front of students. Sure, the passphrase is only good on that one machine, but it gives out a lot of general information about what my passphrases look like. No pasephrase is possibly more secure.. and ssh-agent is obviously the "only right way."
On using other daemons
I'm using it for IMAP too (as my looser ass mail server does not support IMAP), but I did not bother to post those tips as I figured very few peoplee were in that situation. I noticed that just imapd does not appear to have an configuration options at all, which massively sucks. Mail.app needs to tell it to lok in the Mail directory for additional folders, as it defaults to my frigging home directory! I'm sure there are ways to configure it, but they do not appear to bee advertised anyplace. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:Hints1 new Hints in the last 24 hoursComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.05 seconds |
|