The only way for this to happen would be if accounts@example2.test was misconfigured to deliver to user “accounts”, not “accounts2”. In this case it would be reflected as the destination user in Mail > Manage Mailboxes. Likewise the actual transaction can be verified using postmap:
interestingly enough postmap does say that the emails are going to the right inbox, but when i opened that account in roundcube it was opening accounts@example1.test’s email box
yeah thats what i used, accounts@example2.test on roundcube and it showed me all the emails from accounts@example1.test, additionally when i click user settings in the drop down mail > manage mailboxes it takes me to accounts@example1.test’s account while still saying accounts@example2’s account in destination
i am not talking about panel access, only roundcube access, shouldnt it give me a wrong user if i were to use accounts@example2.test instead of just logging me into that account
In the aforementioned screenshot to access accounts@secleaners.com.au, you would login as secaccounts@secleaners.com.au, not accounts@secleaners.com.au. Logging in with the login accounts@secleaners.com.au would log you into the user account for “accounts”, not “secaccounts”.
thats what id expect according to what youve said, but thats not the case, see screenshot below, when i log in to accounts@secleaners.com.au it shows that as the user and emails sent from that address come from the address in the screenshot below, the only difference is that it is stored in the user directory of the accounts@otheremail.com,
ill put 2 more images in other replies, sorry for spam but as a new account i cant attach more than 1 image
seems like i was using the password for accounts to log in, which might be why its using the accounts storage, but then the username should be wrong. using the correct username as per your instruction(secaccounts) and the password for secaccounts gives me a user that is secaccounts@secleaners.com.au and sends email from that account instead with no option to send from accounts@secleaners.com.au
In this situation both accounts@emailtest.test and secaccounts@emailtest.test deliver to the same user, secaccounts. Whatever is listed in Mail > Mail Routing wins. You can login to webmail using the login “accounts@emailtest.test” but any responses sent from this account - which is stored in /home/accounts/Mail/.Sent/cur would be delivered to user secaccounts, not accounts.
After logging in to webmail as “accounts@emailtest.test” and sending an email to accounts@emailtest.test CC secaccounts@emailtest.test, both were delivered to the user specified in Mail Routing.
When working with the same name across multiple domains, use namespacing to group addresses
of a similar domain. Override the “From” field in your email client.