Welcome, Guest. Please login or register.

Author Topic: Exchange server malarkey  (Read 2871 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Exchange server malarkey
« on: July 01, 2008, 08:29:15 PM »
Another overly elaborate and complex problem :-D

The Exchange server at uni (lets call it exchange.xxx.ac.uk is not accessible from outside the uni intranet. But the university provides Outlook Web Access on the web server owa.xxx.ac.uk. I wanted to configure a mail client on my home computer to connect to the Exchange server instead of using Outlook Web Access (which is horrible). I made an assumption that owa.xxx.ac.uk was an alias to a web server running on the Exchange server itself, and I was right: if I configured my mail client with the Exchange server address "owa.xxx.ac.uk" it worked. I could see all my Exchange folders, read emails, move them around, delete them etc.

The problem comes with sending. owa.xxx.ac.uk does not work as an outgoing mail server, so I had to use my ISP's SMTP server for sending. Of course, my ISP's SMTP server doesn't know how to resolve exchange.xxx.ac.uk, so if I want to send an email to somebody@exchange.xxx.ac.uk, it bounces saying it can't resolve the host.

Short of convincing the university to expose the exchange.xxx.ac.uk to the Internet, is there any way around this? Maybe a local SMTP server which has exchange.xxx.ac.uk in its hosts list so that it can be resolved to the IP address of owa.xxx.ac.uk. I don't actually know if this would work though, since although owa.xxx.ac.uk seems to allow access to the user's mailbox, I don't know whether it is running an inbound mail service.

:crazy: :crazy: :crazy: :crazy: :crazy:
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: Exchange server malarkey
« Reply #1 on: July 01, 2008, 09:50:25 PM »
Indeed :-) I have had some additional thoughts about this. It would be absurd if the Exchange server did not allow messages to be sent from outside the university network. That would mean people could only receive emails from other people with accounts on the Exchange server, not from outside. That can't be the case.

I think the problem is that existing messages in the mailbox are being viewed by a user who is logged on to the Exchange server (IOW I am viewing the mailbox on the server). That means the sender address it shows me is the Exchange address, not the SMTP address. If I could get it to display the SMTP address instead of the Exchange address, then it might reply to that address (which must be accessible from outside the university network)
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: Exchange server malarkey
« Reply #2 on: July 01, 2008, 10:52:58 PM »
I have an SMTP server provided by my ISP, but the problem is that it doesn't know how to resolve exchange.xxx.ac.uk (because it is not published in public DNS servers). The idea behind running a local one is that I can force it to resolve exchange.xxx.ac.uk using a hosts file. The alternative is to try to get the mailbox to show the sender's external (SMTP) email address instead of the internal (Exchange) address, which should be resolveable by public DNS servers.
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: Exchange server malarkey
« Reply #3 on: July 02, 2008, 07:56:36 AM »
But you won't be able to send...
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: Exchange server malarkey
« Reply #4 on: July 02, 2008, 03:15:35 PM »
I can't use SMTP to send because the reply address provided by the Exchange server is an address which is only valid within the Exchange. It doesn't work if you send from outside (i.e. through SMTP) So I either need to send through the Exchange server, or send to an SMTP server which has a host entry to allow it to resolve the address of the Exchange server.
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: Exchange server malarkey
« Reply #5 on: July 06, 2008, 01:37:51 PM »
Quote
adolescent wrote:
It's quite possible, and normal, for the SMTP gateway to be seperate from the OWA.  And, in fact you're probably hitting a front end server not the actual Exchange server itself.

Ahh, so the OWA server is a separate box which acts as a gateway to the Exchange, right?

Quote
adolescent wrote:
Two easy options.  Ask your network administrator for the SMTP server address, or send yourself an email from inside and you may be able to discover the gateway name by inspecting the mail headers (provided they use the same SMTP gateway for incoming and outgoing messages).

Just tried it. There are quite a lot of "Received:" lines in the headers, presumably where the message is getting passed from one server to the next. The first ones in the chain resolve to 10.x.y.z addresses so are only accessible from inside. The last server before it gets to my ISP is mailcluster.xxx.ac.uk, which resolves to 193.x.y.z. AFAIK this is a public IP address, so I tried to telnet in on port 25 to see if there's an SMTP service running, but it timed out.

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: Exchange server malarkey
« Reply #6 on: July 06, 2008, 02:07:51 PM »
Ok, I sent a message *to* my Uni account and examined the headers of the message which was delivered, and found some different servers. One of them, lets call it server1.xxx.ac.uk, is running an SMTP server which is accessible from outside. I can Telnet in to it:

$ telnet server1.xxx.ac.uk 25
Trying xxx.xxx.xxx.xxx...
Connected to server1.xxx.ac.uk.
Escape character is '^]'.
220 server1.xxx.ac.uk ESMTP ready; send us your mail, but not your spam.
HELO
250 server1.xxx.ac.uk Hi [xxx.xxx.xxx.xxx] [xxx.xxx.xxx.xxx]; I am so happy to meet you.


But when I configure it as the outbound server in my mail client, I can't send messages through the server and it asks me to verify the settings. If I use the "Connection Doctor", it checks it and says "Connection to server succeeded, no login required".

:-?

Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: Exchange server malarkey
« Reply #7 on: July 06, 2008, 03:38:45 PM »
The way I see it, it's connecting ok but fails when it tries to actually send anything. I'm going to read up on SMTP and then try sending a message through the University server over Telnet. That way if I get an error at any point I'll see it in the Telnet session.
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: Exchange server malarkey
« Reply #8 on: July 06, 2008, 08:39:21 PM »
Ok, here's what happened when I tried to send an email through Telnet, directly to the SMTP server:

$ telnet smtp.xxx.ac.uk 25
Trying xxx.xxx.xxx.xxx...
Connected to smtp.xxx.ac.uk.
Escape character is '^]'.
220 smtp.xxx.ac.uk ESMTP ready; send us your mail, but not your spam.
HELO
250 smtp.xxx.ac.uk Hi [xxx.xxx.xxx.xxx] [xxx.xxx.xxx.xxx]; I am so happy to meet you.
MAIL FROM:
250 , sender OK - how exciting to get mail from you!
RCPT TO:
550 Spamhaus hit - http://www.spamhaus.org/query/bl?ip=xxx.xxx.xxx.xxx
Connection closed by foreign host.



I followed the "Spamhaus" link, and I was directed to a page which said that "This IP range has been identified by Spamhaus as not meeting our policy for IPs which should deliver 'direct-to-mx' mail to PBL users." So it looks like the Uni Exchange server rejects emails from IP ranges which are not identified as being from legitimate ISP SMTP servers (or rather are identified as NOT belonging to them).

So I'm stuffed :-(
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: Exchange server malarkey
« Reply #9 on: July 06, 2008, 09:01:15 PM »
In a last ditch attempt to get this working, I have emailed my ISP and asked them if they can add an entry to their SMTP server to resolve exchange.xxx.ac.uk to the IP address of smtp.xxx.ac.uk. Hopefully it's that simple, and they will be prepared to do it.
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: Exchange server malarkey
« Reply #10 on: July 06, 2008, 09:14:47 PM »
As long as that? Blimey, you need more practice!
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: Exchange server malarkey
« Reply #11 on: July 06, 2008, 10:04:20 PM »
Oh that poor, violated sock... :-P
Hey, we can trash this thread without feeling guilty since it's one of mine :-D
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: Exchange server malarkey
« Reply #12 on: July 08, 2008, 01:54:58 PM »
Right, got a reply from my ISP. They are reluctant to make static entries their end for the uni MX server, in case anything changes at the uni end which screws up their settings and requires further changes. They have suggested that I ask the uni to put CNAMEs for the servers in to their zone. Unfortunately the IT department at uni don't even bother to return my emails :roll:
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: Exchange server malarkey
« Reply #13 on: July 09, 2008, 08:32:50 PM »
Or just put up with OWA until I graduate in 2 years :roll:
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10