I am using an iMac at work, and the IT security guys are raising issue with the Apple Push Notification Service (apsd) trying to bypass the proxy continually.
I would like to know how I can disable apsd from running.
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.Sign up to join this community
I figured out that I needed to enter the following in the terminal:
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.apsd.plist
I did this already, and it seemed to fix the issue, but would love to know if this is the advisable way to solve the problem.
Also, in case you want to enable the process afterwards, you can use this:
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.apsd.plist
Little Snitch is a means to solve this problem. It doesn't answer the original question (which is how to disable
apsd from running), but it can solve this sort of problem, albeit in a bandaid way, that the author of the question has.
Little Snitch in place it's one button click solution to never hear from
Little snitch will only work for a little while. APSD will continue to try to connect to multiple ip addresses once you "deny" connection. I had to do it like 40 times, then when I thought everything was blocked it started doing it again a couple months later relentlessly. Turn the stupid process off.
Maybe, it will be a safer alternative to use Little Snitch and a customized Hosts File to Block Apple stuff you don't want (If you are not planning to use Apple related services such as FaceTime, Messages, App Store and so on) You could also block, at the DNS level, Apple related domains that such process use.
Hostnames: a1441.g4.akamai.net init-p01st.push.apple.com.edgesuite.net init-p01st.push.apple.com IP Addresses: 184.108.40.206 220.127.116.11 --- Hostnames: 35.courier-push-apple.com.akadns.net 24-courier.push.apple.com 21-courier.push.apple.com 13.courier-push-apple.com.akadns.net 9-courier.push.apple.com 6-courier.push.apple.com 32.courier-push-apple.com.akadns.net 13-courier.push.apple.com 34-courier.push.apple.com 17.courier-push-apple.com.akadns.net 34.courier-push-apple.com.akadns.net 47.courier-push-apple.com.akadns.net 46-courier.push.apple.com 39-courier.push.apple.com 9.courier-push-apple.com.akadns.net 47-courier.push.apple.com 11-courier.push.apple.com 43-courier.push.apple.com 14-courier.push.apple.com 19-courier.push.apple.com 41-courier.push.apple.com 8.courier-push-apple.com.akadns.net 1-courier.push.apple.com 24.courier-push-apple.com.akadns.net 17-courier.push.apple.com 21.courier-push-apple.com.akadns.net 10-courier.push.apple.com 38.courier-push-apple.com.akadns.net 38-courier.push.apple.com 6.courier-push-apple.com.akadns.net 32-courier.push.apple.com 8-courier.push.apple.com 35-courier.push.apple.com 18-courier.push.apple.com 1.courier-push-apple.com.akadns.net 43.courier-push-apple.com.akadns.net 11.courier-push-apple.com.akadns.net 10.courier-push-apple.com.akadns.net sjc-courier.push-apple.com.akadns.net 19.courier-push-apple.com.akadns.net 18.courier-push-apple.com.akadns.net 14.courier-push-apple.com.akadns.net 46.courier-push-apple.com.akadns.net 41.courier-push-apple.com.akadns.net 39.courier-push-apple.com.akadns.net IP Addresses: 18.104.22.168 22.214.171.124 126.96.36.199 188.8.131.52 184.108.40.206 220.127.116.11 18.104.22.168 22.214.171.124 126.96.36.199 188.8.131.52 184.108.40.206 220.127.116.11 18.104.22.168 22.214.171.124 126.96.36.199 188.8.131.52 184.108.40.206 220.127.116.11 18.104.22.168 22.214.171.124 126.96.36.199 188.8.131.52 184.108.40.206 220.127.116.11 18.104.22.168 ----
The above, is just a small example of all Apple's process / services phoning home. The full list is Extensive. I block them at both; At the App level (Using Little Snitch) and at the DNS level (Hosts File) because they Tend to bypass or go around the back of VPN connections. So, I consider them a Privacy and Security Breach. I Love my Mac, but I don't use any apple related apps and services.
AS per Little Snitch, you have to Uncheck some predefined settings. So, next time an Apple process kicks in, such as the apsd process, you can then choose to block all outgoing connections.
To Edit the Hosts File on your Mac, Open Finder, Go to Folder, write: /etc/hosts and the open using TextWrangler. Don't forget to use 0.0.0.0 as a Prefix on all your entries, you can use other commands on TextWrangler such as Sort, Add Line Breaks, and so on. Then, just save and reboot.
If you try to Disable some Apple process via Terminal, you may be required to disable first SIP, which I personally preferred to live it alone. (Operation not permitted while System Integrity Protection is engaged)