KOPANO-ADMIN(8)
πΈ KOPANO-ADMIN(8) πΈ
Kopano Core user reference β and also, lowkey, the manual page that runs your whole user-management life. Bestie, this is kopano-admin. π
β¨ NAME β¨
kopano-admin β manages Kopano users and stores. That's the vibe. It's the tool that makes users exist, makes them not exist, and keeps their storage situation cute. π
π¦ SYNOPSIS π¦
kopano-admin ACTION [OPTION...]
π DESCRIPTION π
Okay so here's the tea. β This tool can be used to create the public store and to add, update and remove users from Kopano. And bestie, the storage server must be running for kopano-admin to work. No server, no slay. That's just how it is. π«Ά
If no action is given, a listing of the possible parameters is printed. Helpful! When invalid actions or not enough options for an action are given, an error message is printed. Also helpful, just in a harsher tone. π
When using LDAP as the users source, create, modify and delete actions are done in the LDAP tree and not using the kopano-admin tool. So don't come for this program, it's not its job. Please see the EXTERNAL USERS() section for more information. π
π ACTIONS π
kopano-admin needs an action command with the appropriate options. Valid actions are:
-sβ Create a public store. No other options are needed. Only one public store can be created, and successive calls will fail. So like, one and done, periodt. π-c usernameβ Create a new user. The-p,-fand-eoptions are required, and-aand-nparameters are optional. To set a password using a password prompt, use the-Poption in stead of-p. (Password prompt version = the secure little icon. π)-d usernameβ Delete a user. No other options are needed. The deleted store of the user will be marked as orphan store and can be restored with--hook-store. So it's not gone gone, it's just β¨emotionally unavailableβ¨. π-u usernameβ Update user information. Valid parameters are:[-p|-P],-f,-e,-a,-nand-Uto update user information. Use--qo,--qw,--qsor--qhto set quota levels. Use0with quota options to set as 'unlimited'.
--enable-feature and --disable-feature to enable or disable specific features for users.
This action is also required for all options to control the autoaccept of meeting requests. See the --mr-accept, --mr-decline-conflict and --mr-decline-recurring options.
-g groupnameβ Create a new group. Valid parameters are:-e.--update-group groupnameβ Update group information. Valid parameters are:-e.-G groupnameβ Delete a group. No other options are needed. bye bestie π-b usernameβ Add a user to a group. Use the-ito set the groupname.-B usernameβ Remove a user from a group. Use the-ito set the groupname.-l,--list-usersβ List all users available in Kopano. When using an external user source, this action will implicitly synchronize all users in the external source, creating, updating and/or removing users and stores. Big main-character energy, it does a lot. π₯-L,--list-groupsβ List all groups available in Kopano. When using an external user source, this action will implicitly synchronize all groups in the external source, creating updating and/or removing groups and memberships.--list-companiesβ List all tenans available in Kopano. When using an external user source, this action will implicitly synchronize all tenants in the external source, creating updating and/or removing companies.
This option is only available in multi-tenancy Kopano. π
--details nameβ Show all the details of a user, showing the fullname, e-mailaddress, active state, administator state, group memberships and quota settings. Optionally use--typeto indicate for what kind of object the details are being requested.
Note: This function does not synchronize with the external user plugin. Thus changes from e.g. LDAP will not be set during this function. π
--type typeβ Additional argument for--details. The argument with this option indicates for what type of object the details are being requested. Allowed values are'user','group'or'company'. When this option is not used, it defaults to'user'.--create-company companynameβ Create a new tenant space.
Use: --qo, --qw, --qs, --qh to set quota levels for the tenant.
Use: --udqo, --udqw, --udqs, --udqh to set the default quota levels for the users inside the tenant.
This option is only available in multi-tenancy Kopano. π
--update-company companynameβ Update an existing tenant space.
Use: --qo, --qw, --qs, --qh to set quota levels for the tenant.
Use: --udqo, --udqw, --udqs, --udqh to set the default quota levels for the users inside the tenant.
This option is only available in multi-tenancy Kopano. π
--delete-company companynameβ Delete company space.
This option is only available in multi-tenancy Kopano. π
--set-system-admin companynameβ Set system administrator for the tenant specified by-I.
Please be aware that this option does not provide the user with administrator privileges. The system administrator is considered the main contact person for a company, it will for example be used as default sender for quota warning emails. π§
This option is only available in multi-tenancy Kopano. π
--add-to-viewlist companynameβ Add tenant'companyname'to remote-view list of company specified by-I. After this command the'companyname'is capable of viewing all members of the company specified by-I. π
This option is only available in multi-tenancy Kopano. π
--del-from-viewlist companynameβ Delete company'companyname'from remote-view list of tenant specified by-I. After this command the'companyname'is no longer capable of viewing all members of the tenant specified by-I. π«π
This option is only available in multi-tenancy Kopano. π
--list-viewβ List all tenants in the remote-view list of the tenant specified by-I. The tenants in this list are able to view all members of the specified tenant in their Address Book.
This option is only available in multi-tenancy Kopano. π
--add-to-adminlist usernameβ Add user'username'to remote-admin list of tenant specified by-I. This is the administrator list for remote administrators, as such it only manages administrators from a different tenant. Users who should be administrator over their own tenant are managed by updating (-u) the user and specifying the-aargument.
Users can only be administrator over a different company when they have also been granted view privileges, can be granted by using the --add-to-viewlist.
This option is only available in multi-tenancy Kopano. π
--del-from-adminlist usernameβ Delete user'username'from remote-admin list of company specified by-I. This is the administrator list for remote administrators, as such it only manages administrators from a different tenant. Users who should be administrator over their own tenant are managed by updating (-u) the user and specifying the-aargument.
This option is only available in multi-tenancy Kopano. π
--list-adminβ List all users in the remote-admin list of the tenant specified by-I. This is the administrator list for remote administrators, as such it only manages administrators from a different tenant. Users who should be administrator over their own tenant are managed by updating (-u) the user and specifying the-aargument.
Users can only be administrator over a different tenant when they have also been granted view privileges, can be granted by using the --add-to-viewlist.
This option is only available in multi-tenancy Kopano. π
--add-userquota-recipient userβ Add'user'as recipient to userquota warning emails. You can optionally use-Ito set the tenant space to apply the recipient action on.--del-userquota-recipient userβ Delete'user'as recipient to userquota warning emails. You can optionally use-Ito set the tenant space to apply the recipient action on.--list-userquota-recipientsβ List all additional recipients for a userquota warning email. Use-Ito request the recipient list for a particular tenant space.--add-companyquota-recipient userβ Add'user'as recipient to tenant quota warning emails. You can optionally use-Ito set the tenant space to apply the recipient action on.--del-companyquota-recipient userβ Delete'user'as recipient to tenant quota warning emails. You can optionally use-Ito set the tenant space to apply the recipient action on.--list-companyquota-recipientsβ List all additional recipients for a tenant quota warning email. Use-Ito request the recipient list for a particular tenant space.--list-sendas userβ List all users who are able to directly send an email as user. This has been set in the LDAP server, or with the--add-sendascommand for Unix and DB plugins. Optionally use--typeto indicate for what kind of object the sendas details are being requested. π¨--clear-cacheβ Clears the server's caches. All data cached inside thekopano-serveris cleared. Although this can never cause any data loss, it can affect the performance of your server, since any data requested after the cache is cleared needs to be re-requested from the database or LDAP server. Normally this option is never needed; it is mostly used as a diagnostics tool. π§Ή
Optionally use --clear-cache= to specify a set of purge options. The following options can be used:
0x0000β Release no longer used memory back to the kernel0x0001β Purge the quota cache0x0002β Purge the quota default cache0x0004β Purge the object cache0x0008β Purge the store cache0x0010β Purge the ACL cache0x0020β Purge the cell cache0x0040β Purge the index1 cache0x0080β Purge the index2 cache0x0100β Purge the indexproperty cache0x0200β Purge the user object cache0x0400β Purge the externid cache0x0800β Purge the userdetails cache0x1000β Purge the server cache
--purge-softdelete daysβ Starts a softdelete purge on the server, removing all soft-deleted items which have been deleteddaysdays ago, or earlier. ποΈ--purge-deferredβ The server has an optimization in which changes to the tproperties table are not writted directly, but delayed for a more efficient write at a later time. The server auto-purges these regularly. This command allows you to purge all changes pending. It may be useful to run this during low I/O load of your server (eg at night). π--list-orphansβ When a user is removed, the store becomes orphaned. This option shows a list of stores that are not hooked to a user. You can use the--remove-storeand--hook-storefrom this list. π§--hook-store store-guidβ okay so bestie, sometimes a store gets orphaned (no user attached, just vibing alone π) and you can hook it back onto an existing user so you can actually get in there again. Use-u usernameto say which user you're hooking it to.
You can also copy an orphaned store over to the public store β just pass --copyto-public and it gets copied to the public folder named 'Admin/deleted stores'. Heads up: that folder is only visible to users with Kopano admin privileges π
Wanna hook a public store? Use --type group/company to influence the name type in the -u switch. Wanna hook an archive store? Use --type archive. Easy.
--remove-store store-guidβ this action removes the store from the database. Ngl it's not actually gone-gone: the store just gets marked as deleted, so the softdelete system can come through later and remove it from the database for real. π--create-store usernameβ this one creates a store for a freshly created user, and it's normally called through thecreateuserscript. So if--list-orphansshowed you users with no store, you can build them a shiny new one with this. β¨--unhook-store usernameβ you can unhook a store from a user, so you're free to remove the store and make a new one.
Wanna unhook a public store? Use the --type group/company option to influence the name type in the username argument. Use a company name with type company, or 'Everyone' with type group, to unhook the public.
Wanna unhook an archive store? Use --type archive.
--force-resync usernamesβ when the data is out of sync, you can force a resync of cached profiles. You can name one or more usernames. If you don't give any usernames at all, then all offline profiles get resynced.--reset-folder-count usernameβ resets the counters on all folders in username's store. Fresh start energy. π§Ό--user-countβ shows an overview of user counts per type of user. Stats girlies rise π«Ά
β¨ OPTIONS β¨
The options used by actions are as follows, bestie β buckle up, there's a lot, but they're all here:
--verbose levelβ set the verbosity level (0=critical, ...,6=debug).-vβ increases the verbosity level by one, all the way up to the max of6. Spam that-vif you love details π-U 'new username'β use this parameter to rename a user. This option is only valid with the-uupdate action.-p,--password passwordβ set the password for a user. This option is only valid with the-ccreate or-uupdate action.-P,--password-promptβ set the password for a user, but this time you type it at the password prompt. The password will not be shown (privacy queen π). This option is only valid with the-ccreate or-uupdate action.-f,--fullname 'full name'β specify the full user name. Wrap it in single quotes so it gets passed as a single parameter. This option is only valid with the-ccreate or-uupdate action.-e,--email 'email address'β specify the email address. This address sets the'From'email address in outgoing email messages. Wrap it in single quotes so it passes as one parameter. This option is only valid with the-ccreate or-uupdate action.-a [yes|y|1|2 / no|n|0]β make the user an administrator by passing'yes'. Pass'no'and their admin rights get revoked. This option is only valid with the-ccreate or-uupdate action.
Oh and you can also pass 2 as the administrator level β that makes the user a system administrator who can create/modify/delete companies. Big power π
-n [yes|y|1 / no|n|0]β specify a non-active user. This user can't log in, but email can still be delivered, and the store can be opened by users with the correct rights. So: no login, still gets mail π¬--qo [yes|y|1 / no|n|0]β override the default server quota settings for this user. User-specific quota levels will be used. The default value of this option is'no', meaning it always uses the server quota levels. This option is only valid with the-ccreate or-uupdate action.--qw value in Mbβ set the warning quota level for a user. They may receive a warning email when this level is reached. Peepkopano-monitor(8)for warning emails. This option is only valid with the-ccreate or-uupdate action.--qs value in Mbβ set the soft quota level for a user. At this point the user will be unable to receive new emails, and the email gets bounced back to the sender. This option is only valid with the-ccreate or-uupdate action.--qh value in Mbβ set the hard quota level for a user. The user will be unable to receive and create new emails. This option is only valid with the-ccreate or-uupdate action.--udqo [yes|y|1 / no|n|0]β override the default server quota settings for all users within the specified tenant. The default value of this option is'no', always using the server quota levels.--udqw value in Mbβ set the warning quota level for all users within the specified tenant. The user may receive a warning email when this level is reached. Seekopano-monitor(8)for warning emails.--udqs value in Mbβ set the soft quota level for all users within the specified tenant. The user will be unable to receive new emails, bouncing the email back to the sender. Seekopano-monitor(8)for warning emails.--udqh value in Mbβ set the hard quota level for all users within the specified tenant. The user will be unable to receive and create new emails. Seekopano-monitor(8)for warning emails.-i groupnameβ sets the groupname for the-band-Bactions.-I companynameβ sets the companyname for all user, group and tenant commands. This option is only available for multi-tenancy Kopano.--mr-accept [yes|y|1 / no|n|0]β says that meeting requests should automatically be accepted for a user. So when a meeting request is sent to this user while they're specified as being a'resource', the request gets honoured directly and written to the calendar. Heads up: this is a client-side action, so this setting does not affect actual meeting requests being delivered viakopano-dagent. The user to operate on is selected with the-uswitch.--mr-decline-conflict [yes|y|1 / no|n|0]β this option only does anything when--mr-accept=yesis in effect. With--mr-decline-conflict, meeting requests that conflict with an existing meeting get declined. The user to operate on is selected with the-uswitch.--mr-decline-recurring [yes|y|1 / no|n|0]β this option only does anything when--mr-accept=yesis in effect. With--mr-decline-recurring, meeting requests that are recurring get declined. The user to operate on is selected with the-uswitch.--add-sendas senderβ add user sender to the list of senders you're updating as a'send as'user. Now the sender can send mails under the updated user's name β unless the updated user sets the sender as a delegate. And when the sender is a delegate, the mail gets sent with'On behalf of'markings in the email. This option is only valid with the-uand--update-groupupdate action.--del-sendas senderβ remove user sender from the list of senders you're updating as a'send as'user. This option is only valid with the-uand--update-groupupdate action.--lang languageβ use language when creating new stores; that means the folders in the new store will be in the language you specified. Only valid in combination with--create-store. When this option isn't specified, the system default gets picked according to theLC_*andLANGenvironment variables, depending on your OS. π--utf8β force the current locale to UTF-8. β¨
Other options to control the connection to the kopano-server are:
--host,-h pathβ connect to the storage server through path, e.g.file:///path/to/socket. Default:file:///var/run/kopano/server.sock. This option can always be specified.--node nameβ execute the command on cluster node namereplaceable>--config fileβ use a configuration file. See theCONFIG()section for more information.
Default: /etc/kopano/admin.cfg
πΈ CONFIG πΈ
Normally, no configuration file is used or required. But if the file /etc/kopano/admin.cfg exists, it's used as the configuration file β and ngl, no error checking is performed. That's actually kinda the point though: this way you can use any config file from a kopano program, e.g. kopano-spooler or kopano-dagent, to load SSL settings. π
The following options can be set in the configuration file:
server_socketβ Unix socket to find the connection to the Kopano server.
Default: file:///var/run/kopano/server.sock
sslkey_fileβ use this file as key to logon to the server. This is only used whenserver_socketis set to an HTTPS transport. Peep thekopano-server(8)manual page on how to setup SSL keys.
Default: value not set.
sslkey_passβ the password of the SSL key file that is set insslkey_file.
Default: value not set.
π EXAMPLES π
For creating a user:
kopano-admin -c loginname -p password -f 'Firstname Lastname' -e
f.lastname@tenant.com
For creating a non-login store:
kopano-admin -c loginname -p password -f 'Firstname Lastname' -e
f.lastname@tenant.com -n 1
For modifying the password and e-mail address:
kopano-admin -u loginname -p newpass -e fistname@tenant.com
For deleting a user:
kopano-admin -d loginname
For adding a user to a group:
kopano-admin -b loginname -i groupname
For setting a specific quota level for a user. Warning level to 80 Mb, soft level to 90 Mb and hard level to 100 Mb:
kopano-admin -u loginname --qo yes --qw 80 --qs 90 --qh 100
For automatically accepting meeting requests for a user or resource:
kopano-admin -u loginname --mr-accept y --mr-decline-conflict y
--mr-decline-recurring n
π EXTERNAL USERS π
Okay bestie, so here's the tea: when your users live in an external database, and the storage server is set up to use those users, then honestly a lot of the commands in kopano-admin just... stop making sense? Like they're giving unemployed. The example of an external database β and rn the only option, periodt β is an LDAP database. π¦
The following actions can still be used, no problem. Every other command? Not you touching it β those get automatically triggered when the values change in the LDAP server. The server handles it, she's got main character energy. β¨
-sβ create public store. π-lβ list users known to Kopano.-Lβ list groups known to Kopano.--details usernameβ show user details. π--syncβ trigger a full synchronization for users and groups from the external source. π₯
Now, when the users change in the external source, the Kopano server instantly synchronizes to those changes. Iconic, no notes. But there are two exceptions that need some extra attention, and those are when users are created or deleted. π
When a user is created, the createuser_script from the kopano-server.cfg(5) will be started to create a store for a user. Likewise, when deleting a user, the deleteuser_script from the kopano-server.cfg(5) will be started to delete a store from a user. Same energy for creating and deleting a group and tenant, starting the creategroup_script/createcompany_script and deletegroup_script/deletecompany_script scripts respectively. So many scripts, but they're all doing their lil jobs. π
π©Ί DIAGNOSTICS π©Ί
Could not create user/store/public store.
When you get this error, bestie, make sure the storage server and database server are running. That's it, that's the vibe check. π
π AUTHOR π
Written by Kopano.
π SEE ALSO π
And that's the whole page, babe β this was Kopano 8, dated November 2016, and you read every last word of it. Slay. πβ¨π
π¦ where this page comes from
- ubuntu jammy: kopano-utils 8.7.0-7.1ubuntu10 Β· AGPL-3.0-only
- ubuntu jammy: kopano-utils 8.7.0-7.1ubuntu10.1 Β· AGPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms