How to a new domain without a Database (2) ========================================== Postfix side ============ 1. add the new domains (* if not added yet) ---------------------------------------- sudo nano /etc/postfix/vhosts icccalling.com 2. add new users ------------- sudo adddovecotuser sales@icccalling.com 3 add passwords ------------- sudo mkdovecotpasswd sales@icccalling.com password 4*. to check / remove: a) sudo nano /etc/postfix/vhosts a) sudo nano /etc/postfix/vmaps b) sudo nano /etc/dovecot/users c) sudo nano /etc/dovecot/passwd d) sudo dir /home/vmail/$domain/ e) ls -l /home/vmail (*to update hash file for the change: sudo postmap /etc/postfix/vmaps) (*to restart: sudo /etc/init.d/postfix restart & sudo /etc/init.d/dovecot restart) (*to remove the directory: sudo rm -r /home/vmail/icccalling.com.com/) 5*. test 4.1) Testing Dovecot IMAP Server ----------- 4.1.1) telnet smtp.icc-computer.com imap (output: +OK dovecot ready) 4.1.1) 01 login sales@icccalling.com password logout (output: OK Logged in) 4.2) Testing Dovecot POP3 Server ----------- 4.2.1) telnet smtp.icc-computer.com pop3 (output: +OK dovecot ready) 4.2.2) user sales@icccalling.com pass password quit (output: OK Logged in) 4.3) Testing Postfix Server ------- 4.3.1) Send a mail in ubuntu terminal (enter dot to finish and send) mail sales@icccalling.com 4.3.2) Check the mailbox sudo ls /home/vmail/icccalling.com/sales/new/