title: DB Mail could not sent mail to the recipients because of the mail server failure in sql server 2012
body: <p>I have tried to send database mail but the following issue occurs.</p>
  
  <p>The mail could not be sent to the recipients because of the mail server failure. 
  (Sending Mail using Account 3 (2018-11-13T13:05:31). </p>
  
  <p>Exception Message: Could not connect to mail server. 
  (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).)</p>
  
  <p>I have done the few configuration as per suggestion in google search but still the same issue occurs.</p>
  
  <p>Below are the steps which I have performed so far.</p>
  
  <ol>
  <li>I have enabled is_broker_enabled</li>
  <li>Enabled inbound and outbound rules for both 465 and 587 ports</li>
  <li><p>Ran the following stored procedure</p>
  
  <p>sp_configure 'show advanced options', 1;<br>
  GO<br>
  RECONFIGURE;<br>
  GO<br>
  sp_configure 'Database Mail XPs', 1;<br>
  GO<br>
  RECONFIGURE<br>
  GO  </p></li>
  </ol>
  
  <p><a href="https://i.stack.imgur.com/4Qr3o.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4Qr3o.jpg" alt="enter image description here"></a></p>