MySQL-server-5.1 indirectly installs postfix

Bug #370445 reported by Phil Bayfield
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mysql-dfsg-5.1 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: mysql-server

Postfix is a dependancy for mysql-server on Ubuntu 9.04 server edtion.
MySQL doesn't require a mail server, having postfix as a dependancy also presents lack of choice to user and is counter productive for a server product to install unwanted packages and services on the system.

Packages marked with *** below:

# sudo apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  ***bsd-mailx*** libdbd-mysql-perl libdbi-perl libhtml-template-perl libmysqlclient15off libmysqlclient16 libnet-daemon-perl libplrpc-perl ***mailx*** mysql-client-5.1 mysql-common mysql-server-5.1 ***postfix*** ssl-cert

Have to run sudo apt-get purge postfix to remove it following MySQL install.

Phil Bayfield (philio)
description: updated
Revision history for this message
Andreas Olsson (andol) wrote :

Well, strictly speaking it is indirectly installed as a Recommends. Had it been a hard dependency you wouldn't have been able to remove postfix, without also having your mysql-server-5.1 removed.

What happens is that mysql-server-5.1 recommends mailx, which depends on bsd-mailx, which in turn recommends postfix (or other MTA).

This is a change compared to mysql-server-5.0 where mailx is only Suggested, hence not installed automatically.

I agree that it's not really an expected behavior to have postfix installed when you actually doing an mysql-server install. That said I'm not entirely sure yet if this actually is a bug. Having a minimal MTA (such as send-only) can more or less be considered a must on a standard server.

For now I'll mark this bug as Incomplete, and ask for feedback on it.

affects: mysql-dfsg-5.0 (Ubuntu) → mysql-dfsg-5.1 (Ubuntu)
Changed in mysql-dfsg-5.1 (Ubuntu):
status: New → Incomplete
summary: - Postfix is dependancy for MySQL Server on server edition
+ MySQL-server-5.1 indirectly installs postfix
Revision history for this message
Phil Bayfield (philio) wrote :

I tested with a VPS, if you have an MTA installed prior to MySQL install (other than Postfix), Postfix is not installed, which is a good thing!

In this case I was setting up a dedicated MySQL box so really didn't want/need an MTA on there. We already have load balanced Exim servers for mail!

Revision history for this message
Jonathan Marsden (jmarsden) wrote :

If you do not wish to follow recommends, use the --no-install-recommends option to apt-get :)

  sudo apt-get install mysql-server --no-install-recommends

will do what the submitter seems to desire.

I am not convinced this is a bug.

Revision history for this message
Mathias Gug (mathiaz) wrote :

mysql-server-5.1 suggests mailx. Marking as fixed released.

Changed in mysql-dfsg-5.1 (Ubuntu):
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.