A call to SSPI failed, see inner exception. DB Mail can't send email - sql-server-2012

My db mail suddenly stopped working, the error is:
The mail could not be sent to the recipients because of the mail
server failure. (Sending Mail using Account 2 (2018-08-14T16:00:23).
Exception Message: Cannot send mails to mail server. (A call to SSPI
failed, see inner exception.).
I can't find any more info on the error, it just suddenly stopped working.
My SQL Server is 2012.
All my smtp settings are correct and nothing changed.

If it worked at one point and you haven't changed anything with your firewall, then check your email password. Also if you are using gmail - you need to check if 'lesssecure' is turned on.
Open your Google Admin console (admin.google.com).
Click Security > Basic settings .
Under Less secure apps, select Go to settings for less secure apps .
In the subwindow, select the Enforce access to less secure apps for all users radio button. ...
Click the Save button.

Related

Socket error: EOF when using ImapLibrary2 with Robot Framework

I'm trying to use ImapLibrary2 for RobotFramework to connect to imap.gmail.com, find a confirmation email and then open the link to validate the account.
Open Mailbox host=imap.gmail.com username=username#gmail.com password=password port=993 is_secure=true
${LATEST} Wait For Email sender=noreply#domain.com timeout=300
${HTML} Open Link From Email ${LATEST}
Close Mailbox
At the first step, when try to connect to the imap server of gmail I get the following error: abort: socket error: EOF.
The Gmail account have the IMAP access turned on. I'm not able to figure out what the problem could be.
Thanks everyone for the help

SQLServer Error: Could not connect to mail server. (The requested name is valid, but no data of the requested type was found)

My Problem On Database Mail on Sql Server 2008 R2. My Database Mail Work fine upto yesterday since 2 years. But From Today My Database Mail Not Work.
I Restart my Database Server. Reconfigure the Database Mail but still i faced the following error.......
Message
The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 6 (2017-06-12T16:12:12). Exception Message: Could not connect to mail server. (The requested name is valid, but no data of the requested type was found).
My Mail Account Setting in following...
I tried from Send Test E-mail, See the View Database Mail Log and see the above mention error.
Please help to resolve this issue.....
Thanks in advance....
Your problem seems network related, especially since nothing has changed on the database configuration.
Also make sure, your user has the rights to connect and access the specified mailbox.
Check Firewalls, DNS, IP configuration.
By the way, the configuration for Office365 seems good, that's the one I use for my servers ;)

WHM Debug Email Sending Issue

I have a WHM server - with several PHP scripts on it that send off emails. It used to work until apparently just recently. Now, it seems to have stopped sending emails from those scripts.
Given that I know there's no problem with the scripts themselves, how would I go about debugging why they're no longer being sent?
Here's what I know so far:
PHP Scripts should be fine, nothing has changed on them
Server does not appear on any spam blacklists
Test email script does not generate any errors, nor is there anything hung up in the WHM queue
Nothing shows up in the gmail accounts (regular or spam boxes) for what's supposed to have been sent.
Any ideas?
WHM 60 Build 35, CentOS 6
Please try to follow the instructions bellow which could help you in debbuging your email issue(s):
1) - check if you server has a valid hostname like host.domain.tld and that hostname actually points to the server's ip address
2) - check if you have rDNS setup correctly for your server's ip address and the reverse DNS should match the hostname
3) - Use Mail Queue Manager from WHM (in the left search in WHM got o Email -> Mail Queue Manager) and see if there are any emails in the mail queue there
4) - Use Mail Troubleshooter from WHM ( Email -> Mail Troubleshooter) and see what happens when you try to send an email to a gmail address
5) - You could check the Exim server logs by logging in via ssh and do a tail -f /var/log/exim_mainlog
Most probably your emails are in the server's mail queue and for some reason they are not delivered

The host 'smtp' could not be found

I am getting the following error while sending mail by click of a button in MS access form
I am using sendObject to send mail using vba code.
The host 'smtp' could not be found.
Please verify that you have entered
the server name correctly. Account:
'pop3', Server: 'smtp', Protocol:
SMTP, Port: 25, Secure(SSL): No,
Socket Error: 11001, Error Number:
0x800CCC0D
Points to note:
I am able to send and receive mails
in my outlook; Problem is only when
send mails through VBA access
application.(Means it is not a
outlook client configuration problem)
When i copy paste the Vba application to another PC, i could
successfully send emails without any
error. (means this is not a vba
access application problem)
Please help.
Either the SMTP server "smtp" is available from your second machine and not the first, or else there is some change to the mail settings and/or security when moving between the two machines.
Is your SMTP server actually called 'smtp'?

vb.net Send Smtp Mail From IIS FormatException

Well i got a page that sends emails and everything runs fine in the developer web server but when i publish to a IIS Server i get a FormatException when i try to send the mail....
ex.Message = "the specified string is not in the form required for an e-mail address."
the email is in this sample someone#gmail.com
Im using the "SmtpClient" and the "MailMessage" classes to send mails..
And the server runs windows server 2003
Edit:
Im using same smtp settings on the Dev Webserver as im doing in IIS.
Check that you've enabled local email relaying for the SMTP service on your Windows Server 2003 box. By 'local' I mean that applications on your local machine can use the SMTP service to relay emails - but you almost certainly don't want to allow external connections to do the same.
Make sure you don't have any invisible whitespace around your email address. For example, if you are getting the email from a database, or input control, try trimming it, like:
mail.To.Add( New MailAddress( txtEmailAddress.Text.Trim() ) )
If any one gets this problem the solution is don't use the empty constructor of MailMessage!!!!!