mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-27 09:55:58 +03:00
[GH-ISSUE #443] postfix configuration upgrade documentation for modoboa 1.0.0 is incorrect #428
Labels
No labels
bug
bug
dependencies
design
documentation
duplicate
enhancement
enhancement
enhancement
feedback-needed
help-needed
help-needed
installer
invalid
looking-for-sponsors
modoboa-contacts
new-ui
new-ui
pr
pull-request
pyconfr
python
question
security
stale
webmail
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/modoboa-modoboa#428
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tonioo on GitHub (Dec 4, 2013).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/443
Originally assigned to: @tonioo on GitHub.
Originally created by Louis-Dominique Dubeau on 2013-08-08T10:54:52Z
See this page:
http://modoboa.readthedocs.org/en/latest/getting_started/upgrade.html
The passage in question:
It is necessary to update the queries used to retrieve users and mailboxes: 1. Replace all occurences of auth_user by admin_user 2. Into dovecot-sql.conf, update the user_query query, refer to MySQL users or PostgreSQL users 3. Update dovecot’s configuration to activate the new quota related featuresStep 1 understates the issue. During my migration to 1.0.0 I've followed the instruction there to the letter: I went through the files I've created for accessing mailboxes and users and replaced all cases of "auth_user" with "admin_user" and told postfix to reload its configuration. Postfix's logs showed failure message due to the modoboa config. I restarted postfix (just in case). Same thing.
I decided to read the docs for a fresh modoboa install and noticed this:
So I generated these files in a temporary directory and compared them with the files I already had. Two of the files were significantly different. Once I replaced my files with these, modoboa worked fine. In light of this, I think the first step above should be replaced with:
1. Run modoboa-admin.py postfix_maps --dbtype and compare the files with those that postfix currently use. Make necessary updates in light of the differences.h1. Supporting evidence
The documentation for modoboa 0.9.5 talking about how to manually create these files states that etc/postfix/sql-mailboxes.cf should contain the following:
However, the same file, produced by modoboa-admin.py contains:
Notice how the query line is completely different. One cannot upgrade this file to work to modoboa 1.0.0 by just changing auth_user to admin_user.
This is the error I got in my mail logs:
And indeed this field appears to be removed by admin/migrations/0022_auto__del_field_mailbox_uid__del_field_mailbox_gid__del_field_mailbox_.py
@tonioo commented on GitHub (Dec 4, 2013):
Posted by Antoine Nguyen on 2013-08-29T17:13:55Z
Applied in changeset commit:94bb096c9ac6f463840bed6321ddd8df4764a24b.