keropsmarter.blogg.se

How to add a user account in ubuntu
How to add a user account in ubuntu










how to add a user account in ubuntu

It is handy when you need to create a new alias for an e-mail address or forward e-mails to one or multiple accounts. You can set e-mail forwarding in this file. In case you need to support a new domain, you can easily add it to the virtual_domains file. When you need to add a new e-mail account, simply add the e-mail address with its respective domain to the virtual_maps file. All e-mails received by virtual users will be stored under the home directory of the vmail user (virtual_mailbox_base in Postfix configuration). Here, we have created a virtual mailbox setup to enable our Postfix server to serve multiple domains as well as add e-mail users without creating user accounts on the server. Reload Postfix and send an e-mail to the newly created address: $ sudo postmap /etc/postfix/virtual_alias # redirect emails for tim to generate database of virtual maps and aliases by hashing respective files: $ sudo nano /catchall/ # catch all addressĬreate the virtual_alias file and optionally set a redirect: Virtual_gid_maps = static:1001 # group ID for user vmailĬreate the file virtual_domains under /etc/postfix: Virtual_uid_maps = static:1001 # user ID for user vmail Virtual_alias_maps = hash:/etc/postfix/virtual_alias Virtual_mailbox_maps = hash:/etc/postfix/virtual_maps Virtual_mailbox_domains = /etc/postfix/virtual_domains

how to add a user account in ubuntu

Edit /etc/postfix/main.cf and add the following lines: $ sudo mkdir -p /home/vmail//aliceĪllow only the user vmail to access these files: Vmail:x:1001:1001::/home/vmail:/usr/bin/nologinĬreate a base directory layout for domains and users: I assume that you have completed your basic Postfix setup and that it is working properly.įollow these steps to add e-mail account: You will need access to a root account or an account with sudo privileges. We will create a virtual user setup so that we do not need to create user accounts for each e-mail user. Postfix will check for user accounts and deliver e-mails to respective users. The easiest way to add a new e-mail account to Postfix is to add a new user account on your server.

how to add a user account in ubuntu

How to add a user account in ubuntu how to#

In this recipe, we will learn how to add e-mail accounts to Postfix.












How to add a user account in ubuntu