Customer suspending without taking down e-mail

Daredevil

Verified User
Joined
Oct 24, 2004
Messages
53
Location
Netherlands
Is it possible to suspend a customer without denying him access to his e-mail?

As is DA suspends everything including the e-mail access the customer has, but i'd rahter have it suspend everything but just that.

Thanks for any pointers.
 
Last edited:
Hello,

This might be useful for you:
http://www.directadmin.com/features.php?id=519

All DA does during a suspension regarding email, is rename:
/etc/virtual/domain.com
to
/etc/virtual/domain.com_off

So, if you don't want to touch email, then in the:
/usr/local/directadmin/data/scripts/user_suspend_post.sh
Create the file, and add
Code:
#!/bin/sh
for i in `cat /usr/local/directadmin/data/users/$username/domains.list`; do
{
     mv -f /etc/virtual/${i}_off /etc/virtual/${i}
};
done;
exit 0;
Save the script, chmod 755.

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.

John
 
Thank you.

Any chance of this becomming an feature hardcoded within DA?
Adding mysql, FTP services aswell ofcourse.
 
Last edited:
Not likely. Similar types of actions can be some using the same techniques, using this script. (suspension methods vary for other areas of course)

John
 
Back
Top