Author |
|
Bill W Guest Group
Joined: 10 November 2003
Online Status: Online Posts: 262
|
Posted: 17 March 2005 at 5:36pm | IP Logged
|
|
|
I am trying to connect IMAP4 object from Mailbee objects to my Exchange server. I am unable to connect, i get error 4. What are the proper steps for connecting. I want to write a service that checks an email box and parses the text message in the email to generate a number of outbound emails. I presume that if my client machine is bound to an Exchange server, I need to implement IMAP4 over POP3. I don't want to use Outlook as I want to run in a service and Outlook prompts during an automation run. I thought this would be the perfect tool, but I am unable to successfully connect. I don't know whether to use my exchange server name, the IP address, or the mail.server.com that points to our outside entry point.
|
Back to Top |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 18 March 2005 at 7:39am | IP Logged
|
|
|
There is no special considerations for Exchange server connection options. If you got "connection failure", this just means something on the mail server or on machine running MailBee is not set up right (or security settings too high).
Make sure Exchange server runs IMAP4 service (it can be disabled in your case). Also, make sure firewall does not prevent connections from the machine running MailBee to Exchange server (firewall can be set on MailBee's machine, on Exchange's machine, on a gateway between them (if any), etc).
You can always try 'telnet' utility to manually connect to the Exchange server (but make sure you run telnet on the same machine where MailBee is installed). In the command-line, type:
telnet mail.server.com 143[enter]
if you see the connection failed, Exchange server cannot be reached (IMAP service is stopped, firewall is on, Exchange is configured to reject the connections from your IP address, etc).
if the connection is ok and you see mail server's prompt, type quit[enter] and use these settings (ServerName=mail.server.com and PortNumber=143) for MailBee.
Once the connection with the server itself is ok, you might start getting 3xx errors (like 311). This means the connection is established but user credentials (UserName/Password) are wrong. For example, you might be using "jdoe" as UserName while "jdoe@domain.com" or "domain\jdoe" is required, or vice versa. Exact syntax of UserName depends on Exchange server's settings. Usually, 2-3 attempts is enough to determine right syntax.
Regards,
Alex
|
Back to Top |
|
|
Bill W Guest Group
Joined: 10 November 2003
Online Status: Online Posts: 262
|
Posted: 18 March 2005 at 4:58pm | IP Logged
|
|
|
Thanks Alex. That information is very helpful. Our IT admin says that all of the ports are closed to outside use. I hope to get a server side lesson next week. I do a lot of custom programming for clients and email needs (inbound, outbound) for sending logs or responding to inbound requests come up a lot and I am always getting stuck on server side issues like closed ports and such. I am guessing that any SMTP or IMAP server can be set to expose itself to a particular IP address or such. I am just trying to educate myself enough to speak intelligently on server configurations. Can you cite any sources for that purpose? I guess for testing, I will try to download a shareware IMAP server.
|
Back to Top |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 19 March 2005 at 7:28am | IP Logged
|
|
|
I found a few links you might find useful. First discusses ISA server (it's often used as a firewall for Exchange): http://www.msexchange.org/pages/article_p.asp?id=594. The link also contains links to another articles concerning ISA server.
Ports used by Exchange server:
http://www.petri.co.il/ports_used_by_exchange.htm
This is about firewalls/ports/proxies theory and understanding (general topics):
http://www.linuxexposed.com/Articles/Security/Understanding- Firewalls.html
Similar to the above:
http://www.techsupportalert.com/pdf/s0499.pdf
Regards,
Alex
|
Back to Top |
|
|