This is the mail archive of the
mailing list for the Cygwin project.
Re: Exim / cron question
- From: René Berber <r dot berber at computer dot org>
- To: cygwin at cygwin dot com
- Date: Sun, 01 Oct 2006 22:27:52 -0500
- Subject: Re: Exim / cron question
- Openpgp: url=hkp://random.sks.keyserver.penguin.de
- References: <1159756027.5314.11.camel@panoramix>
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="user@remote_domain,user" in my crontab, both the remote
> and the local user get the mail which is delivered in /var/mail/spool.
> If I use MAILTO="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=nslookup 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:
driver = manualroute
transport = remote_smtp
route_list = \
replace local_domain with the real domain, and exchange.mail.server with the 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.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html