X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: =?ISO-8859-1?Q?Ren=E9_Berber?= <r.berber@computer.org>
Subject:  Re: Exim / cron question
Date:  Sun, 01 Oct 2006 22:27:52 -0500
Lines: 44
Message-ID: <efq0vo$d2i$1@sea.gmane.org>
References:  <1159756027.5314.11.camel@panoramix>
Mime-Version:  1.0
Content-Type:  text/plain; charset=ISO-8859-1
Content-Transfer-Encoding:  quoted-printable
User-Agent: Thunderbird 1.5.0.7 (Windows/20060909)
In-Reply-To: <1159756027.5314.11.camel@panoramix>
OpenPGP: url=hkp://random.sks.keyserver.penguin.de
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Joost Kraaijeveld wrote:

> I want cron to deliver an e-mail throught exim to an Exchange server,
> running on the same machine.

But using different smtp ports... or listening to different IP addresses?

> If I use MAILTO=3D"user@remote_domain,user" in my crontab, both the remote
> and the local user get the mail which is delivered in /var/mail/spool.
>=20
> If I use MAILTO=3D"user@remote_domain,user@local_domain", the remote user
> still gets his e-mail, but the mail the user@local_domain is not
> delivered to the local running Exchange server. The exim logfile shows
> "user@local_domain R=3Dnslookup defer (-1) : remote host address is the
> local host" and the next line say "Frozen"

Perhaps with a specific route for your local_domain in exim.conf, something=
 like:

local_route:
   driver =3D manualroute
   transport =3D remote_smtp
   route_list =3D \
        local_domain   exchange.mail.server

replace local_domain with the real domain, and exchange.mail.server with th=
e address and port (if different than smtp).

This rules has to go before the dnslookup one.

> I have read the docs but I still do not understand how to make exim
> deliver the mail for the user@local_domain at the local exchange server.
> Can anyone help me with this? What should I do to make this work?

I haven't tested something like this, but the route_list is something I use=
 to avoid the bounced mails from some servers that don't like my dynamic IP=
 address.
--=20
Ren=E9 Berber


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

