Zarafa Exchange Server replacement and Postfix Integration for multiple domains with unique users



So, I’ve spent some time recently working with Zarafa. It’s an exchange replacement that has a completely open source version as well as a version with licenses for outlook if you want that level of integration. It’s web interface looks good and is an improvement on Exchange server’s capabilities with a non-IE browser. Anyway it can install on a linux server and integrate with several different MTA’s. Our choice was postfix since that was already installed for the purposes of processing forms on a webserver on the same host. Outgoing mail “just worked”, but postfix needed a bit of configuration to make the incoming mail work.


Our system is Ubuntu 8.04 and the original postfix setup had been a system that only sends mail and doesn’t receive. SO, instead of tinkering with the configuration files I moved them out of the way (backed them up as our working config actually.) Then I ran dpkg-reconfigure postfix to change our operating profile to that of an internet station (meaning that we would be sending and receiving mail directly.) This server is a VPS server hosted at slicehost. Anyway, the trick was configuring postfix for delivery to zarafa. I found a few conflicting suggestions, but finally settled on the following line being added to main.cf

mailbox_transport = zarafa: zarafa_destination_recipient_limit = 1

Of course, you also need to specify your domain and which domains you are receiving mail for. In this case we were going to be receiving mail for multiple domains and the following suggested addition to master.cf wasn’t going to work for us.

zarafa unix – n n – 10 pipe flags= user=vmail argv=/usr/bin/zarafa-dagent ${user}

You see, our goal was two domains with the same email frontend ….. i.e. mail@domain1.com and mail@domain2.com to be seperate accounts. By default the “user” string above was going to take our address and crop the email address before the @ sign as user… so both of those accounts would look the same… they would both be the user mail.

SO, I did a bit of digging on what variables postfix takes in it’s master.cf file. I found a bit of advice to do a “man 8 pipe” since that’s the utility that makes postfix’s delivery happen. So, finally I found a good reference in the pipe manual to do what I thought would work. We could use ${recipient} the only question was if zarafa-dagent could use that…

So as root I ran zarafa-dagent without options and got some good information including….

-R Resolve the primary email address passed in , and deliver to that user. Only one of -e and -R may be specified.

Woohoo…

So, I added this line to master.cf in place of the one suggested above…

zarafa unix – n n – 10 pipe
flags= user=vmail argv=/usr/bin/zarafa-dagent -R ${recipient}

Tested and all seems to be working well.

So, now we have abstraction of usernames and email addresses. You could have a username velma and the address jinkies@mydomain.com and delivery will still work. You can also have the username scooby and address jinkies@thisotherdomain.com and they will have unique mail stores (in spite of the first part of the address being the same.)

There are certainly situations where you would want user@domain1.com and user@domain2.com to be the same, but this is a good fix for those situations where you want to manage discrete accounts for multiple domains. From what I’ve seen thus far out of zarafa I’m liking it. Our next project will likely be imap integration

Related Posts

Blog Traffic Exchange Related Posts
  • The security of remote tech support (ultravnc sc or x11vnc with wrapper script) Well, I've got a nice way of doing "easy" one click (or one cut and paste) light desktop support for windows or linux, one uses ultravnc sc, the other uses x11vnc with a special wrapper script. So, what security flaws are there in this process? Well, for starters, I see......
  • Linux software raid notes Here are a few other notes on linux software raid. I created a directory called raidinfo to keep information in to make it easy to maintain the raid array. First... from the software raid howto, I've done the following.... sfdisk -d /dev/hda > /raidinfo/partitions.hda sfdisk -d /dev/hde > /raidinfo/partitions.hde So..........
  • Sleuthkit - windows and linux file recovery http://www.sleuthkit.org/ Sluethkit... is a collection of tools for forensic analysis of a system. Usually it's something that would be done when you've had a suspected rootkit on the system and you boot to another operating system with sluethkit installed (maybe livecd/etc.) and want to try to analyze and hunt for......
Blog Traffic Exchange Related Websites
  • Goodbye TDAmeritrade, Hello Izone! I just closed down my account with TDAmeritrade. I transferred everything to Izone.com. Funnily enough, Izone is owned by TDAmeritrade and offers EVERYTHING that my regular TDAmeritrade account offered. Infact, the user-interface is identical. Its so identical, that the new username and password I created at izone.com even works at......
  • You might be a computer geek if... This was inspired by a site that apparently no longer exists.  I'm starting this one from scratch. you rejoice at the trend toward DRM-free mp3s on Amazon, iTunes, etc... you're a card-carrying member of the EFF when you have to write with a pen, you find yourself using the Palm......
  • How Bad Design is Killing Your Sales There is a direct relationship between good UI design and increased sales. On the flip side, bad design inevitably hurts sales. Pretty obvious if you think about it, but why? Quite simply, good user interface design is primarily about giving the user what the expect, where they expect it in......
www.pdf24.org    Send article as PDF   

Similar Posts


See what happened this day in history from either BBC Wikipedia
Search:
Keywords:
Amazon Logo

Comments are closed.


Switch to our mobile site