Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 745
  • Last Modified:

How do you use IIS SMTP on a different port along side Mailenable?

I have a server that is using Mailenable as an email server on port 25.  I'm also hosting website's on IIS.  My problem is that all my contact form are coded to IIS SMTP.  I have tried changing The IIS SMTP outgoing port to 26 but the emails will not send.
0
djpazza
Asked:
djpazza
  • 2
2 Solutions
 
b_levittCommented:
It depends on how you are connecting to IIS SMTP.  If you're using the old cdo or cdonts components with classic asp, or the "PickupDirectoryFromIis" SmtpDeliveryMethod in ASP.net, then the smtp port does not matter.  However if you're actually using the smtp protocol (the default "Network" delivery method in ASP.net) then you need to change your config to use that port....

  <system.net>
    <mailSettings>
      <smtp from="test@foo.com">
        <network host="localhost" port="26"  />
      </smtp>
    </mailSettings>
  </system.net>

Of course if you're using the smtp protocol, you could just send thru mailenable or any other smtp server for that matter.  You would just need to make sure that you either allow relaying to localhost (NOT TO EVERYBODY) or create an account for your app to use:

  <system.net>
    <mailSettings>
      <smtp from="test@foo.com">
        <network host="localhost" port="25" userName="username" password="secret" defaultCredentials="true"  />
      </smtp>
    </mailSettings>
  </system.net>

No I appologize if you're not using asp.net, but I think you can at least get the gist of what is wrong.
0
 
djpazzaAuthor Commented:
Still using the old cdo i'm afraid.
0
 
b_levittCommented:
I thought cdo already sent via iis by default so I'm not sure what's wrong.  Did you check your \inetpub\mailroot\queue and pickup directories to see if there is any mail in there?

I suppose you could have manually specified a server or localhost but that would have required you to change the cdo config:
http://www.asp101.com/articles/john/cdosmtprelay/default.asp


0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now