Test Email SNI
Jump to navigation
Jump to search
To confirm if your Sympl server has SNI configured for your email domains, you can run this quick script.
for domain in $( find -L /srv -maxdepth 1 -type d -name '*.*' -print | sed 's|^/srv/||' ); do echo "$domain" ( sleep 0.5; echo . logout ) | openssl s_client -connect localhost:imap -starttls imap -servername $domain 2> /dev/null | openssl x509 -noout -subject | sed 's|subject=CN =|IMAP: |' ( sleep 0.5; echo quit ) | openssl s_client -connect localhost:smtp -starttls smtp -servername $domain 2> /dev/null | openssl x509 -noout -subject | sed 's|subject=CN =|SMTP: |' echo done