-X <logfile>
This option is interpreted by Sendmail to cause debug information to be sent to the named file. It is ignored by Exim.
-X log_file (ignored)
Log mailer traffic. Use the debug_peer_list and debug_peer_level configuration parameters instead.
escapeshellcmd() prevents command execution, but allows to add additional parameters. For security reasons, it is recommended for the user to sanitize this parameter to avoid adding unwanted parameters to the shell command.А что там в документации написано на счёт того, что escapeshellcmd() применяется к пятому параметру автоматически?

Хехе. Похожую, да не такую. Та была в sendmail-транспорте. А эта - вот:В SwiftMailer-е, кстати, похожую уязвимость исправили пару лет назад.