Has anyone successfully tunneled IMAP and SMTP from Mac's Mail.app through an HTTP proxy to a remote host and onto Gmail?
I desire this setup so I can use Mail.app, FaceTime and Messenger Apps while behind a firewall. So far, I've been able to tunnel the IMAP connection, however SMTP isn't working. I used Wireshark and it looks like Mail.app isn't accessing standard smtp.gmail.com and is using some IPv6 addressing.
My setup so far is...
Home Mac:
Remote system behind firewall:
I tested using 'telnet localhost 993' and 'telnet localhost 587' and validated that IMAP and SMTP are correctly tunneled by viewing output of the session. Unfortunately, when sending SMTP mail, a connection can't be established and Wireshark doesn't see any activity on port 587 for localhost. I noticed other activity on 587, however for an IPv6 address.
Appreciate any insight folks may have here on making this work. I'd like to do it for the FaceTime and iMessenger ports as well.
Thanks so much!
I desire this setup so I can use Mail.app, FaceTime and Messenger Apps while behind a firewall. So far, I've been able to tunnel the IMAP connection, however SMTP isn't working. I used Wireshark and it looks like Mail.app isn't accessing standard smtp.gmail.com and is using some IPv6 addressing.
My setup so far is...
Home Mac:
- ddns.net publishing dynamic IP
- sshd enabled and port forwarded via router
Remote system behind firewall:
- sudo ./ptunnel.py -d -p www-proxy.company.com:80 993:imap.gmail.com:993 587:smtp.gmail.com:587 25:smtp.gmail.com:25
- /etc/hosts as follows
imap.gmail.com localhost
smtp.gmail.com localhost
I tested using 'telnet localhost 993' and 'telnet localhost 587' and validated that IMAP and SMTP are correctly tunneled by viewing output of the session. Unfortunately, when sending SMTP mail, a connection can't be established and Wireshark doesn't see any activity on port 587 for localhost. I noticed other activity on 587, however for an IPv6 address.
Appreciate any insight folks may have here on making this work. I'd like to do it for the FaceTime and iMessenger ports as well.
Thanks so much!