User Tools

Site Tools


mail-server-setup

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
mail-server-setup [10/06/2019 18:29]
ragulkanth postfix basic installation and configuration is done
mail-server-setup [26/03/2020 11:49] (current)
Line 33: Line 33:
 </code> </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: 26/03/2020 11:49 (external edit)