Skip to main content

Changing default settings for default address

Comments

2 comments

  • ssfred
    Hello If you are looking to change the "Default Email Account" from cPanel user to "fail" for all accounts server wide, you may check the option available in WHM -> Tweak Settings -> Mail -> Initial default/catch-all forwarder destination .
    0
  • cPanelMichael
    If you are looking to change the "Default Email Account" from cPanel user to "fail" for all accounts server wide, you may check the option available in WHM -> Tweak Settings -> Mail -> Initial default/catch-all forwarder destination .

    Hello, This will change the default value for new accounts. There's no native feature that will change the value for existing accounts, however if you wanted to change it for every account on the system you could use commands like this: [SPOILER="Unsupported - Use With Caution">
    cp -a /etc/valiases /etc/valiases-backup for f in /etc/valiases/*; do >$f; done echo "*: :fail: No such person at this address." | tee -a /etc/valiases/* >/dev/null
    Note this will backup the existing /etc/valiases directory to /etc/valiases-backup, remove any existing default address entries for the domain names, and then replace them all with "*: :fail: No such person at this address.". Thank you.
    0

Please sign in to leave a comment.