• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

cannot remove mail via command line

altec_lansing

Basic Pleskian
Hi there,
I've got a problem while removing mail accounts from my domain.

Creating them via command line (root, ssh):
/usr/local/psa/bin/mail -c NAME@domain.tld -passwd workingpassword -forwarding false -mailbox true -mbox_quota 20971520

/usr/local/psa/bin/user -c NAME@domain.tld -cname NAME@domain.tld -role Mail_User_Spamfilter -passwd workingpassword -owner kunde_admin
works without a problem,
trying to delete that one gives:

/usr/local/psa/bin/user -d NAME@domain.tld
SUCCESS: User was successfully deleted.

/usr/local/psa/bin/mail -r NAME@domain.tld
object not found: email account NAME

Anyone knows what to do?
Thanks, Altec
 
Looks like that mailbox is already deleted and doesn't exists.
 
Looks like, but:

/usr/local/psa/bin/mail -c NAME@domain.tld -passwd workingpassword -forwarding false -mailbox true -mbox_quota 20971520

/usr/local/psa/bin/user -c NAME@domain.tld -cname NAME@domain.tld -role Mail_User_Spamfilter -passwd workingpassword -owner kunde_admin

afterwards:
/usr/local/psa/bin/mail -r NAME@domain.tld
object not found: email account NAME

/usr/local/psa/bin/user -d NAME@domain.tld
SUCCESS: User was successfully deleted.

See what i mean?
Even without deleting the user before, I get the same result....
 
As far as I noticed at the moment,
there are only mailaccounts with upper case affected by this misbehavior.

As a workaround i suggest to remove the mailaccounts with
/usr/local/psa/bin/mail -r name@domain.tld
(Therefore the accountname needs to be read and set to lower case)

instead of:
/usr/local/psa/bin/mail -r NAME@domain.tld
(or: Name@domain.tld, nAmE@domain.tld)
So changing from upper to lower case did the trick for me,
thanks anyway!
Altec

(Is there someone who knows how to reconfigure plesk, to be able to delete with upper case?)
 
Back
Top