Connection could not be established with host "ssl://mail.meinserver.de:465":
Hallo,
meine Formulare oder newesletter gehen noch nicht raus.
Deswegen habe einen neuen Webserver IP 128.140.126.64 auf dem eine contao Instanz läuft, sonst nichts.
Der mailcow-server hat eine andere IP 188.245.201.116
parameters.yaml:
Code:
parameters:
mailer_transport: smtp
mailer_host: mail.mailserver.de
mailer_user: info%40meinemailadresse.de
mailer_password: 'zzzzzzzzz'
mailer_port: 465
mailer_encryption: ssl
Code:
(Symfony\\Component\\Mailer\\Exception\\TransportException(code: 0): Connection could not be established with host \"ssl://mail.avfmail2.de:465\": stream_socket_client(): Unable to connect to ssl://mail.avfmail2.de:465 (Connection timed out) at /home/ac-claud/public_html/public/vendor/symfony/mailer/Transport/Smtp/Stream/SocketStream.php:154)","contao":{"Contao\\CoreBundle\\Monolog\\ContaoContext":"{\"func\":\"Contao\\\\CoreBundle\\\\Messenger\\\\EventListener\\\\MessageListener::onWorkerMessageFailed\",\"action\":\"ERROR\",\"username\":\"N\\/A\",\"browser\":\"N\\/A\",\"uri\":null,\"pageId\":null}"}} {"request_uri":"https://128.140.126.64/","request_method":"GET","contao":{"Contao\\CoreBundle\\Monolog\\ContaoContext":"{\"func\":\"Contao\\\\CoreBundle\\\\Messenger\\\\EventListener\\\\MessageListener::onWorkerMessageFailed\",\"action\":\"ERROR\",\"username\":\"N\\/A\",\"browser\":\"N\\/A\",\"uri\":null,\"pageId\":null}"}}
[2025-11-11T10:11:35.401150+00:00] messenger.INFO: Rejected message Symfony\Component\Mailer\Messenger\SendEmailMessage will be sent to the failure transport Symfony\Component\Messenger\Bridge\Doctrine\Transport\DoctrineTransport. {"class":"Symfony\\Component\\Mailer\\Messenger\\SendEmailMessage","transport":"Symfony\\Component\\Messenger\\Bridge\\Doctrine\\Transport\\DoctrineTransport"} {"request_uri":"https://128.140.126.64/","request_method":"GET"}
[2025-11-11T10:11:35.406587+00:00] messenger.INFO: Stopping worker. {"transport_names":["contao_prio_high"]} {"request_uri":"https://128.140.126.64/","request_method":"GET"}
[2025-11-11T10:11:35.406687+00:00] messenger.INFO: Worker stopped due to time limit of 20s exceeded {"timeLimit":20} {"request_uri":"https://128.140.126.64/","request_method":"GET"}
Code:
blocklist.de findet keine der beteiligten IPs, der server ist erst 20 Tage am Netz, und für nichts anders da, als dieses Problem einzugrenzen und zu lösen.
ping 128.140.126.64
PING 128.140.126.64 (128.140.126.64) 56(84) bytes of data.
64 bytes from 128.140.126.64: icmp_seq=1 ttl=64 time=0.032 ms
Die Firewall ist serverseitig bei Hetzner definiert und angewendet.
Das sind alle offene ports:
TCP 465 ist dabei:
sudo netstat –program –tcp –udp –numeric –listening
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:465 0.0.0.0:* LISTEN 1307/master
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 1307/master
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 921/sshd: /usr/sbin
tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN 1307/master
tcp 0 0 128.140.126.64:53 0.0.0.0:* LISTEN 709745/named
tcp 0 0 128.140.126.64:53 0.0.0.0:* LISTEN 709745/named
tcp 0 0 128.140.126.64:53 0.0.0.0:* LISTEN 709745/named
tcp 0 0 128.140.126.64:53 0.0.0.0:* LISTEN 709745/named
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 1059/mariadbd
tcp 0 0 0.0.0.0:10000 0.0.0.0:* LISTEN 1333/perl
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 709745/named
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 709745/named
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 709745/named
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 709745/named
tcp 0 0 127.0.0.1:556 0.0.0.0:* LISTEN 6504/perl
tcp 0 0 127.0.0.1:8891 0.0.0.0:* LISTEN 973/opendkim
tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN 709745/named
tcp 0 0 127.0.0.1:10023 0.0.0.0:* LISTEN 887/postgrey –inet
tcp 0 0 0.0.0.0:20000 0.0.0.0:* LISTEN 1331/perl
tcp6 0 0 :::443 :::* LISTEN 300134/apache2
tcp6 0 0 :::465 :::* LISTEN 1307/master
tcp6 0 0 ::1:53 :::* LISTEN 709745/named
tcp6 0 0 ::1:53 :::* LISTEN 709745/named
tcp6 0 0 ::1:53 :::* LISTEN 709745/named
tcp6 0 0 ::1:53 :::* LISTEN 709745/named
tcp6 0 0 :::25 :::* LISTEN 1307/master
tcp6 0 0 :::22 :::* LISTEN 921/sshd: /usr/sbin
tcp6 0 0 :::21 :::* LISTEN 3100597/proftpd: (a
tcp6 0 0 :::80 :::* LISTEN 300134/apache2
tcp6 0 0 ::1:953 :::* LISTEN 709745/named
tcp6 0 0 :::587 :::* LISTEN 1307/master
tcp6 0 0 fe80::9000:6ff:fea3::53 :::* LISTEN 709745/named
tcp6 0 0 fe80::9000:6ff:fea3::53 :::* LISTEN 709745/named
tcp6 0 0 fe80::9000:6ff:fea3::53 :::* LISTEN 709745/named
tcp6 0 0 fe80::9000:6ff:fea3::53 :::* LISTEN 709745/named
tcp6 0 0 ::1:10023 :::* LISTEN 887/postgrey –inet
tcp6 0 0 :::10000 :::* LISTEN 1333/perl
tcp6 0 0 2a01:4f8:c013:fc9::1:53 :::* LISTEN 709745/named
tcp6 0 0 2a01:4f8:c013:fc9::1:53 :::* LISTEN 709745/named
tcp6 0 0 2a01:4f8:c013:fc9::1:53 :::* LISTEN 709745/named
tcp6 0 0 2a01:4f8:c013:fc9::1:53 :::* LISTEN 709745/named
tcp6 0 0 :::2222 :::* LISTEN 3100597/proftpd: (a
udp 0 0 0.0.0.0:10000 0.0.0.0:* 1333/perl
udp 0 0 0.0.0.0:20000 0.0.0.0:* 1331/perl
udp 0 0 128.140.126.64:53 0.0.0.0:* 709745/named
udp 0 0 128.140.126.64:53 0.0.0.0:* 709745/named
udp 0 0 128.140.126.64:53 0.0.0.0:* 709745/named
udp 0 0 128.140.126.64:53 0.0.0.0:* 709745/named
udp 0 0 127.0.0.1:53 0.0.0.0:* 709745/named
udp 0 0 127.0.0.1:53 0.0.0.0:* 709745/named
udp 0 0 127.0.0.1:53 0.0.0.0:* 709745/named
udp 0 0 127.0.0.1:53 0.0.0.0:* 709745/named
udp 0 0 0.0.0.0:68 0.0.0.0:* 676/dhclient
udp6 0 0 ::1:53 :::* 709745/named
udp6 0 0 ::1:53 :::* 709745/named
udp6 0 0 ::1:53 :::* 709745/named
udp6 0 0 ::1:53 :::* 709745/named
udp6 0 0 2a01:4f8:c013:fc9::1:53 :::* 709745/named
udp6 0 0 2a01:4f8:c013:fc9::1:53 :::* 709745/named
udp6 0 0 2a01:4f8:c013:fc9::1:53 :::* 709745/named
udp6 0 0 2a01:4f8:c013:fc9::1:53 :::* 709745/named
udp6 0 0 fe80::9000:6ff:fea3::53 :::* 709745/named
udp6 0 0 fe80::9000:6ff:fea3::53 :::* 709745/named
udp6 0 0 fe80::9000:6ff:fea3::53 :::* 709745/named
udp6 0 0 fe80::9000:6ff:fea3::53 :::* 709745/named
Diese Fehlermaldung habe ich auch im mailcowforum angefragt, davon kommt die Vermutung das Ports nicht ereichbar sind.
Wenn der symphony/Contao auf dem einen server läuft, dann eine anfrage auf einem andern Server nicht machen darf?
Denn wenn ich vom Terminal vom Mac pinge fängt die Hetzner Firewall die Abfragen ab.
Gruß und Dank für Mitdenken, dtptiger