Skip to main content

Configure IOS Push Mail Function?

Comments

46 comments

  • DSS
    Is it possible to purchase this app and set up the key via iTunes on a PC? Or is it necessary to own an Apple Mac, just to export the key? I don't really want to buy a Mac just for this purpose and it isn't very clear in your documentation.

    The only other option I found (and used) was to get a Mac OS VPS for a month - make sure the service you use has sufficient permissions to allow you to purchase the Server option via iTunes/the app store and then to generate the key using your server.
    0
  • cPanelMichael
    Is it possible to purchase this app and set up the key via iTunes on a PC? Or is it necessary to own an Apple Mac, just to export the key? I don't really want to buy a Mac just for this purpose and it isn't very clear in your documentation.

    Hello, The only supported method of obtaining the key at this time requires the use of a Mac, or a solution like the one referenced in the previous post. Thank you.
    0
  • 4u123
    So in order to configure a Linux server running cpanel to send push notifications to iOS Email clients, I need to either purchase an Apple Mac computer, or I have to purchase a Mac OS VPS? Kind of ridiculous don't you think? It's no wonder your documentation makes no attempt to reveal the above info, despite that being fundamental to the process. I'm sure it would look pretty stupid... Step1. If you don't already own an Apple mac - go out and buy one. Considering cPanel is the most popular hosting control panel, is it not feasible for you to reach out to Apple and find a way to get them to generate and distribute the certificates for this purpose? Have you attempted to talk to them about it? Surely it would be beneficial for both companies? I've done some digging and it would seem you can request push certificates as a developer... Certificates - Support - Apple Developer This suggests you just need to create an apple developer account, which is possible as long as you have an apple ID. Then.. to request certificates for the Apple Push Notification service, Passbook, Mobile Device Management (MDM), and Safari extensions, you will need to request and download them from Certificates, Identifiers & Profiles in your account on the developer website.
    I haven't tried this yet, but it might be a lot easier than the alternatives if it works. Edit... not sure if a push notification certificate is the same thing as needed for cpanel, so I might have got the wrong info there.
    0
  • DSS
    This suggests you just need to create an apple developer account, which is possible as long as you have an apple ID.

    I agree with your sentiment but suspect Apple will want control of who gets certificates. Your solution will work too ... although you need to pay for a developer account ... and as far as I'm aware need a way of generating a certificate (ie a Mac to do so). My solution is relatively cheap and will only cost one month rental of the Mac OS VPS plus the cost of buying the server app
    0
  • 4u123
    Ahh - I wasn't aware having a dev account incurred a cost. Another option might be an apple mac emulator or find a spare computer and run something like virtualbox and install OS X on it.
    0
  • DSS
    Ahh - I wasn't aware having a dev account incurred a cost. Another option might be an apple mac emulator or find a spare computer and run something like virtualbox and install OS X on it.

    I think it's about $99 per year for the developer account i looked at emulators but no joy at all - they'd also have to allow you to run the app store and login to it and buy the server. honestly, the cheapest way I could see - having researched it for hours - is to find the cheapest VPS for a month and do it that way. I'd love to be wrong though as it'll be a nuisance doing it each year
    0
  • 4u123
    I think it's about $99 per year for the developer account i looked at emulators but no joy at all - they'd also have to allow you to run the app store and login to it and buy the server. honestly, the cheapest way I could see - having researched it for hours - is to find the cheapest VPS for a month and do it that way. I'd love to be wrong though as it'll be a nuisance doing it each year

    I hear what you're saying. I find it very strange that Apple don't have any provision for this. When you consider that most Email systems are Linux or Windows based, you'd think there would be a more simple process for system administrators to obtain a key and get push mail up and running. After all, it's the Apple customers that are benefiting from it. Seems strange to make us jump through hoops like this.
    0
  • DSS
    You're right! Millions of domains around the world according to the main page. You'd think there would be some scope for cPanel approaching Apple...
    0
  • WhiteDog
    I'm having no luck here getting it working. On server side: - Certificate installed (com.apple.mail.XServer...) - Port 2195 TCP OUT is open (also tried with firewall off) - Rebooted server On iPhone: - Set up new account, Push option is available and selected - Restarted iPhone But not receiving any push notifications. Any other suggestions or logs I can check on server side?
    0
  • cPanelNick
    I'm having no luck here getting it working. On iPhone: - Set up new account, Push option is available and selected - Restarted iPhone But not receiving any push notifications. Any other suggestions or logs I can check on server side?

    Check tail -f /usr/local/cpanel/logs/tailwatchd_log Also be sure to check mail once after restarting the iPhone
    0
  • WhiteDog
    Check tail -f /usr/local/cpanel/logs/tailwatchd_log Also be sure to check mail once after restarting the iPhone

    Nothing in that log referencing push notifications. If i start a tcpdump on port 2195, then send a mail to myself, I should see some traffic right?
    root@cloud [~]# curl http://portquiz.net:2195 Port 2195 test successful! Your IP: X.X.70.94 root@cloud [~]# tcpdump -i eth0 -n port 2195 tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes ^C 0 packets captured 0 packets received by filter 0 packets dropped by kernel
    EDIT: Repeated all steps on a different server, and there Push mail is working. also see traffic using tcpdump:
    [root@echo ~]# tcpdump -n -i any port 2195 tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on any, link-type LINUX_SLL (Linux cooked), capture size 65535 bytes 13:33:36.221848 IP 81.171.8.194.57244 > 17.188.146.160.2195: Flags , seq 3770961987, win 29200, options [mss 1460,sackOK,TS val 230118092 ecr 0,nop,wscale 7], length 0 13:33:36.377919 IP 17.188.146.160.2195 >...
    Still, doesn't help me resolve the problem on the other server... both on latest 64.X build. EDIT 2: Push mail is working on both servers, but not for all accounts. When using the cPanel account mailbox (cpanel user id + password) > no push notifications When using a newly created mailbox under that non-working cpanel account > working Will keep testing :)
    0
  • cPanelMichael
    EDIT 2: Push mail is working on both servers, but not for all accounts. When using the cPanel account mailbox (cpanel user id + password) > no push notifications When using a newly created mailbox under that non-working cpanel account > working

    Hello, Push notifications will only work for emails in the INBOX folder. If you are accessing email with the cPanel account username, then the emails you are seeking to have push notifications with are likely stored in subfolders. There's an Apple support document on this topic at: iCloud, iPhone, iPad, and iPod touch: Some of my emails/updates don't seem to be pushed to my device As a workaround, you could setup a new email account in cPanel, and then setup forwarders or a global filter rule that forwards the emails directly to the inbox of the newly created email account. Thank you.
    0
  • WhiteDog
    Hello, Push notifications will only work for emails in the INBOX folder. If you are accessing email with the cPanel account username, then the emails you are seeking to have push notifications with are likely stored in subfolders. There's an Apple support document on this topic at: iCloud, iPhone, iPad, and iPod touch: Some of my emails/updates don't seem to be pushed to my device As a workaround, you could setup a new email account in cPanel, and then setup forwarders or a global filter rule that forwards the emails directly to the inbox of the newly created email account. Thank you.

    Hello Michael, Some remarks and observations here: - From my point of view, the system mailbox is also just a mailbox one can use. - This mailbox also as an "Inbox" and that is where my mails arrive. The mails i'm testing with don't arrive in subfolders. - This "Inbox" is marked gray in iOS, like on a named account. - The default cPanel setting is to deliver all undelivered email to this account (catch all). This is the way I have been using it for 10 years and so will others be using it. - On iOS side, the Push option is available in the interface for these mailboxes. - On IOS side, you can select additional folders for which you want to receive push notifications. I assume this requires a more advanced implementation (port 2196 return service?) I did another test by configuring the system mailbox from the domain on the other server where the push notifications work. For the system account, the push notifications are not working. My conclusion at this time would then be that there an issue with system mailboxes and push notifications. I do think it has something to do with my Inbox not being seen as an Inbox. I did make another, more impacting observation. If the mailbox is set to "Push" on iOS side (default if you configure a new account) then it will also no longer fetch your mail after X minutes. This can be difficult to explain to the end-user. I also have the impression that existing mailboxes can flip to Push automatically in iOS, causing some users to longer "receive" mail. I can imagine this causing some user frustration :) If you agree that push should also work for the "Inbox" of system mailboxes then I can do some more testing and open a ticket for that.
    0
  • cPanelMichael
    Hello @WhiteDog, I see you've opened a support ticket (#8417865) on this topic. I'll monitor the ticket and update this thread with the outcome. Thank you.
    0
  • WhiteDog
    Hello @WhiteDog, I see you've opened a support ticket (#8417865) on this topic. I'll monitor the ticket and update this thread with the outcome. Thank you.

    Hello Michael, cPanel support did an excellent job troubleshooting this and pointing out the problem / solution. After changing the system username from "accountname" to "accountname@hostname", push notifications started working! So for those ever running into the same problem, try adding hostname to your username in your Mail App configuration.
    0
  • cPanelMichael
    After changing the system username from "accountname" to "accountname@hostname", push notifications started working! So for those ever running into the same problem, try adding hostname to your username in your Mail App configuration.

    Hello, I'm glad to see it's now working well. Internal case DOC-8904 is open to verify this behavior is by design and update the Thank you.
    0

Please sign in to leave a comment.