- Plesk 11.x for Linux
Subscription was suspended, however mail users on the subscription are still able to login/send/receive mail.
This is a software issue, which will be fixed in the future updates.
In order to work around the issue, you may create an event handler for the "domain status changed" event and put there a script that disables the mail service on domain suspension:
## $1 - domain name $2 - new status $3 - old status
if [ $2 == 2 ]
/usr/local/psa/bin/mail --off $1
if [ $3 == 2 ] && [ $2 == 0 ]
/usr/local/psa/bin/mail --on $1
echo 'Nothing to do'
The event handler should have the following options:
Default domain, status updated lowest (0) root /root/fix_suspend.sh <old_domain_name> <new_status> <old_status>