-
- #1
Ich habe derzeit Schwierigkeiten, mit dem WCF rauszumailen:
Sun 2017-01-08 15:32:41.143: Session 048624; child 0001 Sun 2017-01-08 15:32:41.143: Accepting SMTP connection from xxx.xxx.xxx.xxx:39684 to 192.168.10.6:25 Sun 2017-01-08 15:32:41.143: --> 220-host.tld ESMTP MDaemon 16.5.2; Sun, 08 Jan 2017 15:32:41 +0100 Sun 2017-01-08 15:32:41.143: --> 220 NO RELAY, WE TRACK ALL IP´S Sun 2017-01-08 15:32:41.162: <-- EHLO client.tld Sun 2017-01-08 15:32:41.162: --> 250-host.tld Hello client.tld [xxx.xxx.xxx.xxx], pleased to meet you Sun 2017-01-08 15:32:41.162: --> 250-ETRN Sun 2017-01-08 15:32:41.162: --> 250-AUTH LOGIN CRAM-MD5 PLAIN Sun 2017-01-08 15:32:41.162: --> 250-8BITMIME Sun 2017-01-08 15:32:41.162: --> 250-ENHANCEDSTATUSCODES Sun 2017-01-08 15:32:41.162: --> 250-STARTTLS Sun 2017-01-08 15:32:41.162: --> 250 SIZE Sun 2017-01-08 15:32:41.181: <-- STARTTLS Sun 2017-01-08 15:32:41.181: --> 220 2.7.0 Ready to start TLS Sun 2017-01-08 15:32:41.234: SSL negotiation successful (TLS 1.0, 384 bit key exchange, 256 bit AES encryption) Sun 2017-01-08 15:32:41.253: * Socket error 590615 - Der Absender hat die Nutzung der Verbindung beendet und eine Trennung eingeleitet. Sun 2017-01-08 15:32:41.253: SMTP session terminated (Bytes in/out: 434/1746)
Alles anzeigen
Allerdings funktioniert der Mailversand mit dem PHPMailer und denselben Einstellungen, weshalb ich ein Problem im WCF selbst vermute.
Irgendwer eine Idee? Tim Düsterhus
-
- Offizieller Beitrag
- #2
Hallo,
was für Fehlermeldungen erzeugt das WCF denn?
-
- #3
Das WCF sagt gar nichts. Auch kein Eintrag im Log zu finden.
Für mich sieht das so aus, als würde das WCF die Verbindung zu früh beenden und nicht auf die Antwort des Servers warten.
-
- Offizieller Beitrag
- #4
Hallo,
das kann aber nicht sein. Das WCF beendet an der Stelle gar nichts. Entweder es wird eine Exception geworfen, weil die Verbindung abbricht oder der komplette Request stirbt innerhalb von PHP. Das hier ist die Stelle mit dem STARTTLS-Kommando: https://github.com/WoltLab/WCF…PMailSender.class.php#L84
-
- #5
Ich bin leider kein Mailserver-Experte. Ich weiß nur, dass das mittlerweile zu einem echten Problem wird.
Wie gesagt… Mit dem o.g. PHP-Script (wird u.A. in WordPress eingesetzt) funktioniert es problemlos. Im WCF mit denselben Einstellungen leider nicht.
-
- Offizieller Beitrag
- #6
Hallo,
du kannst probieren auf der anderen Seite (i.e. innerhalb des WCF) zu loggen, was dessen Meinung nach mit dem Mailserver ausgetauscht wird. Und wenn dort ebenfalls Schicht ist und trotzdem keine Exception geworfen wird, dann kannst du den PHP-Prozess mal tracen.
0 / 0 / 0 Регистрация: 24.01.2013 Сообщений: 12 |
|
1 |
|
25.02.2017, 16:30. Показов 7529. Ответов 8
Подскажите, при запуске программы выскакивает окно — windows socket error: обычно разрешается только одно использование адреса сокета (протокол/сетевой адрес/порт) (10048), on API ‘buld’ и еще одно — Acces violation at address 00502CCF in module ‘HASyn.exe’. Write of address 0FA5C000.
__________________
0 |
4232 / 1738 / 245 Регистрация: 01.05.2013 Сообщений: 7,647 |
|
25.02.2017, 18:18 |
2 |
anton877, Windows sockets error codes, values, and meanings. WSAEADDRINUSE (10048) Перевод: адрес уже используется. Посмотрите. Будет ли наблюдаться эта ошибка при запуске программы в Безопасном режиме с загрузкой сетевых драйверов ?
0 |
0 / 0 / 0 Регистрация: 24.01.2013 Сообщений: 12 |
|
25.02.2017, 18:30 [ТС] |
3 |
в безопасном режиме тоже самое.
0 |
4232 / 1738 / 245 Регистрация: 01.05.2013 Сообщений: 7,647 |
|
25.02.2017, 18:48 |
4 |
anton877, Хм… то что в безопасном выскакивает эта ошибка — странно. Далее действуйте методом «половинного деления». Включите половину служб и снова перезагрузитесь. Если проблема не появляется, причина в оставшихся отключенных службах. Если проблема воспроизводится, причина во включенных службах — отключите половину из них и снова перезагрузитесь. Действуя таким образом, вы сможете выявить службу, являющуюся причиной проблемы, и определить программу, которой она принадлежит. Далее можно порекомендовать лишь обновление программы до последней версии или ее удаление. 2. Запустить командную строку от имени администратора и ввести команду Посмотрите нет ли в списке процессов (PID),которые используют один и тот же IP-адрес. Далее запустите диспетчер задач — > вкладка Процессы -> Вид -> Выбрать столбцы -> отметьте ИД процесса и нажмите ОК -> далее с помощью номера PID вы найдёте процессы,кторые используют одни и те же IP-адреса.
0 |
0 / 0 / 0 Регистрация: 24.01.2013 Сообщений: 12 |
|
25.02.2017, 20:20 [ТС] |
5 |
сейчас попробую. Добавлено через 7 минут процесс еще идет Добавлено через 14 минут одинаковых не заметил, может не там смотрю?
0 |
4232 / 1738 / 245 Регистрация: 01.05.2013 Сообщений: 7,647 |
|
25.02.2017, 22:54 |
6 |
anton877, список активных адресов может быть огромен и не уместится в командной строке. Лучше используйте команду Код netstat -aon >C:result.log .
0 |
0 / 0 / 0 Регистрация: 24.01.2013 Сообщений: 12 |
|
26.02.2017, 02:26 [ТС] |
7 |
при вводе C:result.log. все резко обрывается и я ничего не вижу, окна с процессом работы не вижу. в ИД процесса, я не заметил одинаковых совпадений, или нужно не одинаковые искать?
0 |
4232 / 1738 / 245 Регистрация: 01.05.2013 Сообщений: 7,647 |
|
26.02.2017, 02:28 |
8 |
anton877, так и должно быть. Весь результат выполнения команды записывается в файл result.log.
0 |
0 / 0 / 0 Регистрация: 24.01.2013 Сообщений: 12 |
|
26.02.2017, 15:25 [ТС] |
9 |
я у себя не нахожу этого файла result.log
0 |
Socket error is kind of a common error we often face while using the internet for connecting to another computer, sending mails or just browsing. There are several errors having identical codes.
Sometimes the problem occurs because of our firewall and antivirus settings; sometimes the server or the computer we are trying to connect to reports an error. Basically there are lots of errors like this. Here we are giving some errors and their solutions.
Socket Error 10053
This error message reports “Software caused connection abort”.
Cause
There are several things that cause this error to happen.
- The established connection may be aborted by software. This can be possibly done by an antivirus program.
- Not only the software, it can also happen by network problem or server problem.
- If the port is inactive for a long time, the problem may arise.
- The MTU (Maximum Transmission Unit) settings can also create the problem.
Solutions
As the problems are widespread, the solutions are also quite dependent on the type of problem.
- If the problem is caused by the VPOP3 client while downloading or sending mail, then the antivirus program can cause the problem. Generally McAfee VirusScan 8 and Norton Antivirus 2004 is the reason behind the error. Also other antivirus programs can create the problem.
- If a VPOP3 client has stopped working due to some other reason,we have to wait till it gets fixed.
- In the case of MTU settings problems, the large value of MTU can be a cause to discard the message in the network. So we have to set the MTU value at 1432 and the MSS (Maximum Segment Size) must be set to 0 or to auto adjust.
Socket Error 10061
This error report says “Connection refused”.
Cause
There are quite a few reasons for this problem.
- The target computer may have refused the connection. This happens when the computer is not connected to any running server application.
- Sometimes the destination mail server is refusing to receive mail. The spam filter is preventing the mail from being received. This means the SMTP server is sending junk mails.
- The firewall can also block the new connection attempt. The Port 25 (needed for SMTP) and the Port 110 (needed for POP) are blocked by the firewall.
- The ISP can also be too busy to accept any new connection.
Solutions
There are couple of solutions for this error.
- If the error is reported during sending an email then the SMTP has an error. Maybe we have sent too much mail during a short period to the destination mail. So the destination mail server reported the sending mail server as spam. In this context, we can reduce the frequency of sending mail to the mail server. Also we can send the mail via relay server. But the use of the relay server is not quite secure to use as it’s used by spammers.
- We can disable the firewall for some period and try to send mail to the destination mail server. If it succeeds then we can be sure that the firewall is creating the problem. So we can add exceptions for the connection in the firewall.
Socket Error 10049
This error report says “Cannot assign requested address”.
Cause
The main reason behind this error is that the address entered is invalid in the IP address. It happens to bind the address which is not valid in the local computer address. Timing issues in the DNS lookup can also create this error.
Solutions
The solutions for this problem are quite limited.
- Sometimes the reason behind this problem is the firewall. So if we put the host for our server in the firewall (it can be our system firewall or the antivirus firewall), it can solve the problem.
- Also if we forward the port in the internal IP of the new PC which we are trying to connect, it can resolve the problem.
- For the timing issue in the DNS lookup we have to follow some tiny steps. In the ‘Diagnostics’ tab in the VPOP3 we have to press ‘TCP/IP Tuning Option’ button and tick the ‘Use synchronous DNS’.
Socket Error 10051
The error report says “Network is unreachable”.
Cause
There are several reasons behind the problem.
- The internet connection may be down so the router can find a way to send the data to the destination.
- The router may be misconfigured so the router is not able to communicate with the target server.
- The firewall may be blocking port 25, which is used for the SMTP client connection to send mails.
- If we have two or more routers connected then windows may be misconfigured to communicate.
Solutions
The solutions for this problem are quite simple.
- The ISP sometimes blocks port 25 to control the spam through their servers. So we can call them to unblock port 25 and also we can use their own SMTP server.
- If the firewall is blocking port 25 then we can add an exception for the port in the settings of firewall.
Socket Error 11004
The error report says “Valid name, no data of requested type”. The requested name is valid and was found in the database, but it does not have the correct associated data being resolved for.
Solutions
- As the error is associated with DNS so first of all check whether the address typed is correct or not.
- Try to connect with the IP address instead of Domain name. Ping the domain name in the command prompt to get the IP address of the domain name.
- We also have to be sure that the firewall or any antivirus program isn’t blocking the ports.
- A registry scan may help in this context. Any reliable registry scanner software can do the job.
Socket Error 10013
The error message says “Permission denied”.
Cause
An attempt was made to access a socket in a way forbidden by its access permissions. An example is using a broadcast address for sendto without broadcast permission being set using setsockopt (SO_BROADCAST).
Another possible reason for the WSAEACCES error is that when the bind function is called, another application, service, or kernel mode driver is bound to the same address with exclusive access. Such exclusive access is a new feature of Windows NT 4.0 with SP4 and later, and is implemented by using the SO_EXCLUSIVEADDRUSE option.
Solutions
- Check the firewall settings whether it is blocking the port 25 or not. If yes then disable the firewall for some time and check whether the same error persists or not. Then we have to change the firewall settings so that it doesn’t block port 25.
- A registry scan may help in this context. Any reliable registry scanner software can do the job.
Socket Error 10060
The error report says “Connection timed out”. It means that the connected host failed to respond or the connection failed after some period of time.
Solutions
- The error simply means that the SMTP server needs authentication. So if we are using Outlook Express then we should check the box ‘My server requires authentication’.
- The firewall may also be blocking the connection. Disabling the firewall may resolve the error.
- The SMTP server may also be blocked. So contacting ISP may resolve the problem.