#93774Check if default sendmail command contains "-i" option to prevent the "double dot problem"
Description
Sending e-mail with line longer than 76 characters where dot is present as a 76th character produces duplicated dot while using Sendmail transport in -t mode.
There are some resources related to swiftmailer (below), but it also affects symfony/mail because the behaviour is caused by sendmail itself.
As mentioned in the swiftmailer inline documentation, it is highly recommended to use -i together with -t. So could (should) this be the new default for the TYPO3 core?
https://github.com/swiftmailer/swiftmailer/issues/1058
https://github.com/swiftmailer/swiftmailer/issues/72
https://github.com/swiftmailer/swiftmailer/blob/master/lib/classes/Swift/Transport/SendmailTransport.php#L54
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
History 7
-
Jan Kornblum commented <span data-processor="relativetime" data-value="2021-03-22T11:08:33+00:00" > 03/22/21, 11:08 </span>
It seems that TYPO3 retrieves the default sendmail command from PHP (php.ini). In my case (a fresh 10 LTS installation on mittwald) it is set like “sendmail_path = /usr/sbin/sendmail -t”). Should the core automatically extend it with “-i” if missing, despite? Or is this only a “mittwald” issue?
-
Jan Kornblum changed tracker
BugFeature TYPO3 Version10<span data-processor="relativetime" data-value="2021-03-22T11:23:46+00:00" > 03/22/21, 11:23 </span> -
Andreas Kießling commented <span data-processor="relativetime" data-value="2021-09-29T09:50:01+00:00" > 09/29/21, 09:50 </span>
I can’t remember having had this problem on any other hosting than Mittwald. Maybe a check in the Reports module would be enough if sendmail is the configured transport.
When testing a clients bug report locally for “wrong urls with double dots” and you use something like ddev with mailhog you will never find the source of the problem :/ -
Jan Kornblum commented and changed subject
Modify default sendmail command by adding "-i" option to prevent the "double dot problem"Check if default sendmail command contains "-i" option to prevent the "double dot problem" category <span data-processor="relativetime" data-value="2021-09-29T16:42:39+00:00" > 09/29/21, 16:42 </span>Yes, it is definitly a mittwald (not TYPO3 core) problem. Already told them to change their default, they plan to do so. Nevertheless an additional check in “reports” module might really be helpful for certain “exotic” hostings ;) I’ve renamed this issue.
-
Georg Ringer commented and changed status
NewClosed <span data-processor="relativetime" data-value="2025-04-20T14:53:36+00:00" > 04/20/25, 14:53 </span>Hey Jan,
as this is a very specific issue which has IMHO never popped up since, I am closing this issue.
If it is still relevant to anyone, please open a new issue or contact me on slack.
thanks -
Jan Kornblum commented <span data-processor="relativetime" data-value="2025-04-20T16:03:49+00:00" > 04/20/25, 16:03 </span>
It’s ok. Because in recent versions default setting is „sendmail -t -i“
To test, simply send a mail using the mail api where the 76th chacacter is a “dot”:
In the resulting mail, the “dot” has been replaced by a double dot:
This also occures, when the first letter of a line is a “dot”:
This results in:
In most environments this will be noticed only accidentally (if at all), but it happens. And especially when using the mail api intensively (e.g. for sending newsletters to lots of recipients), this can cause unpleasant results (dead links or invalid css classes).
It shouldn’t be an integrators or developers part so set the sendmail option “-i” manually per instance (most won’t do because they don’t know why). It should be default.