Koozali.org: home of the SME Server

Forwarding emails to Exchange Server

Offline Ness

  • ****
  • 108
  • +0/-0
    • http://www.tapiochre.co.uk
Forwarding emails to Exchange Server
« on: June 06, 2006, 02:20:38 PM »
As a pilot for a longer term project, we are trying to forward emails for three SME user accounts from SME to an Windows Exchange Server, and we also want to use Exchnge as the mail server for these three users, so Exchange will then send to external accounts via SME and onwards.

We don't want to move ALL users to the Windows server, just these three for now at least.

SME sits on the internet router and the Exch box is on SMEs LAN.

We set the "user1" (on SME) account to forward to "user1@the_exchng_server's.domain"

The two machines are on different domains:

examples:

SME is blahblah.co.uk
Exchange Server is on blahblah.com

When we send an email to user1@blahblah.co.uk (for it to be forwarded to user1@blahblah.com, it does deliver the mail but also loops (twice) the email thus:

+++++++++++++++++++++++++++++

Hi. This is the qmail-send program at blahblah.co.uk
I tried to deliver a bounce message to this address, but the bounce bounced!

<user1@blahblah.com>:
This message is looping: it already has my Delivered-To line. (#5.4.6)

--- Below this line is the original bounce.

Return-Path: <>
Received: (qmail 25012 invoked by uid 5003); 5 Jun 2006 21:53:44 -0000
Delivered-To: user1@blahblah.co.uk
Received: (qmail 25009 invoked by alias); 5 Jun 2006 21:53:43 -0000
Delivered-To: alias-localdelivery-user1@blahblah.co.uk
Received: (qmail 25006 invoked by uid 101); 5 Jun 2006 21:53:43 -0000
Delivered-To: admin@blahblah.co.uk
Received: (qmail 25004 invoked by alias); 5 Jun 2006 21:53:43 -0000
Delivered-To: alias-localdelivery-admin@blahblah.co.uk
Received: (qmail 25001 invoked by alias); 5 Jun 2006 21:53:43 -0000
Delivered-To: user1@blahblah.co.uk
Received: (qmail 24998 invoked by alias); 5 Jun 2006 21:53:43 -0000
Delivered-To: alias-localdelivery-user1@blahblah.com
Received: (qmail 24995 invoked for bounce); 5 Jun 2006 21:53:43 -0000
Date: 5 Jun 2006 21:53:43 -0000
From: MAILER-DAEMON@blahblah.co.uk
To: user1@blahblah.com
Subject: failure notice
...
...

+++++++++++++++++++++++++++


Why is this happening? Its probably something stupid we did, but we don't know quite what or how stupid!

Can anyone guide us?


Thanks

Chris
Chris Elliott - SME Server user and helper

wawan

Forwarding emails to Exchange Server
« Reply #1 on: June 07, 2006, 03:38:04 AM »
Ness,
Do you set on EXCHANGE, that all three emails will go to SME?
If so, email user1 will automatically forwarded back to EXCHANGE, as you set it, right?
And this will create LOOP.

Please check.
Cheers,
Wawan

Offline Ness

  • ****
  • 108
  • +0/-0
    • http://www.tapiochre.co.uk
Forwarding emails to Exchange Server
« Reply #2 on: June 07, 2006, 09:10:24 AM »
I don't think we set any forwards on Exchange, only for mail coming into SME.

So, mail into SME from the Internet (or locally from other SME users) that is intended for user1 is forwarded to user1 at Exchange for collection by user1's Outlook client.

Conversely, mail from user1 at Exchange should just go out to the intended recpients.

I'll check our set up though and see what I can see.

Thx

Ness
Chris Elliott - SME Server user and helper

Offline Ness

  • ****
  • 108
  • +0/-0
    • http://www.tapiochre.co.uk
Forwarding emails to Exchange Server
« Reply #3 on: June 07, 2006, 10:07:10 AM »
I don't think we set any forwards on Exchange, only for mail coming into SME.

So, mail into SME from the Internet (or locally from other SME users) that is intended for user1 is forwarded to user1 at Exchange for collection by user1's Outlook client.

Conversely, mail from user1 at Exchange should just go out to the intended recpients.

I'll check our set up though and see what I can see.

Thx

Ness
Chris Elliott - SME Server user and helper