Is there any way to mass change the "Default Mail Address" for all domains (existing accounts) in the server to use ":fail: No such person at this address" with "Discard with error to sender (at SMTP time)"?
Is there any way to mass change the "Default Mail Address" for all domains (existing accounts) in the server to use ":fail: No such person at this address" with "Discard with error to sender (at SMTP time)"?
Here's a sexy one-liner:
Back up your valiases folder first.Code:sed "s/^\*:.*/\*: :fail: No such person at this address/g" -i /etc/valiases/*
Last edited by vanessa; 06-16-2010 at 09:27 AM. Reason: typo
^^ Thank you!