[GH-ISSUE #126] Cannot create same alias in different domains #98

Closed
opened 2026-02-26 09:35:52 +03:00 by kerem · 2 comments
Owner

Originally created by @ehooo on GitHub (Jan 25, 2015).
Original GitHub issue: https://github.com/opensolutions/ViMbAdmin/issues/126

If you have a "postmaster@my.domain" and you want you create "postmaster@other.domain" is not posible at all.

I think this is the Fix for "doctrine2/xm/Entities.Alias.dcm.xml"

7   -    <field name="address" type="string" unique="true" length="255" nullable="false"/>
7   +    <field name="address" type="string" length="255" nullable="false"/>
17 +    <unique-constraints>
18 +        <unique-constraint columns="address,Domain_id" name="unique_email" />
19 +    </unique-constraints>
Originally created by @ehooo on GitHub (Jan 25, 2015). Original GitHub issue: https://github.com/opensolutions/ViMbAdmin/issues/126 If you have a "postmaster@my.domain" and you want you create "postmaster@other.domain" is not posible at all. I think this is the Fix for "doctrine2/xm/Entities.Alias.dcm.xml" ``` 7 - <field name="address" type="string" unique="true" length="255" nullable="false"/> 7 + <field name="address" type="string" length="255" nullable="false"/> 17 + <unique-constraints> 18 + <unique-constraint columns="address,Domain_id" name="unique_email" /> 19 + </unique-constraints> ```
kerem closed this issue 2026-02-26 09:35:52 +03:00
Author
Owner

@barryo commented on GitHub (Jan 26, 2015):

@ehooo - I can't reproduce this. Furthermore, I have tons of the same aliases in different domains (obviously same user / local part, different domain).

Can you provide instructions to replicate on http://www.vimbadmin.net/demo/ ?

Closing pending reply.

<!-- gh-comment-id:71421013 --> @barryo commented on GitHub (Jan 26, 2015): @ehooo - I can't reproduce this. Furthermore, I have tons of the same aliases in different domains (obviously same user / local part, different domain). Can you provide instructions to replicate on http://www.vimbadmin.net/demo/ ? Closing pending reply.
Author
Owner

@ehooo commented on GitHub (Jan 26, 2015):

Sorry, my fault.
The fault is that you can not create any mail from a IP address.

http://www.vimbadmin.net/demo/mailbox/list/did/12
http://www.vimbadmin.net/demo/alias/list/did/12

<!-- gh-comment-id:71447168 --> @ehooo commented on GitHub (Jan 26, 2015): Sorry, my fault. The fault is that you can not create any mail from a IP address. http://www.vimbadmin.net/demo/mailbox/list/did/12 http://www.vimbadmin.net/demo/alias/list/did/12
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ViMbAdmin-opensolutions#98
No description provided.