I am trying to send emails through Symfony using Swiftmailer. On the production server, I get an error message:
[2016-08-20 11:59:37] app.ERROR: Exception occurred while flushing email queue: Unable to connect with TLS encryption [] []
This is what I have in my config.yml:
swiftmailer: transport: smtp host: localhost username: info@derkvanderheide.nl password: testpw spool: { type: memory } encryption: tls port: 587
Postfix is ββmy mail server, it was installed with Plesk.
This is my postfix main.cf:
This is the output from telnet:
Trying 185.57.10.237... Connected to derkvanderheide.nl. Escape character is '^]'. 220 derkvanderheide.nl ESMTP Postfix (Ubuntu) ehlo localhost 250-derkvanderheide.nl 250-PIPELINING 250-SIZE 10240000 250-ETRN 250-STARTTLS 250-ENHANCEDSTATUSCODES 250-8BITMIME 250 DSN
This is in my maillog:
Aug 20 17:06:35 vps-248826-4222 postfix/smtpd[8592]: connect from vps-248826-4222.hosted.at.hostnet.nl[127.0.0.1] Aug 20 17:06:35 vps-248826-4222 postfix/smtpd[8592]: SSL_accept error from vps-248826-4222.hosted.at.hostnet.nl[127.0.0.1]: 0 Aug 20 17:06:35 vps-248826-4222 postfix/smtpd[8592]: warning: TLS library problem: error:14094418:SSL routines:SSL3_READ_BYTES:tlsv1 alert unknown ca:s3_pkt.c:1262:SSL alert number 48: Aug 20 17:06:35 vps-248826-4222 postfix/smtpd[8592]: lost connection after STARTTLS from vps-248826-4222.hosted.at.hostnet.nl[127.0.0.1] Aug 20 17:06:35 vps-248826-4222 postfix/smtpd[8592]: disconnect from vps-248826-4222.hosted.at.hostnet.nl[127.0.0.1]
I have almost no clue what I'm doing, this is my first case with a mail server.
source share