Differences

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

Link to this comparison view

en:ressources:astuces:sieve [2011/04/23 17:36]
127.0.0.1 external edit
en:ressources:astuces:sieve [2015/01/18 16:09] (current)
julien
Line 1: Line 1:
 ====== Filter your emails with sieve ====== ====== Filter your emails with sieve ======
- 
- 
-This is a quick memo to avoid having to google the sieve syntax every time I need to change my filters. 
- 
-===== Verify that the sieve server is launched in cyrus ===== 
- 
-In **/​etc/​cyrus.conf**,​ verify that sieve is listed in the services section: 
  
 <​code>​ <​code>​
-SERVICES { +# apt-get install ​sieve-connect
-[...] +
-       sieve cmd="​timsieved"​ listen="​sieve"​ prefork=0 maxchild=100 +
-[...] +
-}+
 </​code>​ </​code>​
- 
-Then, make sure sieve listens on port 2000 (by default): 
- 
-<​code>​ 
-# grep sieve /​etc/​services 
-sieve 2000/​tcp #​ Sieve mail filter daemon 
- 
-# netstat -tpan |grep 2000 
-tcp        0      0 0.0.0.0:​2000 ​           0.0.0.0:​* ​              ​LISTEN ​     3336/​cyrmaster  ​ 
-tcp6       ​0 ​     0 :::​2000 ​                :::​* ​                   LISTEN ​     3336/​cyrmaster  ​ 
-</​code>​ 
- 
  
 ===== Connexion to Sieve ===== ===== Connexion to Sieve =====
  
 <​code>​ <​code>​
-julien@zerhuel:​~sieveshell ​-u julien -a julien localhost+sieve-connect -s localhost -p 4190 -u julien -m plain
 connecting to localhost ​                                   connecting to localhost ​                                  
 Please enter your password: ​                               Please enter your password: ​                              
Line 111: Line 88:
  
 <​code>​ <​code>​
-sieveshell ​-u julien -a julien localhost+sieve-connect -s localhost -p 4190 -u julien -m plain
 connecting to localhost ​                           connecting to localhost ​                          
 Please enter your password: Please enter your password:
Line 133: Line 110:
   - **activate** mark a script to be usable by the server   - **activate** mark a script to be usable by the server
  
-That's all folks :)+===== DEPRECATEDVerify that the sieve server is launched in cyrus =====
  
 +In **/​etc/​cyrus.conf**,​ verify that sieve is listed in the services section:
  
 +<​code>​
 +SERVICES {
 +[...]
 +       ​sieve cmd="​timsieved"​ listen="​sieve"​ prefork=0 maxchild=100
 +[...]
 +}
 +</​code>​
  
-~~DISCUSSION~~+Then, make sure sieve listens on port 2000 (by default):
  
 +<​code>​
 +# grep sieve /​etc/​services
 +sieve 2000/​tcp #​ Sieve mail filter daemon
 +
 +# netstat -tpan |grep 2000
 +tcp        0      0 0.0.0.0:​2000 ​           0.0.0.0:​* ​              ​LISTEN ​     3336/​cyrmaster  ​
 +tcp6       ​0 ​     0 :::​2000 ​                :::​* ​                   LISTEN ​     3336/​cyrmaster  ​
 +</​code>​
en/ressources/astuces/sieve.txt · Last modified: 2015/01/18 16:09 by julien
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0