Browse by category

Search    |    Advanced search

HowTo :: suspend an account and keep email active

Is it possible to suspend an account and keep email active?

DirecAdmin, by default, stops all activities on an account when suspended. However, you can keep email active for the suspended account.

When an account is suspended, DirectAdmin rename the file from:


This will suspend email activities for the client.

So, if you wish to keep the email active, use the following shell script; Create the file, and add:

for i in `cat /usr/local/directadmin/data/users/$username/domains.list`; do
mv -f /etc/virtual/$_off /etc/virtual/$
exit 0;

Save the script, and then run this command at the prompt:

For the restore, DA already does several checks to make sure it doesn't copy if it the _off doesn't exist and the reguarl directory does, so no action is required for unsuspension.

Add comment
Views: 1234
Votes: 0
Comments: 0

Other articles in this Category