User Tools

Site Tools


irax:email:imap

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
irax:email:imap [2025/02/21 11:18] ianirax:email:imap [2026/04/24 08:56] (current) – removed 216.73.216.148
Line 1: Line 1:
-IP address 192.168.10.31 
- 
-<wrap em>IMAP services:</wrap>  
-cyrus imapd and saslauthd:\\ 
-<code> 
-systemctl restart cyrus-imapd </code> 
-<code>systemctl status  saslauthd</code> 
- 
-**Config Files**  
-<code>nano /etc/imapd.conf </code> 
-<code>nano /etc/cyrus.conf </code> 
- 
- 
- 
-**IMAP management**\\ 
-There are a number of ways that imap mailboxes can be managed.  Below is how to do some management on the imap server\\ 
-There is also the Server_manager system that provides an api to do the same - direct access using our own perl functions can be found here: 
-<code>cd /var/Smtp_service_manger/perlimap/</code> 
-further detail regarding the api and its use in the Irax portal is [[irax:email:smtp_service_manager|here]] 
- 
-quick reconstruct of mailbox\\ 
-<code>root@imap:~# cyrus reconstruct  -r -f  user/me@irax.com  </code> 
-Log into cyrus user: 
-<code>root@imap:~# cyradm  -u cyrus  localhost  -p 143 </code> 
-Here we can use the imap  commands  lm dm cm lam dam sam to manage mailboxes\\ 
-so  lm we can do things like  
-  * lm user/ian@irax.com 
-  * lm user ian*@irax.com 
-  * lm user/*@irax.com 
-note the use of * can be quite powerful   especially with delete mailbox  
-  * dm /user/fred/*@irax.com   
-will delete all mailboxes for fred@irax.com \\ 
-lam lists the acls 
-lam user/ian1*@irax.com gives this   
- 
-  localhost> lam user/ian1*@irax.com 
-  user/ian1@irax.com: 
-    ian1@irax.com lrswipkxtecdan 
-  user/ian1/Drafts@irax.com: 
-    ian1@irax.com lrswipkxtecdan 
-  user/ian1/Sent@irax.com: 
-    ian1@irax.com lrswipkxtecdan 
-  user/ian1/Spam@irax.com: 
-    ian1@irax.com lrswipkxtecdan 
-  user/ian1/Trash@irax.com: 
-    ian1@irax.com lrswipkxtecdan 
- 
-We could not use dm to delete this mailbox because cyrus has no ACLs\\ 
-sam is 'set acls on mailbox' 
-sam user/ian1*@irax.com cyrus all 
-<code>localhost> sam user/ian1*@irax.com cyrus  all 
-Setting ACL on user/ian1@irax.com...OK. 
-Setting ACL on user/ian1/Drafts@irax.com...OK. 
-Setting ACL on user/ian1/Sent@irax.com...OK. 
-Setting ACL on user/ian1/Spam@irax.com...OK. 
-Setting ACL on user/ian1/Trash@irax.com...OK. 
-</code> 
- So now the mailbox can be deleted\\ 
-<code>localhost> dm user/ian1*@irax.com 
-Deleting mailbox user/ian1@irax.com...OK. 
-Deleting mailbox user/ian1/Drafts@irax.com...Mailbox does not exist 
-localhost> lm user/ian1*@irax.com 
-localhost>  </code> 
-Success! \\ 
-Sometimes a mailbox does not work properly. you may see a message like \\ 
-Setting ACL on user/ian1/Drafts@irax.com...cyrus: lrswipkxtea: System I/O error\\ 
-One way of fixing this is creating a temporary mailbox of a similar name ( and possibly its sub mailboxes. This mailbox structure can then be copied in the mailstore to the broken mailbox for example:\\ 
-on  the imap server: <code> 
-localhost> cm ianx@irax.com 
-localhost> cm user/ianx/Drafts@irax.com  
-localhost> cm user/ianx/Sent@irax.com  
-localhost> cm user/ianx/Spam@irax.com  
-localhost> cm user/ianx/Trash@irax.com </code> 
-then on the mailstore server: 
-root@mailstore:/irax/mail/domain/i/irax.com/i/user# cp ianx ian1 -rp 
-now back on the imap server  localhost> sam user/ian1*@irax.com cyrus  all now works  
- 
- 
-localhost> sam ianx@irax.com cyrus/all 
- 
- 
- 
- 
----- 
- 
- 
-<wrap em>**Apache2**</wrap> 
- 
- 
- 
- 
-<code> systemctl restart apache2 </code> 
- 
-**Files:**\\ 
-Apache config file for wsgi\\  
-<code> nano /etc/apache2/sites-enabled/ipmanagement.conf </code> 
- 
-Git repo for python flask SMTP Service Manager: 
-<code> cd /var/Smtp_service_manger </code> 
-[[SMTP Service Manager|SMTP Service Manager]] 
-[[SMTP Service Manager|SMTP Service Manager]] 
  
irax/email/imap.1740136734.txt.gz · Last modified: 2025/02/21 11:18 by ian · Currently locked by: 10.32.1.188,216.73.216.148