Manage DBMail users

Using dbmail-users to manage DBMail users is recommended manage users, but you can also manage them with SQL and LDAP.

Add a user

A user can be added to DBMail with the following command:

dbmail-users -a USERNAME -w PASSWORD

Change USERNAME and PASSWORD to suit your new user. This newly created user can now login with the imap or pop3 server. However he/she isn't able to receive any emails because the dbmail server doesn't know which email address the newly created user has.

Add a new email address (alias) to the user:

dbmail-users -c USERNAME -s USER@mydomain

DBMail now accepts email for USER@mydomain and inserts them into our users mailbox. If a user has multiple mailadresses you can simply add more with the above command, or separate them with a ”,”. Removing aliases can be done with ”-S”:

dbmail-users -c USERNAME -S USER@mydomain

For restricting maximum mailbox size of your users you can setup quota. If quota limit is reached DBMail refuses to receive mail for your users during the smtp or lmtp session. This way the mailserver can send a bounce to let the sender know his mail wasn't delivered.

Set up quota with:

dbmail-users -c USERNAME -m QUOTA

QUOTA can be specified in <bytes>B, <kbytes>KB,<mbytes>M. Default is in bytes.

Delete an user

To delete a user use the dbmail-users utility:

 dbmail-users -d USERNAME

Add a forward

To add a forward also use dbmail-users. If you forward to an external email address there is no need to add a local user.

dbmail-users -x to@domain -t forward@domain2

to@domain will be forwarded to forward@domain2.

Keep in mind, that a user's mailbox isn't deleted until the next time dbmail-util is run. Aliases are deleted with the user directly.

Delete a forward

Deleting a forward can be done using the dbmail-users utility:

dbmail-users -x to@domain -T forward@domain

DBMail is sponsored by