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-27, 20:41:42

Author Topic: Critial bug in /script/fixmail !  (Read 7935 times)

0 Members and 1 Guest are viewing this topic.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Critial bug in /script/fixmail !
« on: 2014-04-15, 00:20:18 »
It created folders like /home/lxadmin/mail/domainxxxx.com instead of /home/lxadmin/mail/domains/domain.com

Now all mails are going to nowhere...:

Apr 15 00:18:48 onlinecity send: 1397513928.863264 delivery 155: deferral: Unable_to_switch_to_/home/lxadmin/mail/domainsxxxx.com:_file_does_not_exist._(#4.3.0)/
« Last Edit: 2014-04-15, 00:25:28 by Spacedust »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Critial bug in /script/fixmail !
« Reply #1 on: 2014-04-15, 03:59:48 »
Running 'sh /script/fixmail-all' or 'sh /script/fix-qmail-assign' after add directory?.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Critial bug in /script/fixmail !
« Reply #2 on: 2014-04-15, 08:14:38 »
Running 'sh /script/fixmail-all' or 'sh /script/fix-qmail-assign' after add directory?.

It worked, but it seems it doesn't move mail to that location ?

When I login to one customer account it's blank despite having many mails in /home/lxadmin/mail/domains/domain.com directory.

It seems I got now two locations - but why ?
« Last Edit: 2014-04-15, 08:38:21 by Spacedust »

Offline Kloxo-DR

  • Senior Member
  • *
  • Posts: 239
  • Karma: +3/-9
    • View Profile
Re: Critial bug in /script/fixmail !
« Reply #3 on: 2014-04-15, 08:48:06 »
It would be worth observing in top monitor listing processes by user qmailr (qmail remote). If your domainxxx.com appears in there, then you may have a serious problem.

I found this out by putting observation through csf and was totally shocked to see qmail remote relaying outbound spams that i did not even know about.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Critial bug in /script/fixmail !
« Reply #4 on: 2014-04-15, 08:50:22 »
Try 'sh /script/fix-chownchmod' because latest script also fix chown/chmod in mail directories.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Critial bug in /script/fixmail !
« Reply #5 on: 2014-04-15, 08:50:36 »
It's not about this.

What is the proper location for mail now ?

/home/vpopmail/~domains -> /home/lxadmin/mail/domains/

I'm unable to add any mail account now: mailaccount_add_failed...

Even manual fix doesn't work:

Quote
[root@online home]# '/home/lxadmin/mail/bin/vdeldomain' 'traveler.pl'
Warning: Could not access (/home/lxadmin/mail/domainstraveler.pl)
Warning: Failed to delete directory tree: traveler.pl
[root@onlinecity home]# '/home/lxadmin/mail/bin/vadddomain' 'traveler.pl'
Error: Domain already exists
« Last Edit: 2014-04-15, 08:53:08 by Spacedust »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Critial bug in /script/fixmail !
« Reply #6 on: 2014-04-15, 08:57:16 »
Mail location still in /home/lxadmin/mail/domains/. Yes, default location for vpopmail is /home/vpopmail/domains (no ~domains).
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Kloxo-DR

  • Senior Member
  • *
  • Posts: 239
  • Karma: +3/-9
    • View Profile
Re: Critial bug in /script/fixmail !
« Reply #7 on: 2014-04-15, 09:00:08 »
Hi,

I'm unable to add any mail account now: mailaccount_add_failed...

When you start fixmail script, you will see that it generates a vpop password. This will happen only if it could connect to mysql vpopmail db.

If fixmail script gives a notice, and watch this carefully, that if failed to connect to mysql, then the only chance left is to reset mysql password abd bring in harmony with mysql. If reset script for mysql does not remove this error, then reset mysql root password by mysql monitor.

Only then your fixmail script will be able to delete the domain from the system and add once again.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Critial bug in /script/fixmail !
« Reply #8 on: 2014-04-15, 09:02:17 »
Mail location still in /home/lxadmin/mail/domains/. Yes, default location for vpopmail is /home/vpopmail/domains (no ~domains).

So why all my domains are now in /home/lxadmin/mail/domainsdomainname.com instead of /home/lxadmin/mail/domains/domainname.com

Example:

Quote
+zsogubin.pl-:zsogubin.pl:::/home/lxadmin/mail/domainszsogubin.pl:-::
« Last Edit: 2014-04-15, 09:03:52 by Spacedust »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Critial bug in /script/fixmail !
« Reply #9 on: 2014-04-15, 09:31:08 »
Add new mail account must in /home/lxadmin/mail/domains/<domain.com>/<account>. My latest test as the same as this rule.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Critial bug in /script/fixmail !
« Reply #10 on: 2014-04-15, 09:33:25 »
Add new mail account must in /home/lxadmin/mail/domains/<domain.com>/<account>. My latest test as the same as this rule.

How to fix it now ? It messed all my mail !

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Critial bug in /script/fixmail !
« Reply #11 on: 2014-04-15, 09:37:13 »
Investigate inside 'mailaccount' in kloxo table anda move './domainsdomainname.com' to './domains' and then rename to 'domainname.com'
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Critial bug in /script/fixmail !
« Reply #12 on: 2014-04-15, 09:40:20 »
Investigate inside 'mailaccount' in kloxo table anda move './domainsdomainname.com' to './domains' and then rename to 'domainname.com'

There are just entries like normal:

Quote
postmaster@kobiety.xxx.pl    mmail-kobiety.xxx.pl       on    -    Unlimited    0.1    -    0                      $1$j9qHMbYy$uchnwi1W9AA9ATrOX/Vh5.    on                Tjs=   1328381544    Tjs=   Tjs=      Tjs=      ok    on       __lxen:MTIz    localhost    on    YTowOnt9   off                

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Critial bug in /script/fixmail !
« Reply #13 on: 2014-04-15, 09:42:22 »
So, try rename directory from 'domainsdomainname.com' to 'domainname.com' inside /home/lxadmin/mail/domains
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Critial bug in /script/fixmail !
« Reply #14 on: 2014-04-15, 09:51:30 »
I've restored old cdb from yesterday and removed these wrong folders domainsdomainname.com.

It seems this latest fix assign is causing this.

One more thing if I remove a mail account manually from shell (to correct mailaccount_failed) it's being created inside /home/vpopmail/domains directory !

There must be a symlink !

 


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

Page created in 0.06 seconds with 18 queries.

web stats analysis