Last year, I used a script to check email addresses by retrieving MX records, performing a telnet connection, and verifying compliance—this served as one measurement test for the participants and other entities in the country.
e-mail addresses to check their servers.
I think we can compare results year-over-year to track progress in EAI adoption.
I’d love your insights on:
1. Additional probes we could use to assess participants' UA readiness.
2. Your thoughts on last year’s code—are there more UA or advanced resources available for measurement?
Here is the script we used for measurement:
#!/bin/bash
# UA Measurement Script by Nicolas
total_mx_count=0
total_mx_support=0
check_esmtputf8() {
local domain=$1
mx_records=$(dig +short MX "$domain" | awk '{print $2}')
for mx in $mx_records; do
((total_mx_count++))
response=$( (sleep 2; echo "EHLO test"; sleep 2; echo "QUIT") | telnet "$mx" 25 2>/dev/null)
if echo "$response" | grep -qE "250[ -]SMTPUTF8"; then
((total_mx_support++))
fi
done
}
email_list="
nico@bbva.com.uy,
nico@fing.edu.uy" # List of e-mail addresses to check"
IFS=',' read -r -a emails <<< "$email_list"
for email in "${emails[@]}"; do
domain=$(echo "$email" | awk -F '@' '{print $2}')
check_esmtputf8 "$domain"
done
if [ $total_mx_count -gt 0 ]; then
percentage=$(echo "scale=2; ($total_mx_support / $total_mx_count) * 100" | bc)
echo "Percentage of MX servers supporting SMTPUTF8: $percentage%"
else
echo "No MX servers found."
fi
```
Looking forward to your input!
Best regards,
Nicolás