Results 1 to 10 of 10

Thread: Virtual User Mapping

  1. #1
    Join Date
    Jan 2006
    Posts
    7
    Rep Power
    9

    Default Virtual User Mapping

    A little background...we're trying to act as a remote mail server from our corporate server which is running postfix. The corporate office will route/copy mail to our server, but I want local mail (mail between local zimbra accounts) to route without going to the corp mail server. Currently, I have a separate mail domain than the corp office.

    We thought that we could do this via virtual user mapping. In postfix, we'd do this:

    postmap user@OtherDomain LocalUser

    We've tried to use the zmprov with the ma and aaa options without success. Is this possible in zimbra and if so, how?

    Thanks!

    Hanson

  2. #2
    Join Date
    Sep 2005
    Posts
    2,103
    Rep Power
    14

    Default mapping

    Quote Originally Posted by d9hans
    A little background...we're trying to act as a remote mail server from our corporate server which is running postfix. The corporate office will route/copy mail to our server, but I want local mail (mail between local zimbra accounts) to route without going to the corp mail server. Currently, I have a separate mail domain than the corp office.

    We thought that we could do this via virtual user mapping. In postfix, we'd do this:

    postmap user@OtherDomain LocalUser

    We've tried to use the zmprov with the ma and aaa options without success. Is this possible in zimbra and if so, how?

    Thanks!

    Hanson
    I'm not fully clear on what you're trying to do.

    You've got two domains:
    corporate.com for the main (corp) mail domain, and zimbra.corporate.com for the zimbra users.

    From outside, mail to user@corporate.com gets rerouted to zimbra, for user@zimbra.corporate.com?

    And on the zimbra box, user1@zimbra.corporate.com sends mail to user2@zimbra.corporate.com, and that is fine (stays on the box).

    Is the missing piece that mail from user1@zimbra.corporate.com to user2@corporate.com is going through the corporate box?


    You might be able to stop that with
    zmprov cd corporate.com zimbraDomainType alias zimbraMailCatchAllAddress @corporate.com zimbraMailCatchAllForwardingAddress @zimbra.corporate.com

    One drawback to this is that you'll never be able to send mail from zimbra to the legacy system.

  3. #3
    Join Date
    Jan 2006
    Posts
    7
    Rep Power
    9

    Default Yes...

    Thanks for the tip. Our situation is exactly as you outlined. That being said, your solution is a deal breaker for us as we would no longer be able to send mail to our legacy/corporate system.

    What we had hoped to achieve was a per user mapping instead of a catchall for the domain. I know your documentation warns against making changes in the postfix mappings on the zimbra server, but should we consider that as an alternative solution?

    Hanson

  4. #4
    Join Date
    Sep 2005
    Posts
    2,103
    Rep Power
    14

    Default per user mapping

    I believe you can still do a per user mapping.

    Create your zimbra users.

    Then, for each user:
    zmprov ma user@zimbra.corporate.com zimbraMailCatchAllAddress user@corporate.com zimbraMailCatchAllForwardingAddress user@zimbra.corporate.com

    I'm going to double check that with a colleague, but I believe that it will do the right thing.

  5. #5
    Join Date
    Jan 2006
    Posts
    7
    Rep Power
    9

    Default

    I don't think that the zimbraMailCatchAllAddress property likes a user name. From the error, it expects a '@domain.com' and not 'user@domain.com'.

    Here's the error when I tried the command:

    ERROR: account.INVALID_ATTR_VALUE (zimbramailcatchalladdress must match the regex: ^@[A-Za-z0-9-\.]+$)
    Last edited by d9hans; 01-27-2006 at 01:00 PM.

  6. #6
    Join Date
    Sep 2005
    Posts
    2,103
    Rep Power
    14

    Default bad info

    I've been informed by my colleagues that I shouldn't try to give advice on fridays - apparently I'm not very good at it. My previous post was in error.

  7. #7
    Join Date
    Jan 2006
    Posts
    7
    Rep Power
    9

    Default

    Hmm..this is the only stumbling block for us. Has anyone tried using postfix's postmap command to accomplish what I'm trying to do? I've tried and it doesn't work. I'm not surprised since this is not recommended by the product anyway. Thought it was worth a try.

    Anyone?

    Hanson

  8. #8
    Join Date
    Sep 2005
    Posts
    274
    Rep Power
    10

    Default splitting a domain

    in the next release, splitting a domain like you wish to do should be possible. If you can test it when the bits ship, that would be great.

    Here is the documentation:

    http://bugzilla.zimbra.com:8080/view...lit-domain.txt

  9. #9
    Join Date
    Jan 2006
    Posts
    7
    Rep Power
    9

    Default

    Sounds good. We'll be happy to check it out. However, I can't open the link you provided. Is that an internal URL? Doesn't seem that port 8080 is listening althoug I can ping the bugzilla server.

    I gather the bug/FR has info on when this function will be in the code. Since I don't have access to your bugzilla, can you give me a rough time frame if there is one? Thanks!

  10. #10
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    19

    Default

    Yeah I forgot to have the firewall opened for external access. It will be open soon.

    Our bugzilla is open. All public bugs are available to be viewed.

    http://bugzilla.zimbra.com
    Looking for new beta users -> Co-Founder of Acompli. Previously worked at Zimbra (and Yahoo! & VMware) since 2005.

Similar Threads

  1. Replies: 21
    Last Post: 02-04-2010, 09:06 AM
  2. Post instsallation problems
    By Assaf in forum Installation
    Replies: 14
    Last Post: 01-29-2007, 10:38 AM
  3. Getting problems in FC4 while instalation
    By kitty_bhoo in forum Installation
    Replies: 13
    Last Post: 09-12-2006, 10:34 PM
  4. Services stopped working
    By lilwong in forum Administrators
    Replies: 4
    Last Post: 08-15-2006, 09:19 AM
  5. Fedora Core 3, Clean Install - Not working!
    By pcjackson in forum Installation
    Replies: 17
    Last Post: 03-05-2006, 06:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •