Test Email SNI: Difference between revisions
Jump to navigation
Jump to search
(Created page with "To confirm if your Sympl server has SNI configured for your domains, you can run this quick script.<pre> for domain in `find -L /srv -maxdepth 1 -ty...") |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
To confirm if your Sympl server has [[Server Name Indication|SNI]] configured for your domains, you can run this quick script.<pre> | To confirm if your Sympl server has [[Server Name Indication|SNI]] configured for your email domains, you can run this quick script.<pre> | ||
for domain in | for domain in $( find -L /srv -maxdepth 1 -type d -name '*.*' -print | sed 's|^/srv/||' ); do | ||
echo "$domain" | 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 . logout ) | openssl s_client -connect localhost:imap -starttls imap -servername $domain 2> /dev/null | openssl x509 -noout -subject | sed 's|subject=CN =|IMAP: |' |
Latest revision as of 09:44, 28 August 2020
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