Database Mail installation, usage requirements??
I have been told that Database Mail in SQL Server 2012 (I don't know anything yet about 2014) on Windows Server 2012 R2 (Update 1 presumably) now requires installing the Desktop Experience
feature on the Windows 2012 R2 server containing SQL Server 2012.
I was further told that SQL Server Database Mail now requires
one file that is included by installing the Desktop Experience feature...!!
I'm sure this was/is not an issue with Windows Server 2008 R2 and earlier.
Is this all TRUE??
Would someone(s) please clarify??
Thank you, Tom
I had this told to me by a consultant...who also said it's something involved with or related to or akin to the Mail applet in Control Panel in Windows Server 2003/2008/2008 R2.
I can test this by quickly spinning up a test Win2k12 server and installing SQL 2012 and then setting up Database Mail...
Would you or someone(s) suggest a quick easy way to do a real-world test(s) of Database Mail that would help me test this out in addition to the built-in 'Test connection'??
Thank you, Tom
Similar Messages
-
Prerequisite check of database instance installation failed on Solaris
Dear All,
Please provide your valuable suggestions in resolving the below issue
We are installing the SAP NW 7.4 EP as distributed installation
Application server on RHEL 6 and Oracle database on Solaris 11(SPARC).
We have installed the SCS instance on RHEL with out any issues.
While running prerequisite check of database installation on solaris we are getting below errors.
"Atleast 500MB of free disk space are required for an diagnostic agent installation"
and
"could not evaluate condition obsolete kernel parameters"
In the sapinstdev_log file we are getting below lines.
TRACE
Found 0 MB of free space on /dev
TRACE
Prerequisite Checker performing checks: Condition hardware::disk_space from package ::j2ee_smd_inst evaluated to PRCCondEvalResult.FALSE. Message: 'At least 500 MB of free disk space are required for an Diagnostics Agent installation. Found 0 GB.'.
We have tried to increase space for /dev which is not possible in Solaris (As per the OS team).please find the below reference link.
/dev and the /devices Namespace (System Administration Guide: Oracle Solaris Containers-Resource Management and Oracle S…
The/dev file system is loopback-mounted into the zone using a read-only mount.
Please find the file system created for database instance installation.
Filesystem Size Used Available Capacity Mounted on
rpool/ROOT/solaris 29G 973M 28G 4% /
/dev 0K 0K 0K 0% /dev
rpool/ROOT/solaris/var
29G 49M 28G 1% /var
proc 0K 0K 0K 0% /proc
ctfs 0K 0K 0K 0% /system/contract
mnttab 0K 0K 0K 0% /etc/mnttab
objfs 0K 0K 0K 0% /system/object
swap 30G 1.5G 29G 5% /system/volatile
sharefs 0K 0K 0K 0% /etc/dfs/sharetab
fd 0K 0K 0K 0% /dev/fd
swap 30G 1.5G 29G 5% /tmp
rpool/VARSHARE 29G 40K 28G 1% /var/share
h2hpool1/Dump 40G 9.2G 31G 23% /Dump
rpool/export 29G 32K 28G 1% /export
rpool/export/home 29G 32K 28G 1% /export/home
rpool/export/home/admin
29G 34K 28G 1% /export/home/admin
h2hpool1 244G 31K 235G 1% /h2hpool1
h2hpool1/oracle 180G 36K 180G 1% /oracle
h2hpool1/oracle/EPD 180G 44K 180G 1% /oracle/EPD
h2hpool1/oracle/EPD/112_64
10G 31K 10G 1% /oracle/EPD/112_64
h2hpool1/oracle/EPD/mirrlogA
1.0G 31K 1.0G 1% /oracle/EPD/mirrlogA
h2hpool1/oracle/EPD/mirrlogB
1.0G 31K 1.0G 1% /oracle/EPD/mirrlogB
h2hpool1/oracle/EPD/oraarch
20G 31K 20G 1% /oracle/EPD/oraarch
h2hpool1/oracle/EPD/origlogA
1.0G 31K 1.0G 1% /oracle/EPD/origlogA
h2hpool1/oracle/EPD/origlogB
1.0G 31K 1.0G 1% /oracle/EPD/origlogB
h2hpool1/oracle/EPD/sapdata1
30G 31K 30G 1% /oracle/EPD/sapdata1
h2hpool1/oracle/EPD/sapdata2
30G 31K 30G 1% /oracle/EPD/sapdata2
h2hpool1/oracle/EPD/sapdata3
30G 31K 30G 1% /oracle/EPD/sapdata3
h2hpool1/oracle/EPD/sapdata4
30G 31K 30G 1% /oracle/EPD/sapdata4
h2hpool1/oracle/EPD/sapreorg
2.0G 31K 2.0G 1% /oracle/EPD/sapreorg
h2hpool1/oracle/client
1.0G 31K 1.0G 1% /oracle/client
h2hpool1/oracle/stage
5.0G 31K 5.0G 1% /oracle/stage/112_64
rpool 29G 31K 28G 1% /rpool
h2hpool1/sapmnt 20G 31K 20G 1% /sapmnt
h2hpool1/usr 20G 31K 20G 1% /usr/sapHi Praveen,
It looks to be more permission issue rather than space issue. Ensure the file system where you copied the DVD has full permission.
Check the installation logs for more details on which other file system needs full permission and work accordingly.
Regards,
Deepak Kori -
Database Mail Fails For SQL Server Agent Jobs / Maintenace plans - Why ?
Database Mail Fails For SQL Server Agent Jobs / Maintenace plans - Why ?
This has been a very common question I have seen relatedt to Database mail and I thought will post here so if you run into this issue, it could be due to one of the following and also have mentioned below how to get around them. Bottom line is datbase mail works fine with SQL Agent jobs and maintenace plans in SP1 on all platforms.
1. If you see this on 64 bit platform and on RTM build, this is a bug that is addressed in SP1.
2. If you see the below error message, it is known issue and this is because of design that requires SQL Agent to restart, if SQL Agent was started before enabling databasemail and setting a new profile. We are evaluating to change this design of not requiring to restart agent for our future release.
Re: 264] An attempt was made to send an email when no email session has been established
This problem will go away after restarting SQL Server Agent in this case. Thanks,
Gops Dwarak, MSFTThis may be related to the fact that DBMail, by default, shuts itself down after 10 minutes of inactivty. If the mail service isn't running, you won't be able to queue up any mail messages.
There may be a built-in mechanism for addressing this problem, but I found that I can detect this situation and start the mail listener before sending db mail. I use the following in stored procs that need to send email.
You could increase the inactivity period for db mail shutdown from 600 seconds to some larger value. It might not make sense to do so, since shutting it down releases its resources back to teh system; if your SQL server only sneds mail infrequently, it might be better to start the mail listener on demand. Someone with more experience than I might want to add their two cents' worth. :-)
/* Check the mail engine. Start the service if is is stopped */
/* -- the DB Mail engine shuts down after 10 minutes (of inactivity) */
/* -- this setting can be changed, but we probably don't need to. */
DECLARE @rc INT
IF NOT EXISTS (SELECT * FROM msdb.sys.service_queues
WHERE name = N'ExternalMailQueue' AND is_receive_enabled = 1)
EXEC @rc = msdb.dbo.sysmail_start_sp
-- TODO: add handling and logging for any engine start issues -
Prerequisities for Database mail
Hi all,
I am trying to configure Database mail,is IIS is mandatory ? I configured DB mail,but its not working ?
Any other settings i need to check in WinServer.
Thanks - SelvaKumarSubramaniam.Please MARK AS ANSWER, if my answer is useful to U.SQL server running under Local system,if i change the account to network service.is it have any impact for SQL Server ?
Hi Selvaons,
According to your description, when you change the Service Startup Account for SQL Server from the “Local System” account to the “ Network service” account, usually it will not impact the SQL Server service.
However, the Network Service account is a special, built-in account that is similar to an authenticated user account. The name of this account is NT AUTHORITY\NetworkService. Services that run as the Network Service account access network
resources using the credentials of the computer account. The local system account does not require a password to connect to SQL Server on the same computer. Local System is a powerful account and
completely trusted account, than the administrator account.
We recommend that you do not use the Network Service account for the SQL Server. Local User or Domain User accounts are more appropriate for these SQL Server services.
For more information about the difference between Local System account, Network Service account, and Local Service account, you can review the following post.
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/7cd5247a-8e3f-488d-a2a3-3e7b27c49a4f/difference-between-local-service-account-and-network-service-account-in-windows-server-with-respect?forum=sqlsecurity
Regards,
Sofiya Li
Sofiya Li
TechNet Community Support -
Iphone mail app regularly requires restart to get mail flowing???
Anyone seeing this issue? Advice re how to fix?
My iphone mail app regularly requires restart to get mail flowing. That is it is running (doesn't crash) but will at time just stop getting email updates. I then have to force close the mail app (i.e. kill it) and then restart it. After restarting it the mail flows again.
Notes:
a) I do connect to Gmail for my mail - I'm using the IMAP facility for gmail currently (i.e. not the "Exchange" method)
b) I do also have the Google "Gmail" app running on my device too
c) on iPhone 3GS, latest version of IOSI have this same problem too. I have both a hotmail and work Microsoft Exchange account setup on my iPhone and have intermitent issues with both. Sometimes the hotmail push works, but my work email doesn't push, other times it's backwards, and sometimes neither work. I can't figure it out. Usually restarting the app (closing out of the multitasking bar), and/or going into settings and disabling the affected mail account works. And to top it, I have an iPad, I'll hear the mail chime go off on my iPad, expecting it to go off on my phone....and it never does, not until I manually fetch it.
Very frustrating. -
Database mail not sending no error messages
SQL server 2008 R2
Database mail was up and running until sometime last week. It seemed to quit in the middle of a long list of emails. We had network issues at this same time that might have contributed to the issue.
Everything checks out ok today but I cannot send a test email. I do not see any error messages or 'db mail starting up' messages in the log.
I do see the Email in the sysmail_unsentitems view.
I do not receive any error messages.
I tried setting up a secondary account and that did not make a differnce.
I tried stopping the mail service with EXEC msdb.dbo.sysmail_start_sp and the query never completes. I canceled after > 5 minutes
I deleted many unsent and one retrying message from the queue. I see those actions in the log.
Is there any thing else I can try?
KDHave you worked through the troubleshooting steps in the following BOL Topic to validate that the external executable is activating, and the queue status is correctly returning RECEIVES_OCCURRING:
http://msdn.microsoft.com/en-us/library/ms187540.aspx
Also have you tried increasing your retry configuration parameters to handle the larger mail queue that you are sending through?
Jonathan Kehayias | Senior Consultant,
SQLSkills.com
SQL Server MVP | Microsoft Certified Master: SQL Server 2008
Feel free to contact me through
My Blog or
Twitter. Become a
SQLskills Insider!
Please click the Mark as Answer button if a post solves your problem! -
Is there a way to control the number of concurrent SMTP connections on Database Mail?
Las week Rackspace started controlling the number of concurrent SMTP connections and we are now getting the following message when we send as little as 15 messages at a time using Database Mail:
Exception Message: Cannot send mails to mail server. (Service not available, closing transmission channel. The server response was: 4.7.0 smtp13.relay.dfw1a.emailsrvr.com Error: too many connections from IP xxx.xxx.xxx.xxx)
We are using SQL Server 2005 and Windows 2003 and we have been doing this since 2006 with no problems
Is there a way to control the number of concurrent SMTP connections used by Database Mail or the Database Mail external executable DatabaseMail90.exe?Hi rkohler,
Usually, we can use the Database Mail Configuration Wizard or the Database Mail stored procedures to determine the server name and port number for the Simple Mail Transfer Protocol (SMTP) server . In the SMTP server points, we can set or increase the number
of concurrent connections.
There is similar issue about database email on SQL Server 2005, you can refer to the following post.
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/6bb7b600-f025-451b-898b-2caa29c10d4d/only-some-email-gets-sent-successfully-from-spsenddbmail-database-mail-on-sql-server-2005
Thanks,
Sofiya Li
If you have any feedback on our support, please click here.
Sofiya Li
TechNet Community Support -
Notify Operator Task not sending email, Database mail works fine, Added Profile to Agent
SQL Server 2008 R2, Latest Updates.
I added a Service Broker that has Alerts and Notifications in it. In adding the service broker I had to go into the Agent Properties, Alert System, enable mail Profile, enabled the failsafe operator, etc.
I get email Alerts from the Service Broker that I Installed. I get the test emails too. On the Properties of the Agent Job, I can get an email of the Completion, success or failure of the Job itself.
If I create a Maintenance Plan, that all that is in it a a Notify Operator Task, set it up with the same users, I never get the emails. If I go into the Reporting and Logging an then sent a email of the Log of the Job, I get that just fine too.
Microsoft(R) Server Maintenance Utility (Unicode) Version 10.50.2500
Report was generated on "SQL".
Maintenance Plan: TestEmail
Duration: 00:00:00
Status: Succeeded.
Details:
F Notify Operator - Success (SQL)
Task start: 2014-06-02T08:45:07.
Task end: 2014-06-02T08:45:07.
Success
This started AFTER I enable the Alert System, Enable Mail Profile.
The server has been rebooted a few times since this started happening, so its not because I have not restarted the Agent.
If I uncheck the Enable Mail Profile in the Agent Alert System, I still get the Job's Log, but not the email of the Completion, Success or Failure.Hello,
Currently, I cannot reproduce the issue on my test environment. It works well when I create a maintenance plan include the Notify Operator task. This task uses the sp_notify_operator stored procedure. Did you check the T-SQL statements
of the task ? You can get the statements by check the "View T-SQL" on the
Notify Operators Task dialog.
Please refer to the following statement of using sp_notify_operator:
EXEC dbo.sp_notify_operator
@profile_name = N'profile_name', --If profilename is not specified, the default Database Mail profile is used.
@name = N'operator_name',
@subject = N'Test Notification',
@body = N'This is a test of notification.' ;
GO
Regards,
Fanny Liu
If you have any feedback on our support, please click here.
Fanny Liu
TechNet Community Support -
Database mail configuration is not working with office365
Hi there!
I' looking for some help debugging a blocking error in our DEV environment.
We're currently using Windows 2008 R2 Standard, with IIS 7.5 and MS SQL Server 2012 Standard.
We're experiencing troubles while trying to use database mail in conjunction with Office365 SMTP.
We've generated our self-signed certificate, via IIS, and configured SMTP Virtual Relay Server with local (machine-name) and remote domain, following a step-by-step tutorial from configureoffice365.com.
We've also checked at the original MSDN tutorial, but it's been of little use (at least for us).
We would like to use our Office365 SMTP server to send out notifications and we're currently using Office365 working credentials to try the SMTP authentication, but we're stuck with this error (x is used to hide sensible data):
OutboundConnectionCommand [12/May/2014:13:35:08 +0100] "STARTTLS - SMTP" 0 8
OutboundConnectionResponse [12/May/2014:13:35:08 +0100] "- -?220 2.0.0 SMTP server ready SMTP" 0 27
OutboundConnectionCommand [12/May/2014:13:35:08 +0100] "EHLO -?SQLDEVxxxxx SMTP" 0 4
OutboundConnectionResponse [12/May/2014:13:35:08 +0100] "- -?250-xxxxx.outlook.office365.com Hello [x.x.x.x] SMTP" 0 58
OutboundConnectionCommand [12/May/2014:13:35:08 +0100] "AUTH - SMTP" 0 4
OutboundConnectionResponse [12/May/2014:13:35:08 +0100] "- -?334 xxxxx SMTP" 0 16
OutboundConnectionResponse [12/May/2014:13:35:14 +0100] "- -?535 5.7.3
Authentication unsuccessful SMTP" 0 37
Any idea or suggestion?
Thank you.Hi giovannizuccaro,
According to your description, when you configure database mail in your SQL Server Management Studio,
Please note that you enter the server to send to as localhost and the email address as the email you have on the office 365 Exchange online for the same account you used to configure the delivery configuration of the local SMTP server. And
you should choose anonymous authentication for SMTP authentication. Once finished the configuration, you can test the email sending, check if you are able to send emails to any external recipient using you Exchange online.
For more information, there is detail about how to configure SQL Database mail so send emails using Office 365 (Exchange Online):
http://blogs.msdn.com/b/momalek/archive/2013/02/25/how-to-configure-sql-database-mail-so-send-emails-using-office-365-exchange-online-a-walkthrough.aspx
If there are still some errors, I recommend you post your error message on the Office 365 forums (https://community.office365.com/en-us/f/default.aspx ), It is appropriate and more experts
will assist you.
Regards,
Sofiya Li
Sofiya Li
TechNet Community Support -
Mail service not requiring SMTP Authentication
hello everyone,
I have been trying to find an answer and could not. I want my mail server to require SMTP Authentication. I have "CRAM-MD5" and "Login" checked in Server Admin -> Computers & Services -> Mail -> Advanced -> Security. Still, I can set up a mail account with any name and domain and SMTP through my server. (It does require a password for POP, so at least no one can read others folks mail)
I have begun to notice that I get many returned mails that I never sent, from accounts that are not on my server. So, I am thinking that spammers are relaying or just using my server to spam. I would like that to stop.
I have changed the configurations with Server Admin, stopped service, started service, and even restarted the whole server. Still, mail will not require SMTP Authentication.
Can anyone help me do this with Terminal or manually?thanks, for any help in advance.
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
daemon_directory = /usr/libexec/postfix
debugpeerlevel = 2
enableserveroptions = yes
html_directory = no
inet_interfaces = all
localrecipientmaps = proxy:unix:passwd.byname $alias_maps
luser_relay =
mail_owner = postfix
mailboxsizelimit = 0
mailbox_transport = cyrus
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
mapsrbldomains =
messagesizelimit = 52428800
mydestination = $myhostname,localhost.$mydomain,localhost,highlevelit.eu
mydomain = highlevelit.eu
mydomain_fallback = localhost
myhostname = mailx.highlevelit.eu
mynetworks = 127.0.0.0/8
mynetworks_style = host
newaliases_path = /usr/bin/newaliases
queue_directory = /private/var/spool/postfix
readme_directory = /usr/share/doc/postfix
sample_directory = /usr/share/doc/postfix/examples
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtpdclientrestrictions = permit_mynetworks permit
smtpdenforcetls = no
smtpdpw_server_securityoptions = login
smtpdrecipientrestrictions = permitsasl_authenticated,permit_mynetworks,reject_unauthdestination,permit
smtpdsasl_authenable = yes
smtpdtls_certfile = /etc/certificates/mailx.highlevelit.eu.crt
smtpdtls_keyfile = /etc/certificates/mailx.highlevelit.eu.key
smtpduse_pwserver = yes
smtpdusetls = yes
unknownlocal_recipient_rejectcode = 550
virtualmailboxdomains = hash:/etc/postfix/virtual_domains
virtual_transport = lmtp:unix:/var/imap/socket/lmtp -
Database mail only works from SSMS not from a job
I have a script that returns its results via DB mail. When I run it from SSMS I get email, when I run it from a job I don't get email
Here is the error message from the DB mail log
Message
The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 1 (2014-09-23T10:12:29). Exception Message: Cannot send mails to mail server. (The operation has timed out.).
I've already enabled mail in SQL server agent.
1. Went into object-explorer, right-clicked on the SQL Server Agent, and selected properties. Then
went to the Alert System page, and enabled the mail profile for the server agent. (you may already have this).
2. Then, went to "Database mail", right-clicked and selected "Configure
Database mail." Selected "Manage profile security" and made sure my profile was set to public. THEN, and this is the kicker, clicked on the "Default Profile" field and set it to "yes".
I'm using SQL server 2012 running on a Windows 7 system
Suggstions?BOL: Configure SQL Server Agent Mail to Use Database Mail
Using Database Mail with SQL Server Agent
Look in Event Viewer & Agent log to find related messages.
Kalman Toth Database & OLAP Architect
SQL Server 2014 Database Design
New Book / Kindle: Beginner Database Design & SQL Programming Using Microsoft SQL Server 2014 -
Database Mail not working with SQL Server Agent
I'm running SQL Server 2005 Standard edition 64 bit with SP2 on a 64 bit machine.
Database mail does not work with SQL Server Agent. When I configure SQL Server Agent to use database mail the test email button is greyed out and inactive therefore I cannot send emails using operators or for jub success failure etc.
I've read that there was supposed to be a fix for this with SP1 but I have SP2 and still receive the same problem. Please can somebody help as I do not wish to use SQL Mail as a work around due to this becomming redundant in future versions of SQL Server.
Kind RegardsThe problems solved
steps:
1)we create a mail profile at at Managment->Database Mail ,of SQL Managment
2)we set this account as "default" at Managment->Database Mail -> Configure Database Mail -> Manage profile security
3)At tab "Alert System" of SQL Server Agent properties , we check the "Enable mail profile" , Mail System=Database Mail, Mail profile = "the profile we already create"
4)we create a new operator at "Operators" of sql agent, where at "notification options" -> "Email name" we put the mail where we want to sent the agent the mails at failured job
5)We go at a specific job, at tab "Notifications" ,we check the "email" check box and then we choose the operator we just create, at the text box next to check box.
I hope not to forget something
Thank You all for the help -
Setup Database mail that connect with tcp/ip to the instance
I want to setup database mail that connect to the named instance via a fixed TCP/IP port.
This is a named instance that works with a fixed TCP/IP port
Database mail works fine if shared memory is enabled.
If it is disable I get the following log entry in the application log.
Log Name: Application
Source: DatabaseMail
Date: 18/11/2014 20:56:05
Event ID: 0
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: Server.dom.be
Description:
1) Exception Information
===================
Exception Type: Microsoft.SqlServer.Management.SqlIMail.Server.Common.BaseException
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: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified), connection parameters: Server Name: server\instance, Database Name: msdb
Data: System.Collections.ListDictionaryInternal
TargetSite: Void OpenConnection(Microsoft.SqlServer.Management.Common.SqlConnectionInfo)
HelpLink: NULL
Source: DatabaseMailEngine
StackTrace Information
===================
at Microsoft.SqlServer.Management.SqlIMail.Server.DataAccess.ConnectionManager.OpenConnection(SqlConnectionInfo connectionInfo)
at Microsoft.SqlServer.Management.SqlIMail.Server.DataAccess.DataAccessAdapter.OpenConnection(String dbServerName, String dbName, String userName, String password, String appName, Int32 connectionTimeout)
at Microsoft.SqlServer.Management.SqlIMail.Server.DataAccess.DataAccessAdapter.OpenConnection(String dbServerName, String dbName, String userName, String password, Int32 connectionTimeout)
at Microsoft.SqlServer.Management.SqlIMail.IMailProcess.QueueItemProcesser.ProcessQueueItems(String dbName, String dbServerName, Int32 lifetimeMinimumSec, LogLevel loggingLevel, Byte[] encryptionKey, Int32 connectionTimeout)
Is there a way to change the connection parameters?
PS the Browser Service is not runningHello,
If the instance is a named instance, then SQL Server Browser service should be started to be able to connect to the instance
using TCP/IP.
Hope this helps.
Regards,
Alberto Morillo
SQLCoffee.com -
I'm trying to setup Database Mail and send a test message, but it's not working.
I've done several step-by-steps and all and I can't get it to work. Also checked several posts in this forum but none helped. I think it used to work before (2 months ago) but we had to turn it off.
I've enabled it in Surface Configuration, have tried recreating all profiles, restarted SQL Agent, checked version mismatch...
I check the Database Mail and I get the following message:
Log Database Mail (Database Mail Log)
Log ID 152
Process ID 7684
Last Modified 3/14/2013 6:49:58 PM
Last Modified By SPEEDLING\sqlservice
Message
1) Exception Information
===================
Exception Type: Microsoft.SqlServer.Management.SqlIMail.Server.Common.BaseException
Message: Mail configuration information could not be read from the database.
Data: System.Collections.ListDictionaryInternal
TargetSite: Microsoft.SqlServer.Management.SqlIMail.Server.Objects.Account GetAccount(Int32)
HelpLink: NULL
Source: DatabaseMailEngine
StackTrace Information
===================
at Microsoft.SqlServer.Management.SqlIMail.Server.DataAccess.DataAccessAdapter.GetAccount(Int32 accountID)
at Microsoft.SqlServer.Management.SqlIMail.Server.Controller.CommandFactory.CreateSendMailCommand(DBSession dbSession)
at Microsoft.SqlServer.Management.SqlIMail.Server.Controller.CommandRunner.Run(DBSession db)
at Microsoft.SqlServer.Management.SqlIMail.IMailProcess.ThreadCallBack.MailOperation(Object o)
2) Exception Information
===================
Exception Type: System.IndexOutOfRangeException
Message: timeout
Data: System.Collections.ListDictionaryInternal
TargetSite: Int32 GetOrdinal(System.String)
HelpLink: NULL
Source: System.Data
StackTrace Information
===================
at System.Data.ProviderBase.FieldNameLookup.GetOrdinal(String fieldName)
at System.Data.SqlClient.SqlDataReader.GetOrdinal(String name)
at System.Data.SqlClient.SqlDataReader.get_Item(String name)
at Microsoft.SqlServer.Management.SqlIMail.Server.DataAccess.DataAccessAdapter.GetAccount(Int32 accountID)I'm trying to setup Database Mail and send a test message, but it's not working.
I've done several step-by-steps and all and I can't get it to work. Also checked several posts in this forum but none helped. I think it used to work before (2 months ago) but we had to turn it off.
I've enabled it in Surface Configuration, have tried recreating all profiles, restarted SQL Agent, checked version mismatch...
I check the Database Mail and I get the following message:
Log
Database Mail (Database Mail Log)
Log ID
152
Process ID
7684
Last Modified
3/14/2013 6:49:58 PM
Last Modified By
SPEEDLING\sqlservice
Message
1) Exception Information
===================
Exception Type: Microsoft.SqlServer.Management.SqlIMail.Server.Common.BaseException
Message: Mail configuration information could not be read from the database.
Data: System.Collections.ListDictionaryInternal
TargetSite: Microsoft.SqlServer.Management.SqlIMail.Server.Objects.Account GetAccount(Int32)
HelpLink: NULL
Source: DatabaseMailEngine
StackTrace Information
===================
at Microsoft.SqlServer.Management.SqlIMail.Server.DataAccess.DataAccessAdapter.GetAccount(Int32 accountID)
at Microsoft.SqlServer.Management.SqlIMail.Server.Controller.CommandFactory.CreateSendMailCommand(DBSession
dbSession)
at Microsoft.SqlServer.Management.SqlIMail.Server.Controller.CommandRunner.Run(DBSession db)
at Microsoft.SqlServer.Management.SqlIMail.IMailProcess.ThreadCallBack.MailOperation(Object o)
2) Exception Information
===================
Exception Type: System.IndexOutOfRangeException
Message: timeout
Data: System.Collections.ListDictionaryInternal
TargetSite: Int32 GetOrdinal(System.String)
HelpLink: NULL
Source: System.Data
StackTrace Information
===================
at System.Data.ProviderBase.FieldNameLookup.GetOrdinal(String fieldName)
at System.Data.SqlClient.SqlDataReader.GetOrdinal(String name)
at System.Data.SqlClient.SqlDataReader.get_Item(String name)
at Microsoft.SqlServer.Management.SqlIMail.Server.DataAccess.DataAccessAdapter.GetAccount(Int32 accountID) -
SQL Server 2008 Database Mail Failure
I am currently using SQL Server 2008. I have database mail setup and it was working for a while without any issues. However, now we are getting the following message anytime it trys to send an email with a domain address other than our own.
The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 4 (2010-07-21T15:21:58). Exception Message: Cannot send mails to mail server. (The operation has timed out.). )
The emails have been setup and working since last year up until June 30th. I have made sure that the server name for the email server is correct. Ports 25, 110, and 443 are open on the email server and I setup the database mail to use port 25.
The sever name is webmail.somecompanyname.com
I tested on the server that I could telnet to the mail server and I get the response back from the server that says ready.
I tested sending an email to my work address by right clicking database mail and send test e-mail. When I send it to my work email it works fine (myname.somecompany.com)
When I do the same test only sending it to my personal comcast account I get the error message in the
sysmail_faileditems.
Can anyone help shed some light on other possible issues that might be causing this to fail now?
Any help is greatly appreciated.
Thanks in advance.My issues with the email might be fixed now. I will be keeping an eye on it today.
It turns out that we have 2 IPs for the 2 different internet providers that we have for our company.
In the
On Mail server > Exchange Server Manager > SMTP Connector Properties
> Access Properties > Access Tab > Relay button it had the ip address for one of the providers, but not for the comcast one that we just installed on June 30th.
The network administrator added the ip for comcast to the location above and it seems to be working now.
We will keep our fingers crossed.
Thanks for all your suggestions.
Maybe you are looking for
-
Adobe Media Encoder CC 2014 + Dynamic Link = no audio!
When exporting to any file from AE via Adobe Media Encoder CC 2014 (8.0.1) rendered file has no audio at all. When importing AE comp with audio to Premiere CC 2014 imported track doesn't have audio. Problem is somewhere in dynamic link. How can we ex
-
Donating an unopened Personal Laserwriter toner cartridge, M0089LLA
I have a new, unopened, toner cartridge for an Apple Personal Laserwriter printer that just died on me and I would like to give it to someone (school or charity) that can use it, instead of throwing it out. Any suggestions? The toner cartridge is an
-
Hi Friends, How to Create a tree structure for org. unit in web dynpro ABAP and call the tree in F4 Help of a input box.
-
Unknown exception triggered by my Java Mail call
I don't know if there is a Java Mail specific forum or not, so I put this here. I'm getting an IOException when I attempt to send my message. Below is the full text I see. If you understand what I'm doing wrong, please let me know. The code it attemp
-
Can I download adobe flash on kindle fire HD for facebook games