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, 03:26:00

Author Topic: Why restarting mysql kills vpopmail  (Read 2553 times)

0 Members and 1 Guest are viewing this topic.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Why restarting mysql kills vpopmail
« on: 2015-06-27, 13:34:49 »
Is there anyway of non-restarting qmail after each MySQL upgrade/restart ?

My MariaDB freezed today and the it restarted, but qmail (vpopmail) was still down ...

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Why restarting mysql kills vpopmail
« Reply #1 on: 2015-06-27, 13:44:14 »
Mail server is detecting port 25 in 'watchdog'. But sometimes, detecting port is inacurate and certain service doesn't use port (example php-fpm).
..:: 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: Why restarting mysql kills vpopmail
« Reply #2 on: 2015-06-27, 14:27:43 »
Mail server is detecting port 25 in 'watchdog'. But sometimes, detecting port is inacurate and certain service doesn't use port (example php-fpm).

Restarting does not make qmail down or vpopmail but nobody would be able to login to his mail account.

It's because vpopmail uses some permanent connections in MySQL and when you restart MySQL it's still looking for these old connections.

Some solution is to add timeout to my.cnf but this will make some troubles with logging in as well. Another solution is to make a test script which will be logging to one of test accounts and if login is failed then it will execute qmailctl stop; qmailctl start ;)

 


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

Page created in 0.03 seconds with 22 queries.

web stats analysis