mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-28 02:15:56 +03:00
[GH-ISSUE #1254] Adding subdomain as alias results in traceback #1019
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#1019
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 @stooj on GitHub (Sep 27, 2017).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1254
Impacted versions
Steps to reproduce
Create a domain (
example.com)After the domain has been created, edit it and add an alias (
mail.example.com)Current behavior
HTTP 500 - internal error
Expected behavior
A new alias should be created, or an error message explaining that subdomains are not permitted.
Traceback
@stooj commented on GitHub (Sep 27, 2017):
It looks like I have two rows in my amavis policy table with the same
policy_namevalue.Could this have been caused by the following actions?
example.comuser@example.comuser@example.comuser@example.com, which exists on the old server?@stooj commented on GitHub (Sep 27, 2017):
I've deleted the second record in the policy table, using a django shell.
Trying again, still get an error, but to do with users now. There is no user, which was presumably deleted during the policy deletion.
I can now create and delete alias domains. 🎆
When setting up the server, I made one change directly to the database:
Aside from that, this is a stock modoboa installation, so I must have done something through the interface that got me into this state.
@kryskool commented on GitHub (Apr 7, 2018):
This issue was moved to modoboa/modoboa-amavis#107