php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #63891 Compile --without-sendmail
Submitted: 2013-01-03 03:27 UTC Modified: 2013-10-25 00:55 UTC
From: anthonyryan1 at gmail dot com Assigned:
Status: Analyzed Package: Mail related
PHP Version: Irrelevant OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: anthonyryan1 at gmail dot com
New email:
PHP Version: OS:

 

 [2013-01-03 03:27 UTC] anthonyryan1 at gmail dot com
Description:
------------
I would like to put in a request for a configuration option that would prevent 
PHP from using sendmail or other MTAs even if available.


Patches

Add a Patch

Pull Requests

Pull requests:

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-01-08 04:03 UTC] aharvey@php.net
What would be the use case for this that disable_functions=mail wouldn't solve?
 [2013-01-08 04:03 UTC] aharvey@php.net
-Status: Open +Status: Feedback -Package: *Compile Issues +Package: Mail related
 [2013-01-08 04:51 UTC] anthonyryan1 at gmail dot com
The use case is purely aimed at dependency cleanup in Linux distributions. Currently, when installing PHP on virtually all distros a mail program must be installed with it to satisfy this dependency.

An example: A source distribution such as Gentoo, could implement a compile flag to state whether or not it will be compiled with mail support, passing this configuration option to PHP accordingly. This would then reduce the number of packages that are required in order to achieve a minimal PHP installation.


This is part of a larger personal effort. I've been filing bug reports and patches for a number of programs that depend on a mail package when email isn't relevant to their core function. My ultimate goal is to make it possible to have a Linux system without any mail program installed, seeing as the vast majority of desktops and servers don't send mail themselves (usually handing it through a dedicated mail server, or a 3rd party mail service).
 [2013-01-08 04:51 UTC] anthonyryan1 at gmail dot com
-Status: Feedback +Status: Open
 [2013-10-24 06:41 UTC] yohgaki@php.net
I think sendmail check should be removed and always build mail().

Isn't it enough display warning while executing ./configure?
 [2013-10-24 06:41 UTC] yohgaki@php.net
-Status: Open +Status: Analyzed -Assigned To: +Assigned To: yohgaki
 [2013-10-24 09:37 UTC] anthonyryan1 at gmail dot com
That is actually the exact opposite of what I'm proposing. I'm proposing for an additional way to *disable* the use of sendmail within PHP. The end goal, as stated already is to improve dependency management in various linux distributions that are trying to make MTA's optional.
 [2013-10-24 09:52 UTC] yohgaki@php.net
-Assigned To: yohgaki +Assigned To:
 [2013-10-24 09:52 UTC] yohgaki@php.net
Opposite?
So you would like to remove mail() completely from PHP even if 'configure' detected /usr/bin/sendmail? I thought you would like to build mail() regardless of sendmail binary existence.

It does not make sense to me.
 [2013-10-25 00:55 UTC] anthonyryan1 at gmail dot com
I would like to remove mail() completely from PHP even if 'configure' detected /usr/bin/sendmail.
 
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Tue Nov 13 16:01:26 2018 UTC