The following commands will loop over every domain on the server and retrieve the SPF/DKIM records for each domain and check them against what SPF/DKIM records the server has for that domain and if they match the server marks these values in the "Email Deliverability Status" section of cPanel >> Email >> Email Deliverability interface as valid.
awk -F "==" '{print $1}' /etc/userdatadomains | while read DOMAIN USER; do uapi --user=$USER EmailAuth validate_current_spfs domain=${DOMAIN::-1};done
awk -F "==" '{print $1}' /etc/userdatadomains | while read DOMAIN USER; do uapi --user=$USER EmailAuth validate_current_dkims domain=${DOMAIN::-1};done
Comments
0 comments
Article is closed for comments.