-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into var-expand-system
- Loading branch information
Showing
60 changed files
with
2,409 additions
and
162 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
.. _find_mail_location: | ||
|
||
Finding Your Mail | ||
================= | ||
|
||
Before configuring Dovecot, you'll need to know where your mails are | ||
located. You should already have an SMTP server installed and configured | ||
to deliver mails somewhere, so the easiest way to make Dovecot work is | ||
to just use the same location. Otherwise you could create a ``~/Maildir`` | ||
directory and configure your SMTP server to use the Maildir format. | ||
|
||
First send a test mail to yourself (as your own non-root user): | ||
|
||
:: | ||
|
||
echo "Hello me" | mail -s "Dovecot test" $USER | ||
|
||
Now, find where the mail went. Here's a simple script which checks the | ||
most common locations: | ||
|
||
:: | ||
|
||
for mbox in /var/mail/$USER /var/spool/mail/$USER ~/mbox ~/mail/* ~/*; do | ||
grep -q "Dovecot test" "$mbox" && echo "mbox: $mbox" | ||
done | ||
grep -q "Dovecot test" ~/Maildir/new/* 2>/dev/null && echo "Maildir: ~/Maildir" | ||
|
||
mbox | ||
---- | ||
|
||
In most installations your mail went to ``/var/mail/username`` file. | ||
This file is called **INBOX** in IMAP world. Since IMAP supports | ||
multiple mailboxes, you'll also have to have a directory for them as | ||
well. Usually ``~/mail`` is a good choice for this. For installation | ||
such as this, the mail location is specified with (typically in | ||
``conf.d/10-mail.conf``): | ||
|
||
:: | ||
|
||
mail_location = mbox:~/mail:INBOX=/var/mail/%u | ||
|
||
Where ``%u`` is replaced with the username that logs in. Similarly if | ||
your INBOX is in ``~/mbox``, use: | ||
|
||
:: | ||
|
||
mail_location = mbox:~/mail:INBOX=~/mbox | ||
|
||
Maildir | ||
------- | ||
|
||
Maildir exists almost always in ``~/Maildir`` directory. The mail | ||
location is specified with (typically in ``conf.d/10-mail.conf``): | ||
|
||
:: | ||
|
||
mail_location = maildir:~/Maildir | ||
|
||
Problems? | ||
--------- | ||
|
||
If you can't find the mail, you should check your SMTP server logs and | ||
configuration to see where it went or what went wrong. | ||
|
||
If you can find the mail, but it's in more exotic location, see if | ||
:ref:`mail_location_settings` can help you to configure it. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
Importing mailboxes | ||
=================== | ||
|
||
For importing mails, dovecot has `doveadm import <https://wiki.dovecot.org/Tools/Doveadm/Import>`_ command. | ||
For importing mails, dovecot has the :man:`doveadm-import(1)` command. | ||
|
||
.. warning:: | ||
|
||
|
@@ -63,7 +63,7 @@ In some disaster recovery cases you may end up having mails for the same user | |
in two different locations, and need to merge them. For example the storage | ||
goes down and fixing it takes a long time, so during the fixing you can let the | ||
users access their emails as an empty account, which can receive new mails. | ||
Later on you can use ``doveadm import`` to merge the mailboxes. | ||
Later on you can use :man:`doveadm-import(1)` to merge the mailboxes. | ||
|
||
Note that there is no way to make this solution perfect: | ||
* IMAP clients that have cached mails locally will delete their local caches | ||
|
@@ -107,7 +107,7 @@ mails") where mail storage broke down, but a separate index storage is ok, and | |
index storage supports snapshots: | ||
|
||
* Snapshot the current index volume at the time of breakage | ||
* Make sure ``mail_location`` setting has ``ITERINDEX`` feature enabled, so | ||
* Make sure :dovecot_core:ref:`mail_location` setting has ``ITERINDEX`` feature enabled, so | ||
folder listing is done using the index volume rather than the mail volume. | ||
* Mount a new empty mail volume | ||
|
||
|
@@ -124,13 +124,13 @@ index storage supports snapshots: | |
looks exactly like it was at the time of breakage. | ||
* Mount the new mail volume to some temporary mountpoint. | ||
* Mount the second index snapshot to some temporary mountpoint. | ||
* Use ``doveadm import`` to recover new mails: | ||
* Use :man:`doveadm-import(1)` to recover new mails: | ||
|
||
.. code-block:: | ||
doveadm import -u [email protected] sdbox:/mnt/temp-mail-storage/user:INDEX=/mnt/temp-index-storage/user:CONTROL=/mnt/temp-index-storage/user:ITERINDEX "" all | ||
If your normal ``mail_location`` has other settings, you may also want to | ||
If your normal :dovecot_core:ref:`mail_location` has other settings, you may also want to | ||
specify them using some temporary locations. For example | ||
``VOLATILEDIR=/tmp/doveadm-import/user:LISTINDEX=/tmp/doveadm-import/user/dovecot.list.index`` | ||
and after importing delete the directories. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
.. _known_issues_mbox_problems: | ||
.. _known_issues-mbox_problems: | ||
|
||
============= | ||
mbox problems | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.