Results 1 to 10 of 10

Thread: [SOLVED] Additional virtual alias tables

  1. #1
    syntaxys is offline Junior Member
    Join Date
    Feb 2009
    Location
    Munich
    Posts
    5
    Rep Power
    6

    Question [SOLVED] Additional virtual alias tables

    Hello Forum,
    I have a problem with setting up a kind of semi-CatchAll addresses in Zimbra's Postfix.
    On my old Postfix system I have users who want use temporarily email aliases and I'm to lazy to set them up manually each time nor I'm accepting a CatchAll solution.
    So I've edited an additional virtual alias table like

    Code:
    /^.*user.*@domain\.tld$/    user
    In main.cf I'd set up
    Code:
    virtual_maps = regexp:/etc/postfix/virtual, ... other tables
    which worked fine.

    How do I set up this solution in Zimbra's Postfix main.cf? It seems I have to handle zmmta.cf, but in which way?

    Thanks for your help and advice!
    Achim

  2. #2
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,491
    Rep Power
    56

    Default

    Please don't add posts to threads that are two and a half years old, I've moved this to a new thread.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    captainmish is offline Loyal Member
    Join Date
    Mar 2007
    Location
    Plymouth, uk
    Posts
    93
    Rep Power
    8

    Default /etc/aliases

    We are moving from an exim install, and need some aliases moved across as well, does /etc/aliases ever work? Ive also tested it and cant seem to get it to work (end goal is to get it as a regexp: rather than a hash: for wildcard-style aliases, but just getting /etc/aliases working would be a great start)
    Thanks,

  4. #4
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    I moved your post captainmish as it was to a thread over 2 years old ... This appears appropriate to what your trying to achieve.

  5. #5
    captainmish is offline Loyal Member
    Join Date
    Mar 2007
    Location
    Plymouth, uk
    Posts
    93
    Rep Power
    8

    Default

    thanks uxbod, sorry about the thread hijack!

  6. #6
    syntaxys is offline Junior Member
    Join Date
    Feb 2009
    Location
    Munich
    Posts
    5
    Rep Power
    6

    Default A solution, but not very clean...

    Hey,
    I have helped myself with setting up a CatchAll address for the domain and a forwarding of the relevant mails by a filter. That works but now I get some spam which I don't want.
    Is there no way to get a better control of Postfix in Zimbra configuration? Which is the right way to have a lookup to LDAP and own tables?

    Thanks
    Achim

  7. #7
    captainmish is offline Loyal Member
    Join Date
    Mar 2007
    Location
    Plymouth, uk
    Posts
    93
    Rep Power
    8

    Default virtual alias maps

    Ive found that zmlocalconfig is a good way to sort this out:

    zmlocalconfig -e postfix_virtual_alias_maps='proxy:ldap:${zimbra_ho me}/conf/ldap-vam.cf,pcre:/etc/aliases-virtual'

    Edit /etc/aliases-virtual to taste

    zmmtactl restart - this rewrites the config files and restarts the mta

    You can just add new regexes to the aliases-virtual table, there is no need to hash it.

    I would imagine that it would also work by editing the conf/zmmta.cf file, but this risks being overritten on each upgrade.

  8. #8
    syntaxys is offline Junior Member
    Join Date
    Feb 2009
    Location
    Munich
    Posts
    5
    Rep Power
    6

    Thumbs up virtual alias maps

    Hey captain, thx a lot!

    I have tried this out before too, but directly in the main.cf which produces a configuration error on Postfix. Now it works great and I can remove the catchall directive.

    Regards
    Achim

  9. #9
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    Nice solution captainmish

  10. #10
    tharangamu is offline Active Member
    Join Date
    Jan 2008
    Posts
    33
    Rep Power
    7

    Default

    Dear Sir

    How will be the format of the /etc/aliases-virtual file . is it ok with
    test@corp.mydomain.com test1@corp.mydomain.com, test3@@corp.mydomain.com

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Domain Virtual Host versus Domain Alias
    By rogle in forum Administrators
    Replies: 0
    Last Post: 02-18-2009, 12:49 PM
  2. [SOLVED] Virtual Alias Domain
    By Rub„o in forum Migration
    Replies: 1
    Last Post: 01-15-2008, 06:13 AM
  3. Fedora 5: Could not create the Java virtual machine
    By mi2enno in forum Installation
    Replies: 6
    Last Post: 06-01-2007, 03:16 AM
  4. Installation error
    By wezhall in forum Administrators
    Replies: 15
    Last Post: 03-15-2006, 09:27 AM
  5. Virtual Alias Entry
    By Isi in forum Administrators
    Replies: 3
    Last Post: 12-13-2005, 04:22 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
  •