Results 1 to 9 of 9

Thread: How to create mail forward only?

  1. #1
    Join Date
    Apr 2007
    Posts
    12
    Rep Power
    8

    Default How to create mail forward only?

    I have a couple of users that have their own email addresses and mailboxes hosted by their ISP's. I need to set up a company email for these users but I don't need a Zimbra mailbox for that. AKA I just need to create a simple mail forward.

    I know this can be done in sendmail and postfix by modifying appropriate aliases files. How can this be accomplished in Zimbra?

  2. #2
    Join Date
    Mar 2006
    Location
    Massachusetts
    Posts
    965
    Rep Power
    10

    Default

    Are you using the OS or Network Edition of Zimbra? If you are using the OSE then you don't have to worry about licenses, and you can just setup a regular user account under the Admin interface. Then on the Preferences tab check the box to disable local delivery, and on the Forwarding tab enter the user's personal email address. If you are using the Network Edition then you wouldn't want to waste licenses on these users. You can still use the Postfix aliases file for this setup. Search the forums and the wiki for more details.

  3. #3
    Join Date
    Apr 2007
    Posts
    12
    Rep Power
    8

    Default

    This is what I did to fix this:

    I used info in artturi's post 37801

    Edited /opt/zimbra/conf/zmmta.cf

    Code:
    POSTCONF virtual_alias_maps      LOCAL postfix_virtual_alias_maps
    This will then give a final result in postfix/conf/main.cf :

    Code:
    virtual_alias_maps = ldap:/opt/zimbra/conf/ldap-vam.cf ,
                                       hash:/etc/ldap.aliases
    Now I edited the /opt/zimbra/postfix/conf/virtual and added at the bottom of that file:

    Code:
    user@domain1.com user2@domain2.com
    Now I run the following command to apply the mail forward and restarted postfix:
    Code:
    /opt/zimbra/postfix/sbin/postmap /opt/zimbra/postfix/conf/virtual
    Then I did a test by sending email from my gmail account to user@domain1.com and it was delivered to user2@domain2.com.

    Other way of doing this is of course to set up a distribution list in the Zimbra GUI but I guess that gets very quickly very loaded and using my way I can comment all the setup and get better overview of things.

    My only concern is if this will all be defaulted again in next upgrade? Is there some other better way to do this? Pls. comment.

  4. #4
    Join Date
    Dec 2006
    Location
    Minneapolis MN
    Posts
    777
    Rep Power
    9

    Default

    Just another suggestion on this topic: How about a distribution list, where the distribution lists address is the email address on the zimbra server, and you can have a single member being the address being forwarded to.. then there are no postfix hacks and no zimbra accounts being utilized.. and all manageable from the admin console.

    user@domain.com forwards to someone@else.com:

    # zmprov createDistributionList user@domain.com
    # zmprov addDistributionListMember user@domain.com someone@else.com

  5. #5
    Join Date
    May 2006
    Location
    Germany
    Posts
    30
    Rep Power
    9

    Default

    Quote Originally Posted by Krishopper View Post
    user@domain.com forwards to someone@else.com:
    # zmprov createDistributionList user@domain.com
    # zmprov addDistributionListMember user@domain.com someone@else.com
    Just to clarify, because it seems I've the problem with Distribution List (Distribution List: A group of accounts / aliases seems but not forwards).

    I want to create a DistributionList with local users, but also "external" users in it.
    Do I understand correctly that:
    1) When I create the DistributionList in "Admin Web Interface" with members.
    DistributionList : something@domain.com
    Member : user@domain.com
    Member : someone@else.com
    email to "something@domain.com" will be delivered to user@domain.com BUT NOT someone@else.com.

    2) if I use above workaround or :
    set up the local account as a distribution list:
    zmprov cdl something@domain.com
    and add the external account to the dl:
    zmprov adlm user@domain.com someone@else.com
    it works ?
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Required Task/feature
    I'll create mixed distribution (forward lists) in the Admin web-interface that can handle both, internal and external eMails.
    But for me seems not possible?
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    Any comment for this, or is this misunderstanding?
    If nobody knows I bug report for this I can fill in.

    Cheers
    Christian

  6. #6
    Join Date
    Jan 2006
    Location
    Lafayette, LA
    Posts
    81
    Rep Power
    9

    Default

    Email accounts within distribution lists do not need to be local. Any valid email address is valid as a distribution list member

  7. #7
    Join Date
    Dec 2006
    Location
    Minneapolis MN
    Posts
    777
    Rep Power
    9

    Default

    Code:
    zmprov cdl list@domain.com
    zmprov adlm list@domain.com user@domain.com
    zmprov adlm list@domain.com someone@else.com
    Will deliver email to user@domain.com and someone@else.com when mail is sent to list@domain.com.. this is where user@domain.com is local and someone@else.com is not and is located elsewhere on the internet.

  8. #8
    Join Date
    Oct 2007
    Posts
    1
    Rep Power
    8

    Default create mail forward only in the same domain

    I have the scenario like this :
    1. I have zimbra user, user1@domain.com
    2. I have another user user2domain.com (the same domain with zimbra user), which has mailbox in the webhosting.
    3. I've made an alias for user1@domain.com in webhosting (so the zimbra can fetch)

    Problem : - I can't send mail to user2@domain.com , but can receive from user2

    I'm stuck...How can i run this scenario?

    Thx guys

  9. #9
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    21

    Default

    Welcome to the forums,

    It sounds like your asking what is referred to as Split Domain - Zimbra :: Wiki

Similar Threads

  1. Problems with port 25
    By yogiman in forum Installation
    Replies: 57
    Last Post: 06-13-2011, 01:55 PM
  2. Replies: 7
    Last Post: 02-03-2011, 06:01 AM
  3. fresh install down may be due to tomcat
    By gon in forum Installation
    Replies: 10
    Last Post: 07-25-2007, 08:09 AM
  4. DynDNS and Zimbra
    By afterwego in forum Installation
    Replies: 30
    Last Post: 04-01-2007, 03:34 PM
  5. Mail not getting to mail boxes
    By ehults in forum Installation
    Replies: 5
    Last Post: 10-31-2005, 08:24 AM

Posting Permissions

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