msmtprc установлен
ubuntu@server11960:~$ msmtp --version
msmtp version 1.4.31
Platform: x86_64-pc-linux-gnu
TLS/SSL library: GnuTLS
Authentication library: GNU SASL
Supported authentication methods:
plain scram-sha-1 cram-md5 gssapi external digest-md5 login ntlm
IDN support: enabled
NLS: enabled, LOCALEDIR is /usr/share/locale
Keyring support: none
System configuration file name: /etc/msmtprc
User configuration file name: /home/ubuntu/.msmtprc
Copyright (C) 2013 Martin Lambers and others.
This is free software. You may redistribute copies of it under the terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.
В
php.ini прописано
sendmail_path ="/usr/bin/msmtp -t"
В
/etc/msmtprcdefaults
tls on
tls_starttls on
tls_certcheck off
logfile /var/log/msmtp.log
В
/home/ubuntu/.msmtprcdefaults
tls on
tls_starttls on
tls_certcheck off
logfile /var/log/msmtp.log
account dssu
host smtp.yandex.ru
port 587
auth on
keepbcc on
user info@dssu.com.ua
password ******
from info@dssu.com.ua
account default : dssu
Тестирую
<?php var_dump(mail("cawa-93@ya.ru", "Yandex", 'TESTER', "From: info@dssu.com.ua\r\n")); ?>
Результат
bool(false)
Почему не роботает?