we have a domain which has 2000 numbers of email forwarders created & which want to remove them.
how to remove / deleted all email forwarders from particular domain at one go ?
we have a domain which has 2000 numbers of email forwarders created & which want to remove them.
how to remove / deleted all email forwarders from particular domain at one go ?
Hello,
You can delete the forwarders of a particular domain from the file /etc/valiases/${domain} .
Cheers !
do i just need to enter only /etc/valiases/${domain} (replace with actual domain) from SSH ??
Last edited by JawadArshad; 02-04-2011 at 02:52 AM.
1 solution works for all problems. Trying harder!
HostMasterTips - Understanding Tech Support
I have tried but it gives an error
Code:root@server [~]# /etc/valiases/$example.net -bash: /etc/valiases/example.net: No such file or directory root@server [~]# cd /etc/valiases/ root@server [/etc/valiases]# /etc/valiases/$example.net -bash: /etc/valiasesexample.net: No such file or directory root@server [/etc/valiases]# /etc/valiases/${example.net} -bash: /etc/valiases/${example.net}: bad substitution root@server [/etc/valiases]#
Hello,
root@server [/etc/valiases]# vi domain.com
You will be able to see the forwarders of the domain.
Hello Nilesh,
You cannot directly enter the file name without a corresponding command before it. If you want to move the file, you can do:
Here you are changing directory (cd) to /etc/valiases, then moving (mv) the domain's forwarder file to the user's home location. Replace domain.com with the domain in question and replace user with the cPanel account's username.Code:cd /etc/valiases mv domain.com /home/user/domain.com
I did want to mention that vi isn't necessary to see the contents of a file also. You can use cat:
Thanks.Code:cat /etc/valiases/domain.com
cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
-- Tristan, Forums Technical Analyst, cPanel Tech Support
Submit a ticket | Check an existing ticket
I would install ConfigServer Mail Manage and do it from there, it will show the forwarders in a text file you can cut and past save it before you delete them ConfigServer Mail Manage