User Tools

Site Tools


computing:mailserver

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
computing:mailserver [2023/07/09 17:32] oemb1905computing:mailserver [2023/08/06 18:42] (current) oemb1905
Line 326: Line 326:
   sudo apt install dovecot-sieve dovecot-managesieved   sudo apt install dovecot-sieve dovecot-managesieved
   sudo nano /etc/dovecot/dovecot.conf   sudo nano /etc/dovecot/dovecot.conf
-  <protocols = imap lmtp sieve>+ 
 +Set to: 
 + 
 +  protocols = imap lmtp sieve 
 +   
 +Then, open 
   sudo nano /etc/dovecot/conf.d/15-lda.conf   sudo nano /etc/dovecot/conf.d/15-lda.conf
-  <protocol lda {> + 
-    <mail_plugins = $mail_plugins sieve> +Set to: 
-  <}>+ 
 +  protocol lda { 
 +    mail_plugins = $mail_plugins sieve 
 +  } 
 +   
 +Finally, 
   sudo nano /etc/dovecot/conf.d/20-lmtp.conf   sudo nano /etc/dovecot/conf.d/20-lmtp.conf
-  <protocol lmtp {> + 
-    <mail_plugins = quota sieve> +Which should be: 
-  <}> + 
-  systemctl restart dovecot postfix+  protocol lmtp { 
 +    mail_plugins = quota sieve 
 +  } 
 +   
 +Restart your services ''systemctl restart dovecot postfix'' and it should be active. I was having trouble with Nextcloud mail because it could not locate the default / expected IMAP folders. To mitigate that, set them up to be created automatically as follows: 
 + 
 +  sudo nano /etc/dovecot/conf.d/15-mailboxes.conf 
 + 
 +An example block: 
 + 
 +  mailbox Drafts { 
 +    auto = create 
 +    special_use = \Drafts 
 +  } 
 + 
 +Simply add the ''auto = create'' to whichever directories you need. 
      
- --- //[[jonathan@haacksnetworking.org|oemb1905]] 2023/07/09 17:25//+ --- //[[jonathan@haacksnetworking.org|oemb1905]] 2023/08/06 18:39//
computing/mailserver.txt · Last modified: 2023/08/06 18:42 by oemb1905