E-mail notifcation not working
buttonbj
Posts: 11
Hello everyone,
We have SQL Backup 7.2 installed on our server and when we run the backup job, no notification gets sent to any of the recipients. The error we receive is: Warning 151: MAILTO error: Failed to send mail. (Socket Error # 10060 Connection timed out.)
When I check the server options and go to the Email Setting tab, everything is setup correctly there. When I hit the "Send a Test Email..." button, I receive a "Socket Error #10060 Connection timed out." error message. If I hit the "Send a Test Email..." a second or third time though, the e-mail sends. If I wait five minutes and hit the "Send a Test Email..." button again, I receive the "Socket Error #10060 Connection timed out." error once again. If I change e-mail servers, the same thing happens. Has anyone ever ran into this? Or can anyone explain exactly how an e-mail notification is sent from SQL Backup so I can try and pinpoint where the issue is happening or see if something is shutting a service down? Thank you in advance.
-Brandon
We have SQL Backup 7.2 installed on our server and when we run the backup job, no notification gets sent to any of the recipients. The error we receive is: Warning 151: MAILTO error: Failed to send mail. (Socket Error # 10060 Connection timed out.)
When I check the server options and go to the Email Setting tab, everything is setup correctly there. When I hit the "Send a Test Email..." button, I receive a "Socket Error #10060 Connection timed out." error message. If I hit the "Send a Test Email..." a second or third time though, the e-mail sends. If I wait five minutes and hit the "Send a Test Email..." button again, I receive the "Socket Error #10060 Connection timed out." error once again. If I change e-mail servers, the same thing happens. Has anyone ever ran into this? Or can anyone explain exactly how an e-mail notification is sent from SQL Backup so I can try and pinpoint where the issue is happening or see if something is shutting a service down? Thank you in advance.
-Brandon
Comments
You could increase the timeout value by making a change in SQL Backup's registry settings:
- open the registry
- look for HKEY_LOCAL_MACHINE\Software\Red Gate\SQL Backup\BackupSettingsGlobal\<instance name>
- add a new DWORD value named 'ConnectionTimeout', and enter the timeout value in milliseconds e.g. for a timeout value of 1 minute, enter 60000
SQL Backup Consultant Developer
Associate, Yohz Software
Beyond compression - SQL Backup goodies under the hood, updated for version 8
Do you know if the network adapter is overloaded, either on the SQL Server box, or on the SMTP server, hence causing the timeout to occur?
SQL Backup Consultant Developer
Associate, Yohz Software
Beyond compression - SQL Backup goodies under the hood, updated for version 8
SQL Backup Consultant Developer
Associate, Yohz Software
Beyond compression - SQL Backup goodies under the hood, updated for version 8
The first thing you need to do is verify that you can connect to the SMTP server from the SQL box. Have you done this with say... Putty or the Telnet command connecting to port 25 on the SMTP server?
http://technet.microsoft.com/en-us/libr ... v=exchg.65).aspx
If the test fails, then you need to start your troubleshooting there and take SQL Backup out of the equation.
It could be the Windows Firewall on either server blocking the connection, or a setting on the SMTP service not allowing relaying or a network device in the path not allowing the connection.