• Community Support
  • USEnglish
  • Allow user to create temporary email address for another domain

Hi,
Thanks for mailcow! I am about to move solely to self hosting my emails with it.
My server has a “proper” domain name and another domain name that I intend to use for temporary email addresses. My issue is that when a user tries to create a temporary email address, they are only offered to create on under the domain at which they already have their “proper” email address. However, the idea is that the temporary email address should be created under the other domain.
Is that possible at all? Where/how do I assign the right to a user to create temporary email addresses under another domain? (I already tried giving the user permission to “send as <@the other domain>” but that did not achieve what I want.)
Thank you!

  • boohoomoo So I take it, if I remove the “another domain” as a normal domain from mailcow, I will be able to add it as an alias domain?

    Yes, the alias domain has to point to your mailcow via DNS, but you don’t actually configure it as a domain in mailcow, because then you would have independent accounts.
    If you configure it as an domain alias the users can choose which domain to create a temporary address for in the Mailcow UI without needing them to give any administrator rights.

  1. Add the “another domain” into mailcow.
  2. Create a domain administrator to that user for that domain
  3. Get the user to create email accounts

    Have something to say?

    Join the community by quickly registering to participate in this discussion. We'd like to see you joining our great moo-community!

    I think this should work when you create a domain alias under E-Mail -> Configuration -> Aliases -> Domain Aliases.
    This way they can choose which domain to create an alias for, but you can’t force it to be one domain afaik.

      luchris
      Thanks! But I am struggling with the second step.
      When I go to System > Configuration > Access > Domain Administrators and try to create a new domain administrator with the email address of the user that should be able to create the temporary email addresses under the “another domain” then I get the error message that “Username <email-address> cannot be used”…
      Can you please elaborate a bit on how exactly to do this step? Thanks a lot!!!

      D4niel
      Thank! But when I try to set up the “another domain” as an alias domain for the first domain, I get an error message that the “another domain” is invalid.
      (The “another domain” is set up as a normal domain in the UI like the first domain. This

      seems to suggest that this is not possible, while this
      https
      https://https//community.mailcow.email/d/34-setting-up-alias-domain
      No preview could be generated for this link
      seems to suggest that it is. Apparently, I am misunderstanding something. Or something changed between the answers?)

        boohoomoo Have you added the “another domain” into mailcow yet? Is this domain valid?

          boohoomoo The “another domain” is set up as a normal domain in the UI like the first domain.

          Then this method doesn’t work. I assumed you wanted the temporary mail to go into the users main mailbox. If you already configured the domain in mailcow then the user has to login to a whole separate account to get the mails of the temporary address.

            D4niel
            You are right, I do want the temporary mail to go into the users main mailbox (I just don’t know how to set this up).
            So I take it, if I remove the “another domain” as a normal domain from mailcow, I will be able to add it as an alias domain?

            luchris
            Yes, it is a valid domain and it is added to mailcow like the first domain. I could set up mailboxes for it. From Ares’s response in this thread I understand, however, that this is not the right way to go about this…
            Does this explain my problems with setting up an existing user as the domain administrator?

              boohoomoo So I take it, if I remove the “another domain” as a normal domain from mailcow, I will be able to add it as an alias domain?

              Yes, the alias domain has to point to your mailcow via DNS, but you don’t actually configure it as a domain in mailcow, because then you would have independent accounts.
              If you configure it as an domain alias the users can choose which domain to create a temporary address for in the Mailcow UI without needing them to give any administrator rights.

                D4niel
                Thank you.
                I have removed the “another domain” from mailcow as a normal domain and then I was able to set it up as an alias-domain for the first domain. And the users now get to choose under which of the two domains to create their temporary email address.

                No one is typing