Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
In /server/mailet/integration-testing write integration tests for the alias feature
Basic
Given bob@domain.tld with a bob-alias@domain.tld alias When alice@domain.tld sends a mail to bob-alias@domain.tld Then bob@domain.tld receives it
Forward compatibility
Forwards are handled for users with alias
Given bob@domain.tld with a bob-alias@domain.tld alias And bob@domain.tld is forwarding emails to cedic@domain.tld When alice@domain.tld sends a mail to bob-alias@domain.tld Then cedric@domain.tld receives it
I can forward an email to a user with an alias
Given bob@domain.tld with a bob-alias@domain.tld alias And alice@domain.tld is forwarding emails to bob-alias@domain.tld When cedric@domain.tld is sending an email to alice@domain.tld Then bob@domain.tld receives it
Group compatibility
A user can register in a group via his alias
Given bob@domain.tld with a bob-alias@domain.tld alias And a group group@domain.tld with bob-alias@domain.tld as a member When alice@domain.tld is sending an email to group@domain.tld Then bob@domain.tld receives it
A group can have an alias
Given a group group@domain.tld with bob@domain.tld as a member
And I create a group-alias@domain.tld for group@domain.tld
When alice@domain.tld is sending an email to group-alias@domain.tld
Then bob@domain.tld receives it
Cascading aliases
Given bob@domain.tld with a bob-alias1@domain.tld alias And bob-alias1@domain.tld with a bob-alias2@domain.tld alias When alice@domain.tld is sending an email to bob-alias2@domain.tld Then bob@domain.tld receives the mail
Corner cases
Several users can have the same alias.
Alice create alias@domain.tld Bob create alias@domain.tld When Cedric sends a mail to alias@domain.com Then Alice and Bob receives it
Note: we can not prevent bob and alice from having the same alias easily