Tunneling for Mail

Hi Everyone,
I'm down at school now and they have closed almost every port except the typical HTTP ports and telnet and ftp and so on. What's really killing me is they've closed the POP, IMAP, and SMTP ports as well causing my Mail.app not to work.
What I'm wondering is has anyone on here found an easy and effective way to tunnel POP, IMAP, and SMTP through say port 8080 to be able to connect Mailboxes in Mail.
I'm pretty new to networking and there's a lot I don't understand so if there's an easy freeware or you can explain commandline how to do it that would be awesome. I'm dying to get my mail back.
Thanks in advance,
John

Does your school permit secure shell access? If so, here is what you do:
In Terminal.app, create or edit your .bashrc, .bash_login, .tcshrc, .zshrc, and/or .bash_profile, .profile files, whichever you have with names that look like this. To figure out which you have, type
ls -a
Then type
pico {whateverFileNameIsAppropriateGoesHere}
The pico editor is a bare-bones editor, you use the arrow key (or control-v or control-y, as shown at the bottom of the window, to page) to maneuver around in the file. Add a new line that reads
alias myemail='ssh -l {yourSchoolAcctUserName} -L 1143:127.0.0.1:143 -L 1125:127.0.0.1:25 {yourSchoolsEmailServerHostName}.edu'
making the appropriate substitutions for the crap in the brackets. This lengthy command must be on one single line in the .bashrc (or whatever) file, with no line wraps. The single-tick quotes are important, too. Do a control-x, answer y, and press return to save/overwrite the new version. What you have done is just created a unix command shortcut so you don't have to type all that crap out longhand when you need to use it.
If your school account has you secure shelling onto a different host than your email servers, that above shortcut has to be modified a little bit. I'd have to check into the syntax coz' I don't remember it off the top of my head, but your school's IT guy should be able to help you (find somebody that knows something, not the usual clueless students at the helpless desk).
Also, I specified 1143/143 in the above example if your email, inside their network, uses imap; use something like 1110/110 if it is pop. They probably aren't using SSL inside their network, which would be a different set of port numbers still.
If they use SSL inside their network, you would use port 993 for imap and 995 for pop, so I'd use something like 1993:127.0.0.1:993 for imaps or 1995:127.0.0.1:995 for pops.
Now, go into your Mail.app's preferences and specify your incoming imap (or pop) mail server to be 127.0.0.1, using port 1143 (for imap, or 1110 for pop, or 1993 for imaps, or 1995 for pops) for your school account. Do the same thing for your outgoing smtp server, specifying the outgoing smtp server to be 127.0.0.1 and port to be 1125. And of course you'd need to make sure the SSL box was checked for outgoing port 1125 if they are using SSL.
What you will do now is that the next time you launch a new Terminal window, and type "email" you will launch a secure shell telnet session into your school's server and you will have set up port tunneling so that any traffic your computer creates on port 1125 or sees as incoming on port 1143 (or 1110 or 1993 or 1995) will be automagically forwarded to/from your school's ssh server, and to/from their email server. Since it is piggybacked onto ssh protocol, it is all encrypted and secure and it spews out inside their network. So, after launching Terminal and typing the homebrew command myemail and successfully logging into their secure shell server, you will be able to launch Mail.app and send and receive mail. When done with mail, first quit mail, then type exit in Terminal, to end the ssh session,
Hope this makes sense, if you try it and it doesn't work, post back and I'll try to help you one step at a time. Of course, the first thing to do is confirm that your school allows secure shell access.

Similar Messages

  • Simple question; Mac Server Setup for Mail, iCal and Address Book Services.

    Hi Guys;
    I'm new to the Mac Server world and need a few questions answered.
    I have purchased a new Mac mini Server for hosting File, Web, Mail, iCal and Address Book Services.
    I’m comfortable setting up File and Web Services however I’m a bit uneasy setting up Mail, iCal and Address Book services to be access locally and remotely(via the internet).
    My current setup is;
    Internet connection (Dynamic IP) -> Router -> Mac mini Server.
    I have purchased a domain name (Thornton-net.com) from DynDns.com + a custom DNS service as I can setup my router to update my domain’s IP address automatically.
    I can access File and Web Services remotely (thortnon-net.com) perfectly without any issues via the Port Forwarding feature of the Router.
    If I setup Mail, iCal and Address Book Services -> will Mail, iCal and Address Book clients be able to access these services hosted by the server via Thornton-net.com?
    Message was edited by: Allan.Thornton

    Welcome to the forums.
    For mail services (and specifically for your outbound mail to be accepted by other mail servers) your mail server needs to have a static IP address and matching forward and reverse and MX records, or a tunnel to a static IP (with matching DNS), or you need another mail server where you have an authorized relay. Without that, your mail will be considered a spam engine, and dropped.
    Additionally, your particular tier of service with your ISP (with a static IP) will generally allow server-oriented access and server-oriented network traffic, where a residential or other tier of service (with a dynamic IP addresses) can be firewalled.
    The ISP controls the "high ground" of the network connections here, so you pretty much get to play by their rules and requirements. If they don't offer static IP, then (presuming their T&Cs permit it) you get to tunnel (via IPv6, for instance) to a tunnel broker, and receive your network traffic via that (and with matching DNS) point of presence. That could well be a tunnel for your mail at whichever your DNS provider is here, because you'll have issues with your dynamic address. (You get to sort out if they offer that.)
    Far and away the easiest approach (if you want to host this stuff yourself) is to work with the ISP. They're inherently involved in your network, and they and they alone have full control over your reverse DNS configuration.

  • How to set proxy for mail with Gmail account

    Hi, I'm using mail and set up a Gmail pop account. My mac is behind a proxy, say 192.168.0.1:808. I set the system http and https with the above address and can browse the internet with safari. But the mail app cannot receive or send any mails from the google pop/smtp server. Do you know how I can set the proxy for mail so that it can send and receive mail? Thank you very much!

    I solved this problem myself by using an app called proxifier. It's a tunneling tool I guess.

  • DNS configuration behind a router for Mail Services

    I am in the beginning stages of trying to set-up a test ground for a local mail server. I am playing with OS X servers DNS functions. I am new to DNS and am having slight trouble.
    What I want to do is have OS X DNS point to another server that is on my nat for mail exchange (it is a suse linux box running kerio).
    My current set-up is:
    internet --> Router for internal NAT --> OS X server is behind this nat on an IP of 10.100.251.10, the suse box is on 10.100.251.11
    I have set-up a primary zone: ns1.domain_x.com with a server IP being that of my internet static IP (supplied by my ISP).
    I have opened the necessary ports on my router (53) to point to the os x server box for DNS serving.
    My problem is.. I need to setup a mail exchange (mail.domain_x.com) record that points to the 10.100.251.11 box.
    When I do this and the global DNS servers update, a host lookup will point mail.domain_x.com to 10.100.251.11
    Which obviously is not right.
    am i missing a concept here?
    the dns server and the mail exchange I want to run are being running on the same Internet IP address, just behind a nat that the os x server is not controlling.
    any suggestion would be appreciated.. TIA

    The MX data/pointers is only needed for server to server mail exchange so that is no problem.
    (If the DNS and the mailserver are supposed to use the same public IP but run on different NATed IPs/machines you forward the traffic to the different NATed IPs based on portnumbers in your Internet router/firewall.)
    The problem I think is the mailserver finding itself on the right IP for the public IP domainname.
    I guess the easiest way to do it would be to have two DNS machines: one for public and one for private IPs.
    The private IP DNS would serve the mailserver and the internal NATed network, if you are using the same domainname internally.
    Or (as the one with the public IP data is NATed), maybe BIND views can be used to serve different zonefiles for the same domainname depending on wether the DNS lookups comes from Internet and/or the NAT router gw LAN IP or if they come from any other NATed LAN IP.
    Or maybe having only a hostfile with the private address for the same domainname would suffice on the mailserver and also using the ISP's DNSes for finding other public IP mailservers on it.
    That wouldn't fix finding the mailserver (using the same domainname) from other machines on the NATed LAN though.

  • Set up secondary DNS for mail?

    When I first configured my server using the advance setup, I successfully setup my DNS services using a domain name for the primary zone that is not a registered domain. I have no intention of ever using the domain name I use internally on the net.
    I usually host my mail services with third-party hosting company and just use my server for file and print services. However, I recently purchased a new domain name and have considered using the mail services to host the domain. My question is:
    Do I need to setup a secondary zone for this domain, or should I start over and reconfigure my server? I had read that once you configure your primary DNS, it is hard to go back and reconfigure it.
    Also, once I have the DNS properly configured, it is my understanding that I'll just need to point the MX records at my hosting company towards my server to make it work, correct?

    If you're just looking for mail then there's no need to start from scratch - you can just tell the mail server to accept mail for your new domain in addition to the existing domain.
    Before you do this, though, make sure you have a) a static IP address and b) working reverse DNS for your IP address. If you don't have this then remote mail servers may not accept your mail since you look like a spammer.
    Apart from that, once you setup postfix to accept mail for your new domain then, yes, all you need to do is change your MX records.

  • How to have multiple preference files for Mail on one computer

    I would like to have multiple preference files for Mail on one computer, one copy for each person in the organization. I want everybody to log in as the same user. Is this possible?
    Thanks,
    John Link
    Cube, 450 MHz, 640 MB   Mac OS X (10.3.9)  

    Since the Mail.app preference file (along with all other application preference files for a user account) is stored in that user's Home folder/directory, I don't believe this is possible.

  • How best do I leave Gmail for Mail?

    I've decided I want to take the plunge and leave Gmail for Mail, using my iCloud account. Why? I've lost trust in Google (incl. their search bias, how they handle my privacy, and how they treat the end-user as a comodity to sell rather than a customer to serve). I'd love advice on the best way to swap over. I've done a bit of researching and can't seem to nail the answers to my questions. Your help + advice on any of the items below would be much appreciated. And if you think there's a better way I should be asking the question, please let me know.
    Here's what I'm looking for especially:
    I use Gmail's labels a lot. What's the best way to get the same effect in Mail? Smart folders? (I do wish smart folders synced to iCloud.)
    I have a lot of Gmail labels. What's the best way to export from Gmail without getting oodles of duplicates? Forwarding folder by folder would be time consuming + lossy, and stripping the labels would be counterproductive. Are those my only options?
    I use a lot of Gmail filters. Mail rules seem even better, but is there any way to automate transfering the filters to Mail?
    I use Gmail 'send mail as' with a collection of non-gmail addresses (from my domains). Is there any way to use my iCloud account to send from a non-iCloud address? Or, is my only option to sign up with a different webmail service in order to send from my alternate addresses in Mail? 
    I have my own set of pre-defined Gmail keyboard shortcuts. Do I just need to tough it out and learn the Mail shortcuts, or is there a good, free/inexpensive app for adding shortcuts to Mail? And no, I don't mean through SysPrefs (I know how to do that ). I mean Gmail style single-letter shortcuts, like 'r' for reply.
    Tips for converting Gmail Contacts to Address Book.
    If you've made the switch, I'd also be interested to hear your experience! I'd really like to get Mail up and running sooner and rid myself of Google.
    Papa Bear

    1: Smart folders won't sync between devices. But you can create regular mailbox folders under the icloud imap folder or at the icloud website which will stay synced.
    2: The best way I see to do the labels is to create the gmail account in Mail. Set it to show those labels in imap in the labels setting section at the gmail website. All your gmail folders will appear under gmail's imap folder in Mail's sidebar. Then you will have options to export or just move the messages from one mailbox to another. I think I would just create a new mailbox under iCloud, then select all the messages from one gmail folder and right click to move the messages to the iCloud folder. Seems it would be the easiest way.
    3: I don't think it is possible to transfer your rules from gmail to Mail. Rules should be very carefully constructed in Mail paying much consideration to the order they are placed. Simplify it as best you can and test it. In Mail, rules only will apply to incoming messages which may be different than what gmail does.
    4: iCloud does not have the option to send other email addresses and retain their identity like gmail does. Best I can say on that is to create the accounts of the other addresses in Mail seperately with their own SMTP servers to send from.
    5: No comment.
    6:You can go to the gmail website and export your contacts.
    Or, open up the AB on the computer and go to preferences. Open the Accounts tab. Select On My Mac in the list and check the box to sync Google contacts. Put your google sign in and password. Your Google contacts should be created on the computer. You can then select all the contacts in google and drag them to iCloud to add them. Once done, deselect the google contact syncing.

  • Where can I find an oline manual for Mail for Mavericks?

    I am looking for an oline manual for Mail for Mavericks to learn about its featires/functionality before I switch to the MAC. Is there such a manual and if so, please share a link (I could not locate it). Thanks.

    There is this online resource: https://www.apple.com/support/mac-apps/mail/

  • Notifications aren't working for Mail on iPad mini

    Notifications is working fine on my new iPad mini, except for Mail.  Mail on my iPhone 4 running iOS 6 works great but not on my new iPad mini running iOS 7.
    When an email comes in on my iPhone while it is OFF I get notified with an Alert.  On my iPad I get nothing.  On my iPhone while I'm using an app I get an email Alert pop up that either has to be Read or DISMISSed.  On my iPad I get nothing.  On my iPhone the Badge App Icon works to show the number of Unread messages as soon as I turn it on and look at the Home Screen.  On the iPad I get nothing until I open Mail and wait for the mail to come in.  THEN the Alerts start popping up and the Badge App Icon starts working.
    On both devices I have three POP email accounts with my ISP, and one IMAP Gmail account.  I've compared Notification settings between the two devices and they are the same.  Settings > Notification Center > Notification View is ON (Green).  In Mail each account is set ON for Alerts, Badge App Icon, Show in Notification Center, Show on Lock Screen, and Show Preview.  In "Mail, Contacts, Calendars" I have Fetch New Data to Push and the next screen I have Push ON and each account set to Fetch.
    I got the iPad mini a couple of days ago and was running iOS 6.  After I added my email accounts I noticed that I was getting email Alerts on my iPhone but not on the iPad.  I checked all the settings and finally I upgraded yesterday to iOS 7 thinking that would fix it the problem.  It didn't.
    I've tried rebooting (holding the On/Off button until I get the "Slide to power off"), and even did a Reset All Settings.  Those didn't work either.
    What am I missing?

    While waiting for someone to offer help I continued with my own troubleshooting, feeble as that may have been.
    I thought I had done the basic stuff already with no success, like rebooting and resetting, so I tried deleting accounts, one at a time, to see if maybe notifications were stuck in one and affecting the others.  That didn't work.
    After deleting all accounts, I waited an hour or so, and added one account back, starting with my Gmail account.  Notifications began working!  I added another account and that one worked also.
    Finally, with all accounts back in the iPad notifications are working like they should!

  • After enabling cellular data, i am receiving mails even if disable "use cellular data for mail", due to this data usage usage use is more, if we have fix please let me know

    Phone Model and OS
    Model - iphone 5
    IOS 8.0.2
    Problem Description
    After enabling cellular data, i am receiving mails even if we disable "use cellular data for mail", due to this data usage usage use is more, if we have fix please let me know.
    Steps:
    1. Enable Cellular Data
    2. Disable mail on "use cellular data for mail
    3. check whether mail is received or not
    tried multiple times and i am getting more billing amount because of data usage

    Mail isn't the only app using data. Turning it off there has no effect whatsoever on whether the rest of iOS or other apps you have installed. In fact most apps use data these days, at a minimum for Notifications and often for gameplay and other features.

  • How can I save a page and all its component parts in a single file, like IE does as an MHT - it's much easier for mailing to people where page address not available?? (as in output from an airline booking site, for example)

    how can I save a page and all its component parts in a single file, like IE does as an MHT?
    It's much easier for mailing to people where page address not available?? (as in output from an airline booking site, for example)
    It is simply too painful to have to zip everything up into a single file to send. MHT format has been available for years now from IE, and with every new FF release it's the first thing I look for. I have been using FF for years, and hate having to come out of it, over into IE |(which I even took out of startup) and key everything in again, in order to send somebody something in a convenient format that they can open with a single click.
    I can't believe this hasn't been asked before, so have you looked at it and rejected it? Have MS kept the file format secret?
    Thanks
    MG

    This is not really an answer just my comments on your question.
    I am sure I recollect efforts being made to get mhtml to work with FF.
    Probably the important thing to remember about .mhtml is that if other browsers do support it they may need addons, and may not necessarily render the content correctly/consistently.
    There are FF addons designed for archiving webpages, you could try them, but that then assumes the recipient has the same software.
    You could simply save the page from FF to your XP pc; then offline open it with and save it using IE, before then emailing using FF, and attaching the .mht or mhtml file that you have now created on your PC.
    As an alternative method, in some cases it could be worth considering taking a screen grab of the required page, then sending that to the recipient as a single email attatchment using either a bitmap or jpeg file format for instance.
    Something such as an airline booking may be designed with a print option, possibly it could be worthwile looking at sending the print file itself as an email attachment.

  • How to enable logging for mail.app in Mountain Lion

    I am at my wits end trying to figure this out....
    Does anyone have a clue how to enable the logging for mail.app under Mountain Lion?
    In the past, you could open up Console and click on Console.log and see the logging of mail. Under mountain Lion, there is no more console.log. I cannot figure out how to enable it.
    I have tried to run the AppleScript of "Turn On Logging" but the script errors out under Mountain Lion.
    Does anyone know how to do this or a better way, maybe a tool or something that can help you troubleshoot mail.app issues?
    Thanks in advanced

    Hello,
    I have a similar problem. The script "Turn on Logging.scpt" runs without error, but I do not see any socket logging. I only get two messages, which I also get when I start mail without the script by just clicking the mail.app icon in the dock. The Messages are:
    1/10/13 3:43:32.618 PM Mail[11276]: Using V2 Layout
    1/10/13 3:43:36.388 PM Mail[11276]: *** -[IADomainCache init]: IA domains cache is out of date.
    Any help would be appreciated

  • After updating to mavericks I have to constantly enter my apple ID for mail, iBooks, iTunes and many other applications that used to be part of my keychain. How can I get my log-in to work again?

    After updating to mavericks I have to constantly enter my apple ID for mail, iBooks, iTunes and many other applications that used to be part of my keychain. How can I get my apple ID log-in to work again?

    Several times I've re-entered my passwords under Preferences/Internet Accounts/iCloud and it won't save since I've installed Mavericks.  Also, the iCloud icon in the left column in Preferences/Internet Accounts/iCloud is greyed out but allows me to click on it to set-up.  When I click on iCloud the password is filled out but the "Enable this account" check-box is not checked.  I check it, and all seems correct.  The icon is no longer grey, the password is correct, the "activate this account" check-box is checked.  Then, when I launch mail, notes etc. I'm still prompted to re-enter my apple ID.  The log-in loop continues.  For years my keychain has worked perfectly.  What has changed in Mavericks?

  • After upgrade my Iphone 4 to iso5, I can't add contact and I can't access the settings for mail,contacts and calender. The moment I select the setting for Mails, Contact and Calender it will jump back to home. Can someone advice what's wrong with it?

    After upgrade my Iphone 4 to iso5, I can't add contact and I can't access the settings for mail,contacts and calender. The moment I select the setting for Mails, Contact and Calender it will jump back to home. Can someone advice what's wrong with it?Problr

    Dear All
    i have done the same activity ( buy a new iphone 4 -> upgrade to ios5 - > configure email) with success-
    than when i start to move the contacts from old mobile to iphone (using the microsim) i receive the same crash
    in disgnosis e use i saw 2 dump with this title 'latestCrash-Preferences.plist and LatestCrash.plist. in each file the date is the same and i read:
    Exception Tyle: EXC_CRASH (SIGABRT)
    Exception code: 0x00000000, 0x00000000
    Chrashed Thread: 6
    in thread 6: name: Dispatch queue:
    com.apple.addressBookUI.ContactsSettingPlugin
    and thaan a lot of data.
    Have you any idea?
    thank in advance
    Fabio

Maybe you are looking for

  • How do I get rid of Flash Player?

    For some time Safari's had "mini freezes" - scrolling stops for 2 or 3 seconds, and typing content also stops. It was only when I launched Activity Monitor that I saw what was going on. There was always free RAM (I rarely use more than 2/3 of my 12GB

  • How to move Oracle 10g AS 10.1.3

    We are currently using oracle application server 10.1.2.0.2. We want to upgrade to 10.1.3. I am bit confuse, when I download oracle application 10g 10.1.3.. it contains cds for sao_solaris_101310g_disk1 and disk2. There no metnion of OID stuff. Do we

  • Override the name attribute in inputText or inputHidden

    Hi all, Is it possible to override the name attribute of an input element? For example, the following JSF page: <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%> <f:view> <html> <bod

  • Using Multiple Libraries with Apple TV

    I've been running out of space on my main iMac with iTunes content - call it my Media Server - so I decided to create a new TV & Movie Library on an external hard drive to store movies and TV Shows (that went well). Unfortunately AppleTV does not syn

  • Help Me Catch a Thief!!

    I am trying to import video from a DVD from a security camera system. We experienced a robbery and we need to check out the footage to determine who the People are. So heres my situation: I have been provided with a DVD with the robbery footage. If I