Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-19-2009, 03:10 AM
New Member
 
Posts: 3
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
Reply With Quote
  #2 (permalink)  
Old 02-19-2009, 03:15 AM
Zimbra Consultant & Moderator
 
Posts: 20,313
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
Reply With Quote
  #3 (permalink)  
Old 03-03-2009, 08:36 AM
Loyal Member
 
Posts: 93
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,
Reply With Quote
  #4 (permalink)  
Old 03-03-2009, 08:44 AM
Moderator
 
Posts: 7,928
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.
__________________
Reply With Quote
  #5 (permalink)  
Old 03-03-2009, 09:12 AM
Loyal Member
 
Posts: 93
Default

thanks uxbod, sorry about the thread hijack!
Reply With Quote
  #6 (permalink)  
Old 03-04-2009, 01:36 AM
New Member
 
Posts: 3
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
Reply With Quote
  #7 (permalink)  
Old 03-04-2009, 01:51 AM
Loyal Member
 
Posts: 93
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.
Reply With Quote
  #8 (permalink)  
Old 03-04-2009, 03:15 AM
New Member
 
Posts: 3
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
Reply With Quote
  #9 (permalink)  
Old 03-04-2009, 03:22 AM
Moderator
 
Posts: 7,928
Default

Nice solution captainmish
__________________
Reply With Quote
  #10 (permalink)  
Old 10-19-2011, 02:28 AM
Active Member
 
Posts: 25
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.