Benutzer-Werkzeuge

Webseiten-Werkzeuge


tachtler:dovecot_pigeonhole_sieve

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
tachtler:dovecot_pigeonhole_sieve [2015/07/10 13:44] – [Pakete installieren] klaustachtler:dovecot_pigeonhole_sieve [2015/07/10 15:31] (aktuell) – [Neustart] klaus
Zeile 297: Zeile 297:
   * [[tachtler:mailserver.guru_centos_7|mailserver.guru CentOS 7]]   * [[tachtler:mailserver.guru_centos_7|mailserver.guru CentOS 7]]
  
-===== Installation =====+==== Paket installieren ====
  
 Nachdem das **Drittanbieter-Repository** Nachdem das **Drittanbieter-Repository**
Zeile 303: Zeile 303:
 erfolgreich eingebunden wurde, kann mit nachfolgendem Befehl, das ''rpm''-Paket - **''dovecot-pigeonhole''** installiert werden: erfolgreich eingebunden wurde, kann mit nachfolgendem Befehl, das ''rpm''-Paket - **''dovecot-pigeonhole''** installiert werden:
 <code> <code>
-# yum install +# yum install dovecot-pigeonhole 
 +Loaded plugins: changelog, priorities 
 +base                                                     | 3.6 kB     00:00      
 +epel                                                     | 4.4 kB     00:00      
 +extras                                                   | 3.4 kB     00:00      
 +mailserver.guru-os                                       | 2.9 kB     00:00      
 +updates                                                  | 3.4 kB     00:00      
 +102 packages excluded due to repository priority protections 
 +Resolving Dependencies 
 +--> Running transaction check 
 +---> Package dovecot-pigeonhole.x86_64 1:2.2.18-1.el7.centos will be installed 
 +--> Finished Dependency Resolution 
 + 
 +Changes in packages about to be updated: 
 + 
 + 
 +Dependencies Resolved 
 + 
 +================================================================================ 
 + Package             Arch    Version                  Repository           Size 
 +================================================================================ 
 +Installing: 
 + dovecot-pigeonhole  x86_64  1:2.2.18-1.el7.centos    mailserver.guru-os  343 k 
 + 
 +Transaction Summary 
 +================================================================================ 
 +Install  1 Package 
 + 
 +Total download size: 343 k 
 +Installed size: 1.2 M 
 +Is this ok [y/d/N]: y 
 +Downloading packages: 
 +dovecot-pigeonhole-2.2.18-1.el7.centos.x86_64.rpm          | 343 kB   00:00      
 +Running transaction check 
 +Running transaction test 
 +Transaction test succeeded 
 +Running transaction 
 +  Installing : 1:dovecot-pigeonhole-2.2.18-1.el7.centos.x86_64              1/1  
 +  Verifying  : 1:dovecot-pigeonhole-2.2.18-1.el7.centos.x86_64              1/1  
 + 
 +Installed: 
 +  dovecot-pigeonhole.x86_64 1:2.2.18-1.el7.centos                                
 + 
 +Complete!
 </code> </code>
  
Zeile 310: Zeile 353:
 <code> <code>
 # rpm -qil dovecot-pigeonhole # rpm -qil dovecot-pigeonhole
 +Name        : dovecot-pigeonhole
 +Epoch       : 1
 +Version     : 2.2.18
 +Release     : 1.el7.centos
 +Architecture: x86_64
 +Install Date: Fri 10 Jul 2015 01:58:24 PM CEST
 +Group       : System Environment/Daemons
 +Size        : 1290355
 +License     : MIT and LGPLv2
 +Signature   : RSA/SHA1, Thu 21 May 2015 11:19:08 PM CEST, Key ID 60ecfb9e8195aea0
 +Source RPM  : dovecot-2.2.18-1.el7.centos.src.rpm
 +Build Date  : Thu 21 May 2015 11:17:58 PM CEST
 +Build Host  : vml000200.dmz.nausch.org
 +Relocations : (not relocatable)
 +Packager    : Django <django@mailserver.guru>
 +URL         : http://www.dovecot.org/
 +Summary     : Sieve and managesieve plug-in for dovecot
 +Description :
 +This package provides sieve and managesieve plug-in for dovecot LDA.
 +/etc/dovecot/conf.d/20-managesieve.conf
 +/etc/dovecot/conf.d/90-sieve-extprograms.conf
 +/etc/dovecot/conf.d/90-sieve.conf
 +/usr/bin/sieve-dump
 +/usr/bin/sieve-filter
 +/usr/bin/sieve-test
 +/usr/bin/sievec
 +/usr/lib64/dovecot/doveadm/lib10_doveadm_sieve_plugin.so
 +/usr/lib64/dovecot/lib90_sieve_plugin.so
 +/usr/lib64/dovecot/settings/libmanagesieve_login_settings.so
 +/usr/lib64/dovecot/settings/libmanagesieve_settings.so
 +/usr/lib64/dovecot/settings/libpigeonhole_settings.so
 +/usr/lib64/dovecot/sieve
 +/usr/lib64/dovecot/sieve/lib90_sieve_extprograms_plugin.so
 +/usr/libexec/dovecot/managesieve
 +/usr/libexec/dovecot/managesieve-login
 +/usr/share/doc/dovecot-pigeonhole
 +/usr/share/doc/dovecot-pigeonhole/AUTHORS
 +/usr/share/doc/dovecot-pigeonhole/COPYING
 +/usr/share/doc/dovecot-pigeonhole/COPYING.LGPL
 +/usr/share/doc/dovecot-pigeonhole/ChangeLog
 +/usr/share/doc/dovecot-pigeonhole/INSTALL
 +/usr/share/doc/dovecot-pigeonhole/NEWS
 +/usr/share/doc/dovecot-pigeonhole/README
 +/usr/share/doc/dovecot-pigeonhole/example-config
 +/usr/share/doc/dovecot-pigeonhole/example-config/conf.d
 +/usr/share/doc/dovecot-pigeonhole/example-config/conf.d/20-managesieve.conf
 +/usr/share/doc/dovecot-pigeonhole/example-config/conf.d/90-sieve-extprograms.conf
 +/usr/share/doc/dovecot-pigeonhole/example-config/conf.d/90-sieve.conf
 +/usr/share/doc/dovecot-pigeonhole/sieve
 +/usr/share/doc/dovecot-pigeonhole/sieve/extensions
 +/usr/share/doc/dovecot-pigeonhole/sieve/extensions/duplicate.txt
 +/usr/share/doc/dovecot-pigeonhole/sieve/extensions/editheader.txt
 +/usr/share/doc/dovecot-pigeonhole/sieve/extensions/include.txt
 +/usr/share/doc/dovecot-pigeonhole/sieve/extensions/spamtest-virustest.txt
 +/usr/share/doc/dovecot-pigeonhole/sieve/extensions/vacation.txt
 +/usr/share/doc/dovecot-pigeonhole/sieve/locations
 +/usr/share/doc/dovecot-pigeonhole/sieve/locations/dict.txt
 +/usr/share/doc/dovecot-pigeonhole/sieve/locations/file.txt
 +/usr/share/doc/dovecot-pigeonhole/sieve/locations/ldap.txt
 +/usr/share/doc/dovecot-pigeonhole/sieve/plugins
 +/usr/share/doc/dovecot-pigeonhole/sieve/plugins/sieve_extprograms.txt
 +/usr/share/dovecot
 +/usr/share/dovecot/stopwords
 +/usr/share/dovecot/stopwords/stopwords_en.txt
 +/usr/share/dovecot/stopwords/stopwords_fi.txt
 +/usr/share/dovecot/stopwords/stopwords_fr.txt
 +/usr/share/man/man1/sieve-dump.1.gz
 +/usr/share/man/man1/sieve-filter.1.gz
 +/usr/share/man/man1/sieve-test.1.gz
 +/usr/share/man/man1/sievec.1.gz
 +/usr/share/man/man1/sieved.1.gz
 +/usr/share/man/man7/pigeonhole.7.gz
 </code> </code>
  
Zeile 315: Zeile 430:
  
 ==== Konfigurationsdateien ==== ==== Konfigurationsdateien ====
 +
 +:!: **HINWEIS** - **Nur - Centos 6 - Atrpms!**
  
 Nach der erfolgreichen Installation von [[http://pigeonhole.dovecot.org/|Dovecot Pigeonhole]] müssen noch die Konfigurationsdateien aus dem installierten ''rpm''-Paket ''dovecot-pigeonhole'' und ''dovecot-managesieve'' in das Konfigurationsverzeichnis von [[http://dovecot.org|Dovecot]] kopiert werden, was mit nachfolgendem Befehl durchführt werden kann: Nach der erfolgreichen Installation von [[http://pigeonhole.dovecot.org/|Dovecot Pigeonhole]] müssen noch die Konfigurationsdateien aus dem installierten ''rpm''-Paket ''dovecot-pigeonhole'' und ''dovecot-managesieve'' in das Konfigurationsverzeichnis von [[http://dovecot.org|Dovecot]] kopiert werden, was mit nachfolgendem Befehl durchführt werden kann:
Zeile 320: Zeile 437:
 # cp -a /usr/share/doc/dovecot-2.2.10/example-config/conf.d/*sieve* /etc/dovecot/conf.d # cp -a /usr/share/doc/dovecot-2.2.10/example-config/conf.d/*sieve* /etc/dovecot/conf.d
 </code> </code>
 +
 +:!: **HINWEIS** - **Nur - Centos 6 - Atrpms!**
  
 Anschließend kann mit nachfolgendem Befehl überprüft werden, ob dies erfolgreich durchgeführt wurde: Anschließend kann mit nachfolgendem Befehl überprüft werden, ob dies erfolgreich durchgeführt wurde:
 <code> <code>
-ll /etc/dovecot/conf.d/*sieve*+ls -l /etc/dovecot/conf.d/*sieve*
 -rw-r--r-- 1 root root 2398 May 24  2013 /etc/dovecot/conf.d/20-managesieve.conf -rw-r--r-- 1 root root 2398 May 24  2013 /etc/dovecot/conf.d/20-managesieve.conf
 -rw-r--r-- 1 root root 5062 Apr  7  2013 /etc/dovecot/conf.d/90-sieve.conf -rw-r--r-- 1 root root 5062 Apr  7  2013 /etc/dovecot/conf.d/90-sieve.conf
Zeile 350: Zeile 469:
 Zusätzliche Informationen hierzu, können unter nachfolgendem internen Link nachgelesen werden Zusätzliche Informationen hierzu, können unter nachfolgendem internen Link nachgelesen werden
   * [[tachtler:dovecot_centos_6#etc_dovecot_dovecotconf|Dovecot CentOS 6 - Konfiguration - Basiskonfiguration - /etc/dovecot/dovecot.conf]]   * [[tachtler:dovecot_centos_6#etc_dovecot_dovecotconf|Dovecot CentOS 6 - Konfiguration - Basiskonfiguration - /etc/dovecot/dovecot.conf]]
 +  * [[tachtler:dovecot_centos_7#etc_dovecot_dovecotconf|Dovecot CentOS 7 - Konfiguration - Basiskonfiguration - /etc/dovecot/dovecot.conf]]
  
 ==== /etc/doveconf/conf.d/20-managesieve.conf ==== ==== /etc/doveconf/conf.d/20-managesieve.conf ====
Zeile 372: Zeile 492:
 service managesieve-login { service managesieve-login {
   inet_listener sieve {   inet_listener sieve {
 +    # Tachtler -new
 +    address = 192.178.0.80
     port = 4190     port = 4190
   }   }
  
-  inet_listener sieve_deprecated { +  #inet_listener sieve_deprecated { 
-    port = 2000 +  #  port = 2000 
-  }+  #}
  
   # Number of connections to handle before starting a new process. Typically   # Number of connections to handle before starting a new process. Typically
Zeile 393: Zeile 515:
 </code> </code>
  
-:!: **HINWEIS** - Es empfiehlt sich __aktuell__ auch den bereits als "//deprecated//" (veraltet) gekennzeichneten **Port 2000** trotzdem **zu aktivieren**, da evtl. **alte Clients** noch versuchen, hier ihre+:!: **HINWEIS** - Es empfiehlt sich __ggf.__ auch den bereits als "//deprecated//" (veraltet) gekennzeichneten **Port 2000** trotzdem **zu aktivieren**, **__wenn__** evtl. **alte Clients** noch versuchen, hier ihre
 ''sieve''-Skripte zum [[http://dovecot.org|Dovecot]] **hochzuladen**! ''sieve''-Skripte zum [[http://dovecot.org|Dovecot]] **hochzuladen**!
  
Zeile 454: Zeile 576:
   # is also where the ManageSieve service stores the user's scripts.   # is also where the ManageSieve service stores the user's scripts.
   sieve_dir = ~/sieve   sieve_dir = ~/sieve
 +...
 +</code>
 +bzw.
 +<code ini>
 +...
 +plugin {
 +  # The location of the user's main Sieve script or script storage. The LDA
 +  # Sieve plugin uses this to find the active script for Sieve filtering at
 +  # delivery. The "include" extension uses this location for retrieving
 +  # :personal scripts. This is also where the  ManageSieve service will store
 +  # the user's scripts, if supported.
 +  # 
 +  # Currently only the 'file:' location type supports ManageSieve operation.
 +  # Other location types like 'dict:' and 'ldap:' can currently only
 +  # be used as a read-only script source ().
 +  #
 +  # For the 'file:' type: use the ';active=' parameter to specify where the
 +  # active script symlink is located.
 +  # For other types: use the ';name=' parameter to specify the name of the
 +  # default/active script.
 +  sieve = file:~/sieve;active=~/.dovecot.sieve
 ... ...
 </code> </code>
Zeile 470: Zeile 613:
 <code> <code>
 # doveconf -n # doveconf -n
-# 2.2.10: /etc/dovecot/dovecot.conf +# 2.2.18: /etc/dovecot/dovecot.conf 
-# OS: Linux 2.6.32-431.11.2.el6.x86_64 x86_64 CentOS release 6.(Final+# Pigeonhole version 0.4.8 (0c4ae064f307+) 
 +# OS: Linux 3.10.0-229.7.2.el7.x86_64 x86_64 CentOS Linux release 7.1.1503 (Core 
 auth_debug = yes auth_debug = yes
 +auth_debug_passwords = yes
 auth_master_user_separator = * auth_master_user_separator = *
 auth_mechanisms = plain digest-md5 cram-md5 login auth_mechanisms = plain digest-md5 cram-md5 login
 auth_verbose = yes auth_verbose = yes
 +listen = *
 mail_debug = yes mail_debug = yes
 mail_location = maildir:~/Maildir mail_location = maildir:~/Maildir
 mail_plugins = " quota acl" mail_plugins = " quota acl"
 managesieve_notify_capability = mailto managesieve_notify_capability = mailto
-managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress +managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date index ihave duplicate
-comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment +
-mailbox date ihave+
 mbox_write_locks = fcntl mbox_write_locks = fcntl
 namespace { namespace {
Zeile 535: Zeile 679:
   quota_warning = storage=95%% quota-warning 95 %u   quota_warning = storage=95%% quota-warning 95 %u
   quota_warning2 = storage=80%% quota-warning 80 %u   quota_warning2 = storage=80%% quota-warning 80 %u
-  sieve = ~/.dovecot.sieve +  sieve = file:~/sieve;active=~/.dovecot.sieve
-  sieve_dir = ~/sieve+
 } }
 protocols = imap lmtp sieve protocols = imap lmtp sieve
Zeile 553: Zeile 696:
 service managesieve-login { service managesieve-login {
   inet_listener sieve {   inet_listener sieve {
 +    address = 192.168.0.80
     port = 4190     port = 4190
-  } 
-  inet_listener sieve_deprecated { 
-    port = 2000 
   }   }
 } }
Zeile 569: Zeile 710:
 service quota-warning { service quota-warning {
   executable = script /usr/local/bin/quota-warning.sh   executable = script /usr/local/bin/quota-warning.sh
 +  unix_listener quota-warning {
 +    user = vmail
 +  }
   user = vmail   user = vmail
 } }
Zeile 586: Zeile 730:
 } }
 protocol imap { protocol imap {
 +  mail_max_userip_connections = 10
   mail_plugins = " quota acl imap_quota imap_acl"   mail_plugins = " quota acl imap_quota imap_acl"
 +}
 +protocol sieve {
 +  mail_max_userip_connections = 10
 } }
 </code> </code>
Zeile 597: Zeile 745:
 Stopping Dovecot Imap:                                      OK  ] Stopping Dovecot Imap:                                      OK  ]
 Starting Dovecot Imap:                                      OK  ] Starting Dovecot Imap:                                      OK  ]
 +</code>
 +bzw.
 +<code>
 +# systemctl restart dovecot
 </code> </code>
  
Zeile 602: Zeile 754:
 <code> <code>
 # netstat -tulpen | grep dovecot # netstat -tulpen | grep dovecot
-tcp        0    0 0.0.0.0:143              0.0.0.0:         LISTEN      0     2576144    27738/dovecot        +tcp        0      0 0.0.0.0:993            0.0.0.0:         LISTEN      0     92423      20786/dovecot        
-tcp        0    0 0.0.0.0:2000             0.0.0.0:         LISTEN      0     2576085    27738/dovecot        +tcp        0      0 0.0.0.0:143            0.0.0.0:         LISTEN      0     92422      20786/dovecot        
-tcp        0    0 192.168.0.80:12340       0.0.0.0:         LISTEN      0     2576208    27738/dovecot        +tcp        0      0 192.168.0.80:12340     0.0.0.0:         LISTEN      0     92484      20786/dovecot        
-tcp        0    0 192.168.0.80:24          0.0.0.0:         LISTEN      0     2576117    27738/dovecot      +tcp        0      0 192.168.0.80:24        0.0.0.0:         LISTEN      0     92395      20786/dovecot        
-tcp        0    0.0.0.0:4190             0.0.0.0:         LISTEN      0     2576083    27738/dovecot        +tcp        0      192.168.0.80:4190      0.0.0.0:         LISTEN      0     92364      20786/dovecot
-tcp        0    0 0.0.0.0:993              0.0.0.0:         LISTEN      0     2576146    27738/dovecot        +
-tcp        0    0 :::143                   :::              LISTEN      0     2576145    27738/dovecot        +
-tcp        0    0 :::2000                  :::*               LISTEN      0     2576086    27738/dovecot        +
-tcp        0    0 :::4190                  :::*               LISTEN      0     2576084    27738/dovecot        +
-tcp        0    0 :::993                   :::              LISTEN      0     2576147    27738/dovecot+
 </code> </code>
  
tachtler/dovecot_pigeonhole_sieve.1436528669.txt.gz · Zuletzt geändert: 2015/07/10 13:44 von klaus