• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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 [email protected] -passwd workingpassword -forwarding false -mailbox true -mbox_quota 20971520

/usr/local/psa/bin/user -c [email protected] -cname [email protected] -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 [email protected]
SUCCESS: User was successfully deleted.

/usr/local/psa/bin/mail -r [email protected]
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 [email protected] -passwd workingpassword -forwarding false -mailbox true -mbox_quota 20971520

/usr/local/psa/bin/user -c [email protected] -cname [email protected] -role Mail_User_Spamfilter -passwd workingpassword -owner kunde_admin

afterwards:
/usr/local/psa/bin/mail -r [email protected]
object not found: email account NAME

/usr/local/psa/bin/user -d [email protected]
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 [email protected]
(Therefore the accountname needs to be read and set to lower case)

instead of:
/usr/local/psa/bin/mail -r [email protected]
(or: [email protected], [email protected])
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