Question : SBS 2008: how to setup an email only account to allow outside mail client to send/receive outsidedomain.com email that is being hosted on our server

Hello,

We have SBS 2008, which is configured to send/receive our outsidedomain.com email directly.  However, how do we setup an email only account to allow a program that sits outside our network to send mail from outsidedomain.com? In other words, in the previous setup of our email being hosted by a 3rd party, we would simply add a pop account [email protected] and we could have any machine anywhere in the world, configured to send/recieve mail.  

With SBS, our current email accounts are tied to internal domain accounts, but I dont want to create internal domain accounts (counts against our CALs, right?) for a simple email only user that needs zero internal network access.

Thanks!

Answer : SBS 2008: how to setup an email only account to allow outside mail client to send/receive outsidedomain.com email that is being hosted on our server

I think you may want to create a console application for that. Just create a new project and select Win32 Console Application. You should then be able to paste you code in the main.cpp or any other main file.

This is a win32 application and therefore you wont be able to see the printf as there wont be any console. Here is how this one may work (though im not whether thats what would like it to be).

1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
#include <stdio.h>
#include <string.h>
int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) 
{
   FILE * pFile;
   char mystring [100];

   pFile = fopen ("C:\\myfile.txt" , "r");
   if (pFile == NULL) 
      ::MessageBox(NULL, "Error opening file", "Application", MB_OK);
   else 
   {
     fgets (mystring , 100 , pFile);
     fclose (pFile);
     if(strstr(mystring, "sergio") == (char*) &mystring[0])
     {
          ::MessageBox(NULL, "matched, do action here!", "Application", MB_OK);
     }
   }
  return 0;
}
Random Solutions  
 
programming4us programming4us