Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-24, 10:04:47

Author Topic: [BUG] deferral: vdelivermail:_deferred sh /script/fixmail creates mailboxes in /  (Read 15671 times)

0 Members and 1 Guest are viewing this topic.

Offline Kloxo-DR

  • Senior Member
  • *
  • Posts: 239
  • Karma: +3/-9
    • View Profile
Hello Mustafa,

Since a longtime I have observed that mailboxes were created in / dir.

Now I got deferral: vdelivermail:_deferred.

After executing /script/fixmail it got created in / directory again.

Then I executed the sh /script/reset-mysql-root-password xxx and theafter executed /script/fixmail.

As a result, of reset, the mailboxes were not created in / dir anymore, vdelivermail became working again and I can not login.

This is a BUG.
« Last Edit: 2014-03-17, 07:36:16 by Kloxo-DR »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Vpopmail need root password for creating their data. Sometimes, it's not match and then we need to run reset-mysql-root-password.

Information for root password is inside /home/vpopmail/etc/vpopmail.mysql.

So, don't reset mysql root password except from kloxo script and or from panel.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Kloxo-DR

  • Senior Member
  • *
  • Posts: 239
  • Karma: +3/-9
    • View Profile
Hi Mustafa,
So, don't reset mysql root password except from kloxo script and or from panel.

I did reset the mysql password from the command line.

Before I did this reset, all mailboxes got created in the main root directory of centos, like /etc, /user_mailbox1, /user_mailbox2, /usr, /var, ...

This should not happen.

When this happened, it could not connect to mysql. It could connect with mysql only after I made a reset of mysql root password from command line. There is something wrong in fixmail script which should not create mailboxes like this.

Offline Kloxo-DR

  • Senior Member
  • *
  • Posts: 239
  • Karma: +3/-9
    • View Profile
Hello Mustafa,

I see that no emails could be relayed locally by myself as the deferral: /bin/sh:_/home/vpopmail/bin/vdelivermail:_Permission_denied/ occurs.

vPOP scripts cannot login into mysql.

I have reset mysql password from kloxo control panel. It did not help.

All messages are queued as well.

I have tried:
sh /script/fix-program-mysql
sh /script/cleanup, etc.

What can I do to fix this?

Offline Kloxo-DR

  • Senior Member
  • *
  • Posts: 239
  • Karma: +3/-9
    • View Profile
Hi,

I did the following:

chmod 4751 /home/vpopmail/bin/vchkpw

Thereafter the queue started processing.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Hi,

Running 'sh /script/fixmail-all' also fix this issue.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Kloxo-DR

  • Senior Member
  • *
  • Posts: 239
  • Karma: +3/-9
    • View Profile
Hi Mustafa,
Running 'sh /script/fixmail-all' also fix this issue.

It did Noooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooot!

If you read my post above, then you will find that it did not.

The reason was because it did not, or could not, connect to mysql server. Thereafter, it failed to change the permission, which it usually does.

If one changes the programming that the permissions are corrected - BEFORE MAKING A DATABASE CONNECTION, then this BUG will disappear.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Did you see /script/fixmail-all?.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Kloxo-DR

  • Senior Member
  • *
  • Posts: 239
  • Karma: +3/-9
    • View Profile
Hi,

Sorry, I do not understand you what you mean "did you see?". I did not see in the script itself.

But I should not see in it.

I executed the sh /script/fixmail-all command and it said that it cannot connect to mysql database using password root @ kloxo etc command. Thereafter, I found that it created many mailboxes on the main server's root directory.

Thats the problem: If there are problems with mysql connections, fixmail-all script creates all mailboxes in root directory

The problem is how to stop fixmail-all script making all mailboxes in the directory of root /.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
If you found something wrong when running fixmail-all (because vpopmail not able to accessed), run 'sh /script/reset-mysql-root-password'. And then fixmail-all already running well.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
If see the content of fixmail-all file, you will found code for fix chmod issue for vchkpw.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Kloxo-DR

  • Senior Member
  • *
  • Posts: 239
  • Karma: +3/-9
    • View Profile
Mustafa,

Is it possible to restrict the focus of the issue I have raised in this thread?

Following is the issue:

The problem is how to stop fixmail-all script making all mailboxes in the directory of root /.



Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
If vpopmail not work (because wrong password detected), all mail account will be created in /. That it.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Kloxo-DR

  • Senior Member
  • *
  • Posts: 239
  • Karma: +3/-9
    • View Profile
Hi,

Ok, then it should be like that. I give up as this is a bit difficult conversation for me, one number to high.

Thanks.

 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix

Page created in 0.042 seconds with 19 queries.

web stats analysis