Distributed issue

Issue #458 resolved
Perumal Varadharajulu created an issue

Hi,

I have deploy the following for email archiving in distributed model as I think it would work, but I have some issues, can you please help me.

192.168.1.46 - HAproxy with port 25 will forward to following two machine archive@domain.com 192.168.1.66 & 67 - smtp1 & smtp2 with piler service alone with MySQL database in piler.conf details 192.168.1.47 - GUI access (only Apache) 192.168.1.68 - DB (MySQL & Sphinx)

(All the above installed by postinstall and remove the following to ensure the distribution

smtp1 & smtp2 - Remove sphinx GUI - Remove sphinx

Question: a. When HAProxy receive email, it's forward by round robin to any one smtp1 or smtp2, any one have shows in log "stored". after 30 mins I have checked in GUI the email archived, but when I clicked the email <No Subject> in message body and no header display b. I noticed /var/piler/store/00 under this no folder have created in DB machine

I think have missed or miss configuration done with setup. can you please guide me to accomplish this task

Comments (7)

  1. Perumal Varadharajulu reporter

    Kindly update whether do you have any successful model for distributed setup of mailpiler

    • Perumal V
  2. Janos SUTO repo owner

    The trouble is that the gui searches for emails on its local /var/piler/store, however it can't find any. The following could be a possible workaround, though may not be nice. Set server_id=0 on stmp1, and server_id=1 on smtp2. Thus smtp1 will put files in /var/piler/store/00, smtp2 to /var/piler/store/01. Now mount these 2 dirs from smtp1 and smtp2 to the gui host via nfs or sshfs, so it will see the files from then.

    Make sure that piler.key and the iv parameter is the same on all 3 hosts (gui, smtp1, and smtp2). Let me know how it works.

  3. Perumal Varadharajulu reporter

    Sure, let me do the same and ping you, thanks for your immediate response.

    • Perumal V
  4. Perumal Varadharajulu reporter

    Hi,

    I have done following but still fail

    1. Share folder from DB machine /var/piler as NFS and mount into smtp1, smtp2, GUI
    2. smtp1 have server_id=0 and 1 for smtp2
    3. Copy piler.key from DB machine and replaced into GUI, smtp1 and smtp2
    4. I have shutoff all the box and start again but still fail

    Any thing I missed not sure about what you are saying about "iv parameter is the same" on all 3 hosts.

    • Perumal V
  5. Perumal Varadharajulu reporter

    it's works well, I have done following,

    Create NFS share in DB box for /var/piler/store/00 and mount the same into SMTP1, SMTP2 and GUI and restart the service.

    I can able to see emails from GUI.

  6. Log in to comment