The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Suspending one mailbox, is it possible?

Discussion in 'E-mail Discussions' started by copernico, Jan 24, 2011.

  1. copernico

    copernico Member

    Joined:
    Sep 23, 2005
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    I have a couple of domains where I sell just mailboxes of those domains, Is there any way to suspend a mailbox?
    I know I can change the password but I don't know the original password to unsuspend it later.

    Thanks!
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Hello,

    Do the user's have access to change the mailbox quota? If not, you could change the quota to 0 on the account to prevent them from using it. Alternatively, you could chown the ownership to root:root for that mailbox user:

    Code:
    chown root:root /home/username/mail/domain.com/emailuser
    Where username is the cPanel username, domain.com is the domain name, and emailuser is the email username.

    I do not personally know of a way to just suspend one email account when it isn't due to disk space quota exceeding.
     
  3. copernico

    copernico Member

    Joined:
    Sep 23, 2005
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Thanks for the answer.

    The quota is a good idea (I thought that 0 = unlimited)

    Is there any script in /scripts that let me change the quota of a user?

    Thanks again!
     
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Hello,

    Actually, you may well be right as some of our scripts use 0 for none and some use 0 for unlimited. You can always test it out to see the results if 0 sets to that.

    If it does, then you might be better off doing the chown to root user. You could always script it to disable the user via a bash or perl script in root SSH, where it basically lets you pass the username, domain and email user, and then it enters the path to the email account and performs a chown root:root for it. You could even create two scripts, one to chown to root:root (suspend) and one to chown back to user:mail (unsuspend) for the email account.

    Thanks.
     
Loading...

Share This Page