Fixed: incorrect Dovecot Master User account used by SOGo.

This commit is contained in:
Zhang Huangbin 2015-07-31 22:26:38 +08:00
parent 9cbd2d8927
commit 945d7b7783
4 changed files with 95 additions and 12 deletions

View File

@ -43,9 +43,10 @@ WARNING:
* on Linux/FreeBSD, Dovecot daemon user/group is `dovecot/dovecot`.
* on OpenBSD, Dovecot daemon user/group is `_dovecot/_dovecot`.
* If you don't append a (non-exist) mail domain name, Dovecot will use the
domain name of your login username. For example, if your real user is
`myuser@mydomain.com`, login as `myuser@mydomain.com*my_master_user` will
* If you don't append a (non-exist) mail domain name in Dovecot Master User
account, Dovecot will use the domain name of your login username. For example,
if your real user is `myuser@mydomain.com`, when you try to access this user's
mailbox as Dovecot Master User `myuser@mydomain.com*my_master_user`, it will
trigger Dovecot to verify user `my_master_user@mydomain.com` which doesn't
exist on your server, then this login attempt fails.

View File

@ -8,9 +8,11 @@ __This is still a DRAFT document, do NOT apply it.__
> We provide remote upgrade service, check [the price](../support.html) and [contact us](../contact.html).
* 2015-07-06: Add new SQL table `outbound_wblist` in `amavisd` database
* 2015-07-06: Amavisd: Fix incorrect setting which signs DKIM on inbound messages
* 2015-07-03: Dovecot: Fix incorrect quota warning priorities
* 2015-07-31: SOGo: The Dovecot Master User used by SOGo doesn't work due to incorrect username.
* 2015-07-31: [LDAP] Fixed: Dovecot Master User doesn't work with ACL plugin.
* 2015-07-06: Add new SQL table `outbound_wblist` in `amavisd` database.
* 2015-07-06: Amavisd: Fix incorrect setting which signs DKIM on inbound messages.
* 2015-07-03: Dovecot: Fix incorrect quota warning priorities.
* 2015-06-30: Dovecot-2.2: Add more special folders as alias folders.
* 2015-06-09: [OPTIONAL] Fixed: Not preserve the case of `${extension}` while delivering message to mailbox.
@ -196,6 +198,47 @@ Add below alias folders inside the same `namespace {}` block:
Restart Dovecot service is required.
### SOGo: The Dovecot Master User used by SOGo doesn't work due to incorrect username.
Note: you can skip this step if you don't run SOGo groupware, and iRedMail
doesn't install SOGo on FreeBSD due to missing required ports in official ports
tree.
The Dovecot Master User created by iRedMail and used by SOGo doesn't contain
a mail domain name, this will cause login failure.
If you don't append a (non-exist) mail domain name in Dovecot Master User
account, Dovecot will use the domain name of your login username. For example,
if your real user is `myuser@mydomain.com`, when you try to access this user's
mailbox as Dovecot Master User `myuser@mydomain.com*my_master_user`, it will
trigger Dovecot to verify user `my_master_user@mydomain.com` which doesn't
exist on your server, then this login attempt fails.
Please follow steps below to fix it.
* Open file `/etc/dovecot/dovecot-master-users` (Linux/OpenBSD),
find the account used by SOGo:
```
sogo_sieve_master:...
```
* Append any mail domain name which is not hosted on your server to this
account, save your change. for example:
```
sogo_sieve_master@not-exist.com:...
```
* Open file `/etc/sogo/sieve.cred`, append the same mail domain name for the
sieve account:
```
sogo_sieve_master@not-exist.com:...
```
That's all.
### [OPTIONAL] Fixed: Not preserve the case of `${extension}` while delivering message to mailbox
With iRedMail-0.9.2 and earlier releases, email sent to user

View File

@ -50,9 +50,10 @@ protocol) as user <code>user@domain.ltd*my_master_user@not-exist.com</code> with
</ul>
</li>
<li>
<p>If you don't append a (non-exist) mail domain name, Dovecot will use the
domain name of your login username. For example, if your real user is
<code>myuser@mydomain.com</code>, login as <code>myuser@mydomain.com*my_master_user</code> will
<p>If you don't append a (non-exist) mail domain name in Dovecot Master User
account, Dovecot will use the domain name of your login username. For example,
if your real user is <code>myuser@mydomain.com</code>, when you try to access this user's
mailbox as Dovecot Master User <code>myuser@mydomain.com*my_master_user</code>, it will
trigger Dovecot to verify user <code>my_master_user@mydomain.com</code> which doesn't
exist on your server, then this login attempt fails.</p>
</li>

View File

@ -22,6 +22,7 @@
<li><a href="#amavisd-fix-incorrect-setting-which-signs-dkim-on-inbound-messages">Amavisd: Fix incorrect setting which signs DKIM on inbound messages</a></li>
<li><a href="#dovecot-fix-incorrect-quota-warning-priorities">Dovecot: Fix incorrect quota warning priorities</a></li>
<li><a href="#dovecot-22-add-more-special-folders-as-alias-folders">Dovecot-2.2: Add more special folders as alias folders</a></li>
<li><a href="#sogo-the-dovecot-master-user-used-by-sogo-doesnt-work-due-to-incorrect-username">SOGo: The Dovecot Master User used by SOGo doesn't work due to incorrect username.</a></li>
<li><a href="#optional-fixed-not-preserve-the-case-of-extension-while-delivering-message-to-mailbox">[OPTIONAL] Fixed: Not preserve the case of ${extension} while delivering message to mailbox</a></li>
</ul>
</li>
@ -48,9 +49,11 @@
<p>We provide remote upgrade service, check <a href="../support.html">the price</a> and <a href="../contact.html">contact us</a>.</p>
</blockquote>
<ul>
<li>2015-07-06: Add new SQL table <code>outbound_wblist</code> in <code>amavisd</code> database</li>
<li>2015-07-06: Amavisd: Fix incorrect setting which signs DKIM on inbound messages</li>
<li>2015-07-03: Dovecot: Fix incorrect quota warning priorities</li>
<li>2015-07-31: SOGo: The Dovecot Master User used by SOGo doesn't work due to incorrect username.</li>
<li>2015-07-31: [LDAP] Fixed: Dovecot Master User doesn't work with ACL plugin.</li>
<li>2015-07-06: Add new SQL table <code>outbound_wblist</code> in <code>amavisd</code> database.</li>
<li>2015-07-06: Amavisd: Fix incorrect setting which signs DKIM on inbound messages.</li>
<li>2015-07-03: Dovecot: Fix incorrect quota warning priorities.</li>
<li>2015-06-30: Dovecot-2.2: Add more special folders as alias folders.</li>
<li>2015-06-09: [OPTIONAL] Fixed: Not preserve the case of <code>${extension}</code> while delivering message to mailbox.</li>
</ul>
@ -216,6 +219,41 @@ earlier versions, please skip this step.</p>
</code></pre>
<p>Restart Dovecot service is required.</p>
<h3 id="sogo-the-dovecot-master-user-used-by-sogo-doesnt-work-due-to-incorrect-username">SOGo: The Dovecot Master User used by SOGo doesn't work due to incorrect username.</h3>
<p>Note: you can skip this step if you don't run SOGo groupware, and iRedMail
doesn't install SOGo on FreeBSD due to missing required ports in official ports
tree.</p>
<p>The Dovecot Master User created by iRedMail and used by SOGo doesn't contain
a mail domain name, this will cause login failure.</p>
<p>If you don't append a (non-exist) mail domain name in Dovecot Master User
account, Dovecot will use the domain name of your login username. For example,
if your real user is <code>myuser@mydomain.com</code>, when you try to access this user's
mailbox as Dovecot Master User <code>myuser@mydomain.com*my_master_user</code>, it will
trigger Dovecot to verify user <code>my_master_user@mydomain.com</code> which doesn't
exist on your server, then this login attempt fails.</p>
<p>Please follow steps below to fix it.</p>
<ul>
<li>Open file <code>/etc/dovecot/dovecot-master-users</code> (Linux/OpenBSD),
find the account used by SOGo:</li>
</ul>
<pre><code>sogo_sieve_master:...
</code></pre>
<ul>
<li>Append any mail domain name which is not hosted on your server to this
account, save your change. for example:</li>
</ul>
<pre><code>sogo_sieve_master@not-exist.com:...
</code></pre>
<ul>
<li>Open file <code>/etc/sogo/sieve.cred</code>, append the same mail domain name for the
sieve account:</li>
</ul>
<pre><code>sogo_sieve_master@not-exist.com:...
</code></pre>
<p>That's all.</p>
<h3 id="optional-fixed-not-preserve-the-case-of-extension-while-delivering-message-to-mailbox">[OPTIONAL] Fixed: Not preserve the case of <code>${extension}</code> while delivering message to mailbox</h3>
<p>With iRedMail-0.9.2 and earlier releases, email sent to user
<code>username+Ext@domain.com</code> (upper case <code>E</code>) will be delivered to folder