Test Email SNI: Difference between revisions

From Sympl Wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
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 $( find -L /srv -maxdepth 1 -type d -name '*.*' -print | sed 's|^/srv/||' ); do
for domain in $( find -L /srv -maxdepth 1 -type d -name '*.*' -print | sed 's|^/srv/||' ); do
     echo "$domain"
     echo "$domain"

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