mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-25 08:56:02 +03:00
[GH-ISSUE #747] Update 1.2.1 -> 1.3.3 issue: modoboa_amavis.models.DoesNotExist: Policy matching query does not exist #676
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#676
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 @mrh666 on GitHub (Jun 20, 2015).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/747
Hi there,
During the migration from 1.2.1 to 1.3.3 I deployed a new modoboa instance, added extensions, dbs and routers section to settings.py:
During migration process I run
python manage.py load_initial_dataand I've got the next error:How can I fix it?
Thank you!
@tonioo commented on GitHub (Jun 20, 2015):
Looks like you amavis database is missing some records. For each domain, you should have one record into the "policy" table and 1 record into the "users" one. In your case, the policy table is not complete. In you are in a hurry, I suggest you manually create missing records.
@mrh666 commented on GitHub (Jun 20, 2015):
O! That is interesting. I found the difference in policy and users, there is one alias record, like domain.com <- domainwithsuffix.com:
in users table
But if I'll create it manually, I should define it with the same id (11) which is wrong I assume.
What is proper way to do it?
P.S. During migration I break functionality of my mail system of course, but I temporary fixed it with manually inserted relay_domains instead of mysql:/etc/postfix/modoboa/sql-relaydomains.cf, commented mysql:/etc/postfix/modoboa/sql-relaydomain-aliases-transport.cf and mysql:/etc/postfix/modoboa/sql-autoreplies-transport.cf, and also used static access.db instead of mysql requests. Everything is working at the moment, just web ui is broken. So I'm not in hurry, I want to properly fix whole system.
@tonioo commented on GitHub (Jun 21, 2015):
You don't need to use the same id. Just create a policy with a policy_name == domainwithsuffix.com.
You need to run the postfix_maps command to update the sql map files. Check out the documentations to update your postfix configuration too :
@tonioo commented on GitHub (Jun 29, 2015):
Does it work now ?
@tonioo commented on GitHub (Jul 18, 2015):
This issue was moved to modoboa/modoboa-amavis#19