Using PHP configured sendmail paths, if [MAIL][transport] = sendmail is active
TYPO3 is using 'transport_sendmail_command' => '/usr/sbin/sendmail -bs' per default in /typo3/sysext/core/Configuration/DefaultConfiguration.php
"The command to call to send a mail locally. The default works on most modern UNIX based mail server (sendmail, postfix, exim)"
But this is not 100% correct, not every modern sendmail (e.g. msmtp) implementation is supporting the "-bs" option.
Sometimes for example "-t" is needed. OK, you can set it manually. But:
I think most of the hoster out in the web know their environment.
So why not trusting the hoster and using the PHP "sendmail_path" in "transport_sendmail_command" as default?
[FEATURE] Retrieve sendmail command from PHP configuration
The install tool setting [MAIL][transport_sendmail_command] is now retrieved
from PHP configuration sendmail_path during installation.
As before this settings is only used if you set sendmail as [MAIL][transport]
Reviewed-by: Daniel Goerz <firstname.lastname@example.org>
Tested-by: Daniel Goerz <email@example.com>
Reviewed-by: Daniel Maier <firstname.lastname@example.org>
Tested-by: Daniel Maier <email@example.com>
Reviewed-by: Stefan Neufeind <firstname.lastname@example.org>
Tested-by: Stefan Neufeind <email@example.com>
#1 Updated by Markus Klein over 4 years ago
- Target version changed from 7.1 (Cleanup) to 7.2 (Frontend)
Generally I like the idea.
I'd suggest to add this detection to the Install Tool, where the system detects the settings.
Can you provide a patch to our review system for that?
Since this should only affect new installations, it should not touch the setting itself, but only during initial installation.
We can therefore even backport this to 6.2 then.