Change default Mail Address ✉️ for all cPanel accounts

Change default Mail Address ✉️ for all cPanel accounts

Here is how to mass change the “Default Mail Address” for all domains (existing accounts) in the server to a specific email address (user@example.com).

sed "s/^\*:.*/user@example.com/g" -i /etc/valiases/*
whoami
Stefan Pejcic
Join the discussion

I enjoy constructive responses and professional comments to my posts, and invite anyone to comment or link to my site.