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

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 07-14-2010, 11:21 AM
New Member
 
Posts: 3
Default [SOLVED] Accessing zimbra MySQL from other zimbra servers

I am writing a zimlet that will allow users to retract a sent email as long as it has not been read by any of the recipients. Basically, it takes information about a sent message that is drag and dropped onto the zimlet, and uses the subject, date, and metadata for a mysql query to find out if it has been read by anyone. If it has not then the option to retract the email is given. This works great on a single server installation of zimbra.

My problem is trying to adapt it to a multi-server setup. We have 1 LDAP server, 1 MTA server, and 3 mailbox servers. From what I can tell, I would need to query the mysql databases on each of the 3 mailbox servers to get an accurate count since (i believe) each mailbox server has unique mailbox groups. I guess what i ultimately need to know is how, say a user uses this zimlet and their account is on mailbox server 1, how to connect to the mysql databases on servers 2 and 3. It seems like you can only connect to it using localhost:7306. Any help provided is greatly appreciated!
Reply With Quote
  #2 (permalink)  
Old 07-23-2010, 10:40 AM
New Member
 
Posts: 3
Default

After much more searching, I have found the solution to this problem. I will post it here in the hopes that anyone else with this problem can easily find it and make use of it.

The first step is to change the /opt/zimbra/conf/my.cnf file on each server you want to access. Simply comment out the line 'bind-address = localhost'. After that, you need to restart the mailbox servers. You can do this with 'zmcontrol restart'. Finally, make sure you are using the correct username and password to log on. If you are using root or zimbra as the user, the passwords can be found with 'zmlocalconfig -s mysql_root_password' for root, or 'zmlocalconfig -s zimbra_mysql_password' for zimbra.

I hope this helps someone!
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.