User Tools

Site Tools


mail-server-setup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
mail-server-setup [10/06/2019 21:45]
ragulkanth created
mail-server-setup [10/06/2019 22:33]
ragulkanth basic configuration done
Line 3: Line 3:
  
 **Toolchain** **Toolchain**
 +  - Ubuntu 18.04 Server DO Droplet 1GB
   - Postfix   - Postfix
   - Dovecot   - Dovecot
   - SpamAssasin   - SpamAssasin
  
-===== Installation of POSTFIX =====+===== Installing and configuring ​POSTFIX =====
  
 +**Installation:​**
 +<​code>​
 +$ sudo apt DEBIAN_PRIORITY=low install postfix
 +</​code>​
  
 +while installing the configuration prompt will appear. Lets just go with the following settings. ​
 +
 +  * General type of mail configuration?:​ **Internet Site**
 +  * System mail name: **cooponscitech.in**
 +  * Root and postmaster mail recipient: **ragulkanth**
 +  * Other destinations to accept mail for: **$myhostname,​ cooponscitech.in,​ mail.cooponscitech.in,​ localhost**
 +  * Force synchronous updates on mail queue?: **No**
 +  * Local networks: **127.0.0.0/​8 [::​ffff:​127.0.0.0]/​104 [::1]/128**
 +  * Mailbox size limit: **0**
 +  * Local address extension character: **+**
 +  * Internet protocols to use: **all**
 +
 +To reconfigure postfix
 +
 +<​code>​
 +$ sudo dpkg-reconfigure postfix
 +</​code>​
 +
 +To store the emails we use Maildir format in which all the incoming and outgoing mails are stored in separate files and folders.
 +
 +<​code>​
 +$ sudo postconf -e '​home_mailbox= Maildir/'​
 +</​code>​
 +
 +Setting the location for virtual_alias_maps table which maps the arbitrary mail accounts to linux user accounts.
 +
 +<​code>​
 +$ sudo postconf -e '​virtual_alias_maps= hash:/​etc/​postfix/​virtual'​
 +</​code>​
 +
 +Mapping the mail accounts to linux user accounts. For that we need to edit the file **/​etc/​postfix/​virtual**.
 +
 +<​code>​
 +ragulkanth@cooponscitech.in ragulkanth
 +manimaran@cooponscitech.in manimaran
 +prasanna@cooponscitech.in prasanna
 +</​code>​
 +
 +To make the above maps take effect
 +
 +<​code>​
 +$ sudo postmap /​etc/​postfix/​virtual
 +</​code> ​
 +
 +Now have to restart postfix
 +
 +<​code>​
 +$ sudo systemctl restart postfix
 +</​code>​
mail-server-setup.txt ยท Last modified: 10/06/2019 22:33 by ragulkanth