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

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 06-07-2007, 10:02 AM
Senior Member
 
Posts: 68
Default Postfix configuration in a Zimbra rPath appliance

Back into testing and checking configuration. This may be more appropriate to the admin thread but I consider this installation as I'm still configuring the system.

Scenario:
We have a pile of aliases and virtual addresses in our current postfix set up. So to make migration to Zimbra easier I was checking the postfix values for alias_maps and virtual_alias_maps. Yes, Zimbra does have the ability to handle this with it's aliases and distribution lists but that will take time to script to get them all in.

So a realistic solution is to use our current postfix alias files.

Issue:

In /var/log/maillog:
Jun 7 05:09:27 localhost postfix/smtpd[31548]: connect from zimbratest.xx.yyy.com[127.0.0.1]
Jun 7 05:09:27 localhost postfix/trivial-rewrite[31541]: warning: do not list domain zimbratest.xx.yyy.com in BOTH mydestination and virtual_mailbox_domains
Jun 7 05:09:27 localhost postfix/smtpd[31548]: DD3F720B04E0: client=zimbratest.xx.yyy.com[127.0.0.1]

So it's taking the machine name as the value for mydomain.

Fix:
Add to main.cf:
mydoman = yyy.com

Questions:
Now, everything seems to work. However:
1. Have I broken something I don't know about?
2. Will these changes need to be redone after any upgrade?

I don't need an answer (although it would be nice) but the dev team may want to think about this. I think if they try setting mydomain in postfix it may help. It won't be right 100% of the time but something like:

echo "mydomain = " `uname -n | awk -F. '{print $(NF-1) "." $NF}' `>>main.cf

would help the config stage of Zimbra's postfix.
Reply With Quote
  #2 (permalink)  
Old 06-07-2007, 04:05 PM
Zimbra Employee
 
Posts: 515
Default

This warning doesn't hurt anything. FWIW this is fixed for ZCS 5.0 as Bug 11630. The installation defaults to using the hostname to create the first mail domain. Why not create the "yyy.com" domain if you want to use it:

su - zimbra
zmprov createDomain yyy.com
__________________
Search the Forums - Bugzilla - Wiki - Downloads
Reply With Quote
  #3 (permalink)  
Old 06-07-2007, 04:21 PM
Senior Member
 
Posts: 68
Default

I wasn't worried about anything being broken. I just knew how to solve this item.
When I started testing about two weeks ago I didn't realize the Zimbra domain was used as the "mydomain" attribute in postfix. I was thinking the items were orthognal.

When we move to production the domain will be yyy.com after this. The fewer error messages that exist the easier it is to see real issues.

It's just a little thing I noticed when testing aliases to spawn command line processing from email. Some people are worried about this sort of thing and it may help if this is considered in the postfix configuration side of Zimbra.
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.