I want my RaQ to send all email from one virtual hosted site, domain1.com, to another, domain2.com, on the same server?

Export to PDF | Export to DOC

Problem:  I want my RaQ to send all email from one virtual hosted site, domain1.com, to another, domain2.com, on the same server?

Solution:

  1. Ensure Accept Email for Domain for domain1.com is unchecked.
    To do this:

    a.    Use the Site Settings and from Site Management for the virtual site in question.
    b.    Ensure the Accept Email For Domain is unchecked.
    c.    Click Save Settings.

  2. Add the following custom line at the bottom of the /etc/virtusertable only if mail for user@domain1.com should go to user@domain2.com.
    If mail for user@domain1.com should go to defaultuser@domain2.com, then skip to step 3. (All mail delivered to domain1 will go to user@domain2)@domain1.com        %1@domain2.com

    Where the space between is a TAB.
    This ensures any mail sent to user@domain1.com will be sent to the user@domain2.com. (A user to user relationship)

  3. Follow this step only if you skipped to it from step 2.
    To have mail for user@domain1.com go to anotheruser@domain2.com.  There will not be a user to user relationship.List @domain1.com as an alias for the user in domain2.com that will receive all the email.
    To do this:

    a.    Use the user interface and go to Site Management for domain2.com.
    b.    Click on the blue envelope button to create/modify the user’s email account.
    c.    Add “@domain1.com” to the email aliases of the user. This creates a catch-all alias for the site domain1 in domain2.

  4. Run makemap hash /etc/virtusertable < /etc/virtusertable

Leave a Reply

Your email address will not be published. Required fields are marked *