James_43 15 Junior Poster

Hi all,

So I've never really understood the php mail function, but I've tried to set up msmtp after failing a bit with postfix. The problem I get now is when I go to send an email I get an error "unpexted TLS packed recieved". My account conf is:

account default
tls on
tls_starttls off
tls_trust_file /etc/ssl/certs/ca-certificates.crt
auth on
host smtp.office365.com
port 587
user ***
password ***
logfile /var/log/mail/mail.log

I'm guessing that because this is a TLS issue, I'm not doing something that's causing office365 domain to reject me? Can someone help?