Amazon Web Services - AWS EC2 - Ubuntu 14.04
Create new mail account
The procedure for creating new email account:
1. Postfix
# vim /etc/postfix/vmail_domains -> Add new domain
# vim /etc/postfix/vmail_mailbox -> Associate mail dir to email account
# vim /etc/postfix/vmail_aliases -> Add forwarding (if needed)
# postmap /etc/postfix/vmail_domains -> generate /etc/postfix/vmail_domains.db
# postmap /etc/postfix/vmail_mailbox
# postmap /etc/postfix/vmail_aliases
# service postfix restart
2. Dovecot
# doveadm pw -s sha1 -> generate SHA1 password (hash string)
{SHA1}QDAvJHrhkOSlshptClGGInFIEuE=
# vim /etc/dovecot/passwd
info@i-oglasnik.co:{SHA1}QDAvJHrhkOSlshptClGGInFIEuE=
# service dovecot restart
Check dovecot:
root@vps:/etc/dovecot# telnet mail.mikosofter.net 110
Trying 123.89.170.2...
Connected to mail.mikosofter.net.
Escape character is '^]'.
+OK Dovecot (Ubuntu) ready.
USER info@i-oglasnik.co
+OK
PASS asx323HV
+OK Logged in.
quit
+OK Logging out.
Connection closed by foreign host.
root@vps:/etc/dovecot#