Hi, I've gone over a dozen Database Mail install instructions. They are all very well written and the same.
I've searched for answers to the error messages, found some talented solutions but haven't found one that works.
Any suggestions?
Problem:
sysmail_unsentitems. Contains all test emails sent_status:unsent
None have status of sent or failed.
Log shows these errors on sending test emails:
*************
Log Windows NT (Application)
Source MSSQLSERVER
Category (2)
Event 17052
Computer u16195902
Message
The description for Event ID 17052 from source MSSQLSERVER cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
************
Log Windows NT (Application)
Source DatabaseMail
Category (0)
Event 0
Computer u16195902
Message
There was an error on the connection. Reason: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 0 - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.), connection parameters: Server Name: U16195902, Database Name: msdb
A network-related or instance-specific error occurred while establishing a connection to SQL Server. Theserver was not found or was not accessible. Verify that theinstance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 0 - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.)
**********
I've read on older versions of the server you could fix the connect string. On 2008 one contributor said you could fix this by setting up an alias. I tried that but could not log into the database afterwards so I removed the alias.
Microsoft SQL Server 2012 - 11.0.2218.0 (X64) Enterprise Evaluation Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack
- Connected to smtp mail server's port 25 with PuTTY and got a 220.
- can sendMail CDO with asp OK. Using same smtp server parameters in Database Mail.
- firewall inbound rules SQL server port 1433 protocol: TCP applies to domain, private, public
- server properties: allowing remote connections to this server
- view facets: DatabaseMailEnabled: True
- sysmail_configuration. AccountRetryAttempts: 5, Logging level 3 verbose
- sp_configure 'Database Mail XPs', 1
- sp_configure 'show advanced', 1
- sysmail_profile associated to user
- sysmail_sent items: empty
- sysmail_event_log: The mail queue was started ...
- msdb.dbo.sysmail_help_status_sp = STARTED
- sysmail_help_queue_sp @queue_type = 'mail' = INACTIVE (because I am only sending a few test mails. I understand it's always inactive unless it's actively receive a slew of email)