This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Exim / cron question

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 = \
        local_domain   exchange.mail.server

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.
René Berber

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]