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. 2017-11-07, 21:52:58

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

0 Members and 1 Guest are viewing this topic.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • 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,381
  • Karma: +112/-9
  • 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: 3,944
  • 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 ;)

 


Top 10 Social Networking:    Facebook    Twitter    LinkedIn    Pinterest    Google Plus    Tumblr    Instagram    VK    Flickr    Vine

Page created in 0.049 seconds with 18 queries.

web stats analysis
 
Mirror created by MasterkinG32.CoM