Hi,
We are working on developing a network transparent proxy using system extension for macOS Big Sur using NEAppProxyProvider and NETransparentProxyManager APIs for capturing SMTP, IMAP and POP connections.
We have defined network rules in proxy provider to capture outgoing connections on ports 25, 465, 143, 993. We defined only remote network with wild card IPv4 address "0.0.0.0" and above ports.
It is able to catch the outgoing connection to port 993 from Mail.app.
But when we try to change mail account setting to port 143 and save, Mail app was not making any connection. With some analysis, we found that accountsd was handling accounts and when we change any setting such as port and save, accountsd was connecting to mail server on that port.
Now the strange behaviour is our transparent proxy is not able to catch this accountsd connection to port 143.
If we use old good NKE on 10.15, we are able to capture outgoing connection from accountsd process. We expect similar behaviour with network system extension too.
Right now, we are stuck on this issue.
How can we make our network system extension be able to catch accountsd traffic?
Thanks in advance!!
We are working on developing a network transparent proxy using system extension for macOS Big Sur using NEAppProxyProvider and NETransparentProxyManager APIs for capturing SMTP, IMAP and POP connections.
We have defined network rules in proxy provider to capture outgoing connections on ports 25, 465, 143, 993. We defined only remote network with wild card IPv4 address "0.0.0.0" and above ports.
It is able to catch the outgoing connection to port 993 from Mail.app.
But when we try to change mail account setting to port 143 and save, Mail app was not making any connection. With some analysis, we found that accountsd was handling accounts and when we change any setting such as port and save, accountsd was connecting to mail server on that port.
Now the strange behaviour is our transparent proxy is not able to catch this accountsd connection to port 143.
If we use old good NKE on 10.15, we are able to capture outgoing connection from accountsd process. We expect similar behaviour with network system extension too.
Right now, we are stuck on this issue.
How can we make our network system extension be able to catch accountsd traffic?
Thanks in advance!!