I am setting up the email option on sql server 2012 in a windows azure cloud Virtual Machine. The email is not working and im getting the following error :
Error,15,The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 2
(2012-07-02T11:13:17).
Exception Message: Cannot send mails to mail
server. (The remote certificate is invalid according to the validation
procedure.).),3152,5,,7/2/2012 11:13:17 AM,sa
07/02/2012 11:12:05,,Error,14,The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using
Account 2 (2012-07-02T11:12:05).
Exception Message: Cannot send mails
to mail server. (The remote certificate is invalid according to the
validation procedure.)
Should I have an end point 25 on my vm ? What else could cause this error ?
Looks like there is an issue with the outbound stmp server you are trying to use. Is this also hosted in Windows Azure or an external provider somewhere? In both cases, make sure they allow inbound, authenticated connections and on what port. There shouldn't be any blocks on outbound connections on your Windows Azure virtual machine, so odds are the problem is where the email server is hosted.
Related
I am having issues with SMTP from one of my web servers. I've verified firewall connectivity over port25 to the SMTP relay and the exchange servers is good to go. I can hit the SMTP relays and exchange server from my web server via telnet. Whenever I drop a mail in Pickup it sits in the queue.
In Event Viewer I get:
Message delivery to the host 'IPADDDRESS' failed while delivering to the remote domain 'MYDOMAIN' for the following reason: The connection was dropped by the remote host.
I checked SMTPDiag and it comes back:
Error: Expecting "220". Server is not accepting connections.
Failed to submit mail to "server.domain.com"
I checked and my connection control is set to allow and the domains are listed in SMTP.. I am losing my mind trying to figure out why mail is failing at this point..
Are you hitting a rate limit or is your outbound ip on a blacklist? Try the blacklist search here: https://mxtoolbox.com/supertoolmobile.aspx
I have 2 servers, a SQL Server 2012 and a SQL Server 2008R2.
Database mail works fine on the 2012 but does not work at all on the 2008R2.
The account and profile settings are the same on the two servers, and on both servers mail sent with the .NET mail interface goes through okay.
I cannot find any differences between the SQL Server instances.
The message I get is:
The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 4 (2016-10-28T14:34:57). Exception Message: Could not connect to mail server. (No connection could be made because the target machine actively refused it **************:25).
SQL Server Agent is disabled on both servers, so that is not a factor.
The machine.config and web.config files are basically the same on both servers.
I have followed all the steps outlined in the msdn information, and yet nothing works yet.
Is there something else I should be looking at on the SQL Server 2008R2 instance?
I found the answer to my question.
It is a McAfee setting on our production server.
The setting on the development server is not the same.
The setting in question blocks port 25.
It is discussed in the following:
http://www.sqlservercentral.com/Forums/Topic956956-146-1.aspx
I am having some PLESK Mail receiving issues.
I just setup a dedicated server with 1and1. The server console is PLESK 12. I am using 1and1 nameserver which are pointed correctly from the domain registrars. I am able to send mail using webmail but not able to receive it.
When I do a mail server check it I get the following error:
Error connecting to mailserver: No route to host
If anyone is aware of some missing SMTP settings that need to be set up in the initial Plesk configuration it would be appreciated.
I am able to send email using my gmail account from my grails application but when I use MS exchange server account I am getting this error
Message: Mail server connection failed; nested exception is com.sun.mail.util.MailConnectException: Couldn't connect to host, port: smtp.exg6.exghost.com/, 25; timeout -1;
Configuration I used is :
mail {
host = "smtp.exg6.exghost.com"
port = 25
username = "xxxx"
password = "xxxx"
props = ["mail.smtp.auth":"true",
"mail.smtp.socketFactory.port":"25",
"mail.smtp.socketFactory.class":"javax.net.ssl.SSLSocketFactory",
"mail.smtp.socketFactory.fallback":"false"]
I am not sure what configuration to use. I tried changing port to 465 & 993 but that didn't work too. Please help
There are several things wrong with your setup. First of all, you are submitting mail to a Microsoft Exchange server (presumably), not Outlook. Outlook is a mail client and only provides end user functionality by connecting to the same server that you are trying to get the Mail plugin to connect to.
Your host name must be a valid Internet DNS host name -- therefore it must be "smtp.exg6.exghost.com". This might be all you have to do depending on the submission/relay policies in your SMTP server. Most likely you need to read on.
The SMTP protocol supports authentication and security for mail submission (new message injection) using either SSL or SASL. If you are using SSL, the default port to connect to is 465 (SMTPS port). If you are using SASL, then most servers are configured to accept new mail with authentication on port 587 (submit service port). Most SMTP servers will not accept mail submission on port 25.
In your case it looks like you are trying to connect with SSL, so you probably want to configure it using the SMTPS setup. To make sure that you have a proper setup, use a mail client like Thunderbird to try to make an SMTP connection to the server. It actually has a discovery algorithm in it that will try the common setups and report success when it has found one. Once you know what the connection parameters are, then you can proceed with configuring the Mail plugin.
I finally got this working. Turns out Microsoft provide a separate API / web-services to send email and perform all other mail related operations. This API gives developers programmatic access to Exchange Online, Exchange Online as part of Office 365, and versions of Exchange starting with Exchange Server 2007 Service Pack 1 (SP1). Click here for details.
exg6.exghost.com is host for Exchange Server 2007
And I am not sure but I think Exchange server 2007 and onwards don't use SMTP.
Do the SMTP logs on a server (Windows 2003) only show logs of mail that were sent successfully?
We are getting bounce backs when sending mail to a particular domain:
The connection was dropped by the remote host.
It looks like a problem on the receiving server, but we dont have much information to provide them. We can send to hotmail, gmail, yahoo etc OK.
Any ideas?
Most likely, there is a spam filter in front of the receiving mail server for this domain, and this spam filter thinks your mail server is sending spam, so it's closing the connection from your mail server. One way to test this is to simulate sending a message to this mail server by opening a command prompt on your mail server, and use telnet to connect to the receiving mail server on port 25, and proceed with the process of sending a message just as a mail server would. This way, you'll be able to see how the receiving mail server responds after each step. Follow the instructions in http://support.microsoft.com/kb/153119 to see how this is done.
It turned out the sending server was blacklisted by McAfee, that was running on the receiving servers firewall.
For those that may have the problem in the future you can check if your server is blacklisted with McAfee here:
http://www.mcafee.com/threat-intelligence/ip/spam-senders.aspx
After entering your server IP, you should see a link Threat Feedback. Use this to email McAfee.
I was able to send McAfee an email with an explanation, they then removed our server from the blacklist.