smedev:dovecot

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
smedev:dovecot [07/09/2012 11:03]
dani [Installation]
smedev:dovecot [23/11/2013 19:40] (Version actuelle)
dani [Configuration]
Ligne 31: Ligne 31:
  
  
-This project is in early beta stage. We're using it on a small site (~10 users) and it seems to be working fine, but please, don't run this yet on production server.+This project is in beta stage. We're using it on about 10 production servers (the biggest one handle about 120 users) since several years now, and we have no issue.
  
  
Ligne 42: Ligne 42:
     * **Quota report**: if a user has a quota defined, it'll be available to IMAP clients which support it. (default to enabled). More info on this feature here: [[http://wiki2.dovecot.org/Quota/FS|http://wiki2.dovecot.org/Quota/FS]]     * **Quota report**: if a user has a quota defined, it'll be available to IMAP clients which support it. (default to enabled). More info on this feature here: [[http://wiki2.dovecot.org/Quota/FS|http://wiki2.dovecot.org/Quota/FS]]
     * **Full text indexing**: this feature allows dovecot to create full text indexes, which will make subsequent searches (TEXT and BODY) much, much faster. The downside is that it'll take extra space on the hard drive, and consume more memory and CPU (default is disabled). More info on this feature here: [[http://wiki2.dovecot.org/Plugins/FTS/Squat|http://wiki2.dovecot.org/Plugins/FTS/Squat]]     * **Full text indexing**: this feature allows dovecot to create full text indexes, which will make subsequent searches (TEXT and BODY) much, much faster. The downside is that it'll take extra space on the hard drive, and consume more memory and CPU (default is disabled). More info on this feature here: [[http://wiki2.dovecot.org/Plugins/FTS/Squat|http://wiki2.dovecot.org/Plugins/FTS/Squat]]
-    * **Master user**: if enabled, the admin user will be able to login on the IMAP server as any user. For example, use user1<nowiki>*</nowiki>admin as login, and the admin password as password, and you'll get access to user1 emails. This can be usefull if the admin wants to troobleshoot something in the mailboxe, or need to copy some folder from one mailbox to another. Ths default config disables this feature. More information here: [[http://wiki2.dovecot.org/Authentication/MasterUsers|http://wiki2.dovecot.org/Authentication/MasterUsers]] +    * **Master user**: if enabled, the admin user will be able to login on the IMAP server as any user. For example, use user1<nowiki>*</nowiki>admin as login, and the admin password as password, and you'll get access to user1 emails. This can be usefull if the admin wants to troobleshoot something in the mailboxe, or need to copy some folder from one mailbox to another. The default config disables this feature. More information here: [[http://wiki2.dovecot.org/Authentication/MasterUsers|http://wiki2.dovecot.org/Authentication/MasterUsers]] 
-    * **Shared Mailboxes and IMAP ACL**: this feature lets users of the allowed groups to share some of their folders to other users using IMAP ACL. See [[http://wiki2.dovecot.org/ACL|http://wiki2.dovecot.org/ACL]] and [[http://wiki2.dovecot.org/SharedMailboxes|http://wiki2.dovecot.org/SharedMailboxes]]+    * **Shared Mailboxes and IMAP ACL**: this feature enables sharing of mail folders between users using IMAP ACL. See [[http://wiki2.dovecot.org/ACL|http://wiki2.dovecot.org/ACL]] and [[http://wiki2.dovecot.org/SharedMailboxes|http://wiki2.dovecot.org/SharedMailboxes]]
     * **Extra logging**: The default dovecot log level is appropriate for high trafic installation: only most important actions are logged: daemon startup, config reload, user login and logout. With this feature, you can trace IMAP activity for each user (when mails are opened, deleted, copied, flag changed etc…). See [[http://wiki2.dovecot.org/Plugins/MailLog|http://wiki2.dovecot.org/Plugins/MailLog]]     * **Extra logging**: The default dovecot log level is appropriate for high trafic installation: only most important actions are logged: daemon startup, config reload, user login and logout. With this feature, you can trace IMAP activity for each user (when mails are opened, deleted, copied, flag changed etc…). See [[http://wiki2.dovecot.org/Plugins/MailLog|http://wiki2.dovecot.org/Plugins/MailLog]]
-    * **Sieve scripts and manage sieve daemon**: this feature adds sieve scripts support. Sieve is a script language for server side mail processing when mails arrive in your mailbox. With this, you can create filters, reject mails with a custom message, configure a vacation message, forward some mails etc…. These features are often available on mail clients (Outlook, Thunderbird, Evolution etc…) but the advantage of using sieve is that everything is processed on server side, as soon as the mail arrive in your INBOX, which means everything will work even if your client is not running. See [[http://wiki2.dovecot.org/Pigeonhole|http://wiki2.dovecot.org/Pigeonhole]]+    * **Sieve scripts and manage sieve daemon**: this feature adds sieve scripts support. Sieve is a script language for server side mail processing when mails arrive in your mailbox. With this, you can create filters, reject mails with a custom message, configure a vacation message, forward some mails etc…. These features are often also available on mail clients (Outlook, Thunderbird, Evolution etc…) but the advantage of using sieve is that everything is processed on server side, as soon as the mail arrive in your INBOX, which means everything will work even if your client is not running. See [[http://wiki2.dovecot.org/Pigeonhole|http://wiki2.dovecot.org/Pigeonhole]]
 ===== Installation ===== ===== Installation =====
  
Ligne 59: Ligne 59:
 GPGKey http://repo.firewall-services.com/RPM-GPG-KEY \ GPGKey http://repo.firewall-services.com/RPM-GPG-KEY \
 Visible yes status disabled Visible yes status disabled
- +  
-db yum_repositories set atrpms-dovecot repository \ +db yum_repositories set atrpms-testing repository \ 
-BaseURL http://dl.atrpms.net/el5-i386/atrpms/testing \+BaseURL 'http://dl.atrpms.net/el$releasever-$basearch/atrpms/testing\
 EnableGroups yes \ EnableGroups yes \
 GPGCheck yes \ GPGCheck yes \
Ligne 68: Ligne 68:
 Visible no \ Visible no \
 status disabled \ status disabled \
-IncludePkgs 'dovecot-pigeonhole,dovecot-managesieve' \+IncludePkgs 'dovecot-pigeonhole,dovecot-managesieve,dovecot' \
 Priority 9 Priority 9
 + 
 /sbin/e-smith/db yum_repositories set atrpms repository \ /sbin/e-smith/db yum_repositories set atrpms repository \
 Name 'atrpms - EL5' \ Name 'atrpms - EL5' \
-BaseURL 'http://dl.atrpms.net/el5-$basearch/atrpms/stable' \+BaseURL 'http://dl.atrpms.net/el$releasever-$basearch/atrpms/stable' \
 EnableGroups no \ EnableGroups no \
 GPGCheck yes \ GPGCheck yes \
Ligne 83: Ligne 83:
 librpm4,glib2,perl-libwww-perl,perl-Convert-ASN1,beecrypt,fetchmail,\ librpm4,glib2,perl-libwww-perl,perl-Convert-ASN1,beecrypt,fetchmail,\
 libacl,libtool-ltdl,popt,libgpg-error,freetype,perl-MIME-tools,mutt,\ libacl,libtool-ltdl,popt,libgpg-error,freetype,perl-MIME-tools,mutt,\
-gd,perl-TimeDate,librpm4.4 \+gd,perl-TimeDate,librpm4.4,dovecot \
 status disabled status disabled
 signal-event yum-modify signal-event yum-modify
 </code> </code>
 +
 +
 +<hidden iPasserelle config> iPasserelle needs a specific repo config as it uses additionnal repo with different priorities
 +
 +
 +<code bash>
 +
 +db yum_repositories set atrpms-testing-dovecot repository \
 +Name 'atrpms testing - EL5 - dovecot' \
 +BaseURL 'http://dl.atrpms.net/el$releasever-$basearch/atrpms/testing' \
 +EnableGroups no \
 +GPGCheck yes \
 +GPGKey http://ATrpms.net/RPM-GPG-KEY.atrpms \
 +Visible no \
 +Priority 8 \
 +IncludePkgs dovecot-managesieve,dovecot-pigeonhole,dovecot \
 +status enabled
 + 
 +signal-event yum-modify
 +</code>
 +
 +
 +</hidden>
  
  
Ligne 93: Ligne 116:
  
 <code bash> <code bash>
-yum --enablerepo=fws-testing --enablerepo=atrpms-dovecot --enablerepo=atrpms install smeserver-dovecot+yum --enablerepo=fws-testing --enablerepo=atrpms-testing --enablerepo=atrpms install smeserver-dovecot
 </code> </code>
  
  
-You also need to mount the filesystem where /home/e-smith/files/users is stored with the **acl**   option (it will be usually / or /home/e-smith/files if you used the **sme multipart**   install option). To do so, just edit the file /etc/fstab, and add **acl**   after the usrquota,grpquota, for example:+You also need to mount the filesystem where /home/e-smith/files/users is stored with the **acl**  option (it will be usually / or /home/e-smith/files if you used the **sme multipart**  install option). To do so, just edit the file /etc/fstab, and add **acl**  after the usrquota,grpquota, for example:
  
  
-<code bash>#------------------------------------------------------------+<code bash> 
 +#------------------------------------------------------------
 # BE CAREFUL WHEN MODIFYING THIS FILE! It is updated automatically # BE CAREFUL WHEN MODIFYING THIS FILE! It is updated automatically
 # by the SME server software. A few entries are updated during # by the SME server software. A few entries are updated during
Ligne 123: Ligne 147:
  
  
-This should already be the case if you have installed the **smeserver-shared-folders**   contrib.+This should already be the case if you have installed the [[http://wiki.contribs.org/SharedFolders|smeserver-shared-folders]] contrib.
  
  
Ligne 141: Ligne 165:
  
  
-    * imap and imaps are used to be backward compatible with e-smith-imap (and are used to control the TCPPort of the service, and if it's accessible from local network or from the internet)+    * **imap** and imaps are used to be backward compatible with e-smith-imap (and are used to control the TCPPort of the service, and if it's accessible from local network or from the internet)
       * There's a new prop for the imap service: AllowPlainText. It can be enabled or disabled (default to enabled for backward compatibility), and if set to disabled, dovecot will still listen on port 143, but will only accept TLS connexions, even from the local networks       * There's a new prop for the imap service: AllowPlainText. It can be enabled or disabled (default to enabled for backward compatibility), and if set to disabled, dovecot will still listen on port 143, but will only accept TLS connexions, even from the local networks
-    * dovecot is now the main service entry in the configuration DB. It's used to control various optional features of dovecot +    * **dovecot** is now the main service entry in the configuration DB. It's used to control various optional features of dovecot 
-    * sieve is used to control the managesieve service. Set the status of this service to disabled if you don't want to use the managesieve service+    * **sieve** is used to control the managesieve service. Set the status of this service to disabled if you don't want to use the managesieve service
  
  
Ligne 150: Ligne 174:
  
  
-    * **AdminIsMaster**      (enabled|disabled, default is disabled): if enabled, the admin user will be a [[http://wiki2.dovecot.org/Authentication/MasterUsers|master user]], and will be able to login as any user. To do so Use user1<nowiki>*</nowiki>admin and the admin password to log as user1 +    * **AdminIsMaster**  (enabled|disabled, default is disabled): if enabled, the admin user will be a [[http://wiki2.dovecot.org/Authentication/MasterUsers|master user]], and will be able to login as any user. To do so use user1<nowiki>*</nowiki>admin  as login and the admin password to log as user1 
-    * **FullTextIndexing**      (enabled|disabled, default is disabled): will turn on or off the full text indexing. When this option is enabled, a first search in an IMAP folder will trigger indexation. Next searches will be much faster. Read [[http://wiki2.dovecot.org/Plugins/FTS/Squat|this page]] before enabling this option +    * **FullTextIndexing**  (enabled|disabled, default is disabled): will turn on or off the full text indexing. When this option is enabled, a first search in an IMAP folder will trigger indexation. Next searches will be much faster. Read [[http://wiki2.dovecot.org/Plugins/FTS/Squat|this page]] before enabling this option 
-    * **LogActions**      (enabled|disabled, default is disabled): will turn on or off extra logging (flag change, move, copy etc…). **!! Warning !!**: enabling this can generate a huge amount of logs +    * **LogActions**  (enabled|disabled, default is disabled): will turn on or off extra logging (flag change, move, copy etc…). **!! Warning !!**: enabling this can generate a huge amount of logs 
-    * **Quotas**      (enabled|disabled, default is enabled): will report the actual used space and the remaining one if the user has a quota limit +    * **Quotas**  (enabled|disabled, default is enabled): will report the actual used space and the remaining one if the user has a quota limit 
-    * **SharedMailbox**      (enabled|disabled, default is disabled): will turn on or off shared mailbox and IMAP ACL support+    * **SharedMailbox**  (enabled|disabled, default is disabled): will turn on or off shared mailbox and IMAP ACL support
 After you've configured the prop like you want, just run After you've configured the prop like you want, just run
  
Ligne 169: Ligne 193:
  
  
-When Sieve is enabled, [[http://wiki2.dovecot.org/LDA|dovecot-lda]] is used to deliver mail in mailboxes (so it can apply sieve scripts) instead of qmail. Dovecot-lda is more ressources intensivesthan qmail, so you may have performance penalty when users receive a lot of mails (for example, when you use the Bcc qpsmtpd's plugin to copy every mail in one mailbox). You can selectivly disable dovecot-lda for some users, for example, to disable dovecot-lda for user maillog:+When Sieve is enabled, [[http://wiki2.dovecot.org/LDA|dovecot-lda]] is used to deliver mail in mailboxes (so it can apply sieve scripts) instead of qmail. Dovecot-lda is more ressources intensives than qmail, so you may have performance penalty when users receive a lot of mails (for example, when you use the Bcc qpsmtpd's plugin to copy every mail in one mailbox). You can selectivly disable dovecot-lda for some users, for example, to disable dovecot-lda for user maillog:
  
  
Ligne 192: Ligne 216:
 <code bash> <code bash>
 db configuration setprop dovecot SharedMailbox enabled db configuration setprop dovecot SharedMailbox enabled
 +signal-event email-update
 </code> </code>
  
  
-When this feature is enabled,  a special group named sharedmailbox (automatically created during install) will have:+When this feature is enabled, a special group named sharedmailbox (automatically created during install) will have:
  
  
Ligne 208: Ligne 233:
  
  
-Once enabled, you can grant different access level (read, post, delete, change flags, create sub folders etc.) to other users, or group of users to some, or all of your mailbox.+Once enabled, you can grant different access level (read, post, delete, change flags, create sub folders etc.) to other users, or group of users on your IMAP folders.
  
  
  • smedev/dovecot.1347008623.txt.gz
  • Dernière modification: 07/09/2012 11:03
  • (modification externe)