How to Create Account in Webmail
Step 1: Create Webmail User
Create the user along with their directory in /etc/postfix/vmailbox file.
# vi /etc/postfix/vmailbox user@tecdistro.com tecdistro.com/user/ admin@tecdistro.com tecdistro.com/admin/
Step 2: Set Secure Password
Secure the account with encrypted password using doveadm
# doveadm pw -s SHA512-CRYPT Enter new password: Retype new password: {SHA512-CRYPT}$6$dqhU/Jlf03gKDu9Z$jGXg9DRo5aIPmLawUCfcQ/TN8QeXML94BphZMsFurwvb7crDRT93VtpwwxHW3H4NrTsoPdljneak/8JliasK.
Step 3: Modify user file
Insert the user along with encrypted password.
Note: Don’t forget to insert :::: at the end of each user.
# vim /etc/dovecot/users user@tecdistro.com:{SHA512-CRYPT}$6$4penD5yEcc.9kAHF$rP1Mb2UoVh6Bu4KlyoWc07AyQ0VySvVckHblCop6EkmqgVh0z2wmhNwM2gH.pmb2Ripym9QvLbr.CHv9ocuG6/:::: admin@tecdistro.com:{SHA512-CRYPT}$6$dqhU/Jlf03gKDu9Z$jGXg9DRo5aIPmLawUCfcQ/TN8Qe/XML94BphZMsFurwvb7crDRT93VtpwwxHW3H4NrTsoPdljneak/8JliasK.::::
Step 4: Verify Account Creation
Verify account by using the telnet command and enter the credentials.
# telnet localhost 110 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. +OK Dovecot ready. USER user@tecdistro.com +OK PASS xxxxxxxxx +OK Logged in. STAT +OK 0 0 LIST +OK 0 messages: . QUIT +OK Logging out. Connection closed by foreign host.
User account created successfully and enjoy 🙂
Leave a Reply
Want to join the discussion?Feel free to contribute!