How to reinstall postfix to work with cyberpanel

I have removed postfix from my ubuntu vps that is preinstalled with cyber panel setup. Now, I have reinstalled postfix again using command line and its status is active. But its not working cyber panel. I think, postfix need to configure to work with cyber panel. But I don’t know how to reconfigure postfix again to work with cyberpanel. Can someone Please help me reconfigure postfix to work with cyber panel.

I had faced same, I managed to fix it somehow, but now I forgot that. What I remember Is Some Permission Issues were there.

Please try to remember it and help me fix it again. Thanks