Solved

SQLServerAgent Error: MapiLogonEx Failed due to MAPI error 273: MAPI Logon Failed (Microsoft SQL Server , Error :22022)

Posted on 2008-10-24
15
1,998 Views
Last Modified: 2012-08-13
What steps am I missing?  I am logged on as Administrator so there should be no rights restriction.  Is there a step by step setup I can follow?
0
Comment
Question by:WTRog
  • 9
  • 6
15 Comments
 
LVL 42

Expert Comment

by:EugeneZ
ID: 22816443
...Login to the box using the sql server agent account and then create a MAPI profile in outlook.
if it is sql server 2005
 use new SMTP  based functionality Database Mail.

http://www.mssqltips.com/tip.asp?tip=1438 
0
 

Author Comment

by:WTRog
ID: 22823201
I followed the Server 2005 Surface Area Configuration, so now it's just wait until tomorrow to see if we receive the e-mail alert.
0
 

Author Comment

by:WTRog
ID: 22831461
I checked this morning bu no e-mail alert.  I am not certain but I set this up in the Domain Administrators account do I need to be logged in as administrator or use the account we created in Exchange Server?
0
 
LVL 42

Expert Comment

by:EugeneZ
ID: 22831519
how did you setup Database Mail and then alert?
Did you try to send test email? as per
http://www.mssqltips.com/tip.asp?tip=1438
you do not need to login as admin: but need to be sql admin admin
with Database Mail you do not need to worry about MAPI profile just make sure your port 25 is openned for SMTP server
BTW: you need to have SMTP server
try to run from sql server -ms-dos command:
telnet smtepserver 25

 
0
 

Author Comment

by:WTRog
ID: 22832359
Just tried to run the telnet smtpserver 25 and it failed.  We are using Exchange 2003 and under services POP3 is running, but I didn't see any options for SMTP.  I didn't see any steps in the above link on the configuration of alerts.  When I finished setting up the Database Mail the test option was grayed out.
0
 
LVL 42

Expert Comment

by:EugeneZ
ID: 22833854
0
 
LVL 42

Expert Comment

by:EugeneZ
ID: 22833858
btw: did you use  your  <smtpserver>?
 in the  telnet smtpserver 25
0
Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

 

Author Comment

by:WTRog
ID: 22835247
220 ************Microsoft ESMTP MAIL Service, Version: 6.0.3790.1830 ready at  Wed, 29 Oct 2008 16:20:44 -0400

So, I can telnet to it.  Does IIS need to be installed on the SQL Server?
0
 

Author Comment

by:WTRog
ID: 22841259
I will run the SMTP install, but have to coordinate it with the staff using the program so it may be a couple of days before I can move forward with this.
0
 

Author Comment

by:WTRog
ID: 22869429
I was able to get SMTP installed today is there any other settings I should be aware of?
0
 

Author Comment

by:WTRog
ID: 22875627
I did not receive an e-mail alert this morning so I am not certain what is at the core of this issue
0
 

Author Comment

by:WTRog
ID: 22885024
I re-checked the settings and everything looks correct but it still fails to send e-mail alerts
0
 

Accepted Solution

by:
WTRog earned 0 total points
ID: 22886922
I think I may have found what is stopping the e-mail being sent.  I viewed Database log and seen these log messages:  
Log ID 42 DatabaseMail process is started

Log ID 43 The mail could not be sent to the recipient because of mail server failure.  (Sending Mail using account 1 (2008-11-05T05: 10:09).  Exception message:  Cannot send mails to the mail server. (Server does not support secure connections).

I went back into the Database Mail and selected Configure Database Mail and chose the Manage Database Mail Accounts and Profiles.  I chose view, change or delete an existing account and in this configuration under the Outgoing Mail Server SMTP I un-checked "This server requires a secure conneciton (SSL).

I will see if this resolves the issue.
               
0
 
LVL 42

Expert Comment

by:EugeneZ
ID: 22887899
sorry for delay..
you need to review your DB mail setup  --> did you have SMTP server - it is not the best to install IIS-SMTP on same box with SQL SERVER...
However, it is up to you
---
---
How to Configure the IIS SMTP Service to Relay SMTP Mail  
http://support.microsoft.com/kb/230235 
 ------------
check how-to setup db mail: (just do not put reply email unless you need and email is real)
 http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/Q_22683526.html
http://www.sql-server-performance.com/articles/dba/email_functionality_p1.aspx 
http://www.sqlserverclub.com/articles/how-to-set-up-database-mail-on-sql-server-2005.aspx
http://www.kodyaz.com/articles/sql2005-database-mail.aspx 
http://www.databasejournal.com/features/mssql/article.php/3626056
 
 
0
 
LVL 42

Expert Comment

by:EugeneZ
ID: 22929628
good job
However,if you would check the link /  http://www.mssqltips.com/tip.asp?tip=1438  / there is unchecked "This server requires a secure conneciton (SSL)"

0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
sql Audit table 3 59
Help with SQL joins 9 43
Strange msg in the SSMS pane 13 47
Need help debbuging stored procedure 21 32
There are some very powerful Data Management Views (DMV's) introduced with SQL 2005. The two in particular that we are going to discuss are sys.dm_db_index_usage_stats and sys.dm_db_index_operational_stats.   Recently, I was involved in a discu…
by Mark Wills PIVOT is a great facility and solves many an EAV (Entity - Attribute - Value) type transformation where we need the information held as data within a column to become columns in their own right. Now, in some cases that is relatively…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now