How I fixed my contact form

When I switched to PHP 7.4 I forgot to specify sendmail_path parameter in php.ini and my contact form stopped working. Today I found sendmail_path parameter in PHP 7.0:

cd /etc/php
find . -name "php.ini"
./7.0/fpm/php.ini
./7.0/cgi/php.ini
./7.0/cli/php.ini
./7.4/fpm/php.ini
./7.4/cli/php.ini
grep sendmail ./7.0/fpm/php.ini
sendmail_path = "/usr/sbin/sendmail -t -f *****@yandex.ru -i"

And added it to PHP 7.4:

sudo nano ./7.4/fpm/php.ini
sudo service php7.4-fpm reload

and my contact form started to work.

Also I noticed that the certificate from smtp.yandex.ru changed:

openssl s_client -starttls smtp -crlf -connect smtp.yandex.ru:25
-----BEGIN CERTIFICATE-----
MIIGzDCCBbSgAwIBAgIMTA9sGcvjlx/1ghVjMA0GCSqGSIb3DQEBCwUAMFAxCzAJ
BgNVBAYTAkJFMRkwFwYDVQQKExBHbG9iYWxTaWduIG52LXNhMSYwJAYDVQQDEx1H
bG9iYWxTaWduIFJTQSBPViBTU0wgQ0EgMjAxODAeFw0yMjA3MjUxMTE2MzZaFw0y
MzAxMjIyMDU5NTlaMF0xCzAJBgNVBAYTAlJVMQ8wDQYDVQQIEwZNb3Njb3cxDzAN
BgNVBAcTBk1vc2NvdzETMBEGA1UEChMKWWFuZGV4IExMQzEXMBUGA1UEAxMOc210
cC55YW5kZXgucnUwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDdzti0
fzQI/w2+v0+I1kNryx3kxHydCFOuNeRde1rKKPla3nVTyRSnWyXWE2+10FrLGLeL
TIo6EHEeeQxVUYYeQRJq9kYGHrUVkC7xiTa1gRUhKcmlPXwAI2xlxW4bvVOKmlCI
jIpfK/YFUD2yIcB6IZGe02fPJXoFj0knkNIBvKVGeEYT0wjVgCgyKOsMIjqv0cNE
O306o3XGMXtBKqJX8DiZBJYqAYNnKLus46u5GpkKP4wNkIQl10Mpewts/F5ABXlx
ibjIUYM5DOQFTaGPmcL4Wegz53PiTXACwFvXJsPRzPccuEL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
E71/AgFCEFXY9HF5K37AaYcCICZtz6VczBw8yPnznnyz5h+ABR+0IVx2POkYRNzS
l73SAHcAs3N3B+GEUPhjhtYFqdwRCUp5LbFnDAuH3PADDnk2pZoAAAGCNRLEqAAA
BAMASDBGAiEAi1+VjozRD53ZcKsTnC+0nR2JFCiWKpPsl4X/1tyivEkCIQCyM0XG
OOdyymQNQzXRcyi8Hd9EJnP1MnkIOoSGVmq/ejANBgkqhkiG9w0BAQsFAAOCAQEA
Vr5S0493sRZA8H47+HihgPkGNTpvaM2tiJ3F5j8Ra4H8wE7EcUSarJDvZ6qHJLkn
8mAE0YZk7TpQ6icWPFtpFJFfefy4dKrb0NH5NjThXpgxSJsNcn1auLCxQwYjlvaS
TSzj7JxZe939o21NvzfF/Oe52qbIi9b5APPnf324vGNYV2AMhDGRR5j7Kd0lw70s
rW4ndYCjcLxxY+rFgawcHomJG3AhgpPVHMGQwuoC79cy/UDVx+qfMzgOHd/kwBbj
WTcejJR2D0Meq2mefzLkQOk+i0TbrQ4LCT70sbPlFy3wb5P66CbemVbUnHEzYvgi
CdOcTGI5fpy1pRzzee6xMQ==
-----END CERTIFICATE-----

but the old one still works.

Leave a Reply

Your email address will not be published.