Hi I’m attempting to setup Keycloak with Mailcow wondering if anyone was successful in doing so.
Here is what I’ve tried.
I checked official information regarding setting up Authentication with the Sogo mail client. The official way they suggest connecting the two is using SAML. There is no exact walk-through in there documents to do this. I found some information in a couple of forms talking about editing the sogo.config file.
I have tried the following within the Sogo configuration file.
SOGoCacheCleanupInterval = 3600;
SOGoAuthenticationType = saml2;
NGImap4AuthMechanism = PLAIN;
SOGoSAML2PrivateKeyLocation = "/etc/sogo/saml.pem";
SOGoSAML2CertificateLocation = "/etc/sogo/saml.crt";
SOGoSAML2IdpMetadataLocation = "/etc/sogo/idp-metadata.xml";
SOGoSAML2IdpPublicKeyLocation = "/etc/sogo/idp.key";
SOGoSAML2IdpCertificateLocation = "/etc/sogo/idp.crt";
SOGoSAML2LoginAttribute = "mail";
SOGoSAML2LogoutEnabled = YES;
SOGoSAML2LogoutURL = "https://<my-server>/sogo/";
After restarting the service I exported the XML file from SOGO url into Keycloak and then tried several configurations that I found in the following forms.
I was able to get the configuration and setup to give me the redirect to the Keycloak sign in page, but once signed in I get just a black screen.