howto configure exim to route via ISP

If you need some help, this should be the first place to look.

Postby dingetje » Mon Dec 29, 2003 5:08 pm

More and more organisations are blocking mail that originates from a dynamic IP address range. This happened to me several times for people that registered on my forum that is hosted on my FREESCO box with exim as the MTA (Mail Transport Agent).
The solution? Configure exim to route outgoing mails via the SMTP server of your ISP.

Add these lines as the first route in the ROUTERS section of your exim configuration file:

<span style='font-family:Courier'>#
# route via ISP mail server
#
store_and_forward:
driver = domainlist
transport = remote_smtp
route_list = "* <span style='color:red'>smtp.your.isp</span>" </span>


Where <span style='color:red'>smtp.your.isp</span> must be replaced with the full qualified domain name of the SMTP server of your ISP.
Save changes and restart exim. Send out a test mail to a POP mailbox outside your domain and check the mail headers after reception.

Here's a test mail to my work account before the change:
Code: Select all
Return-Path: <root@dingetje.homeip.net>
Received: from dingetje.homeip.net (cc19963-a.zwoll1.ov.home.nl [217.120.230.161])
   by ns1.sal-eng.nl (8.12.9/8.12.9) with ESMTP id hBTLWLm0024337
   for <antoine@salland.com>; Mon, 29 Dec 2003 22:32:22 +0100
Received: from root by dingetje.homeip.net with local (Exim 3.36 #1)
   id 1Ab5tt-0006Au-00
   for antoine@salland.com; Mon, 29 Dec 2003 22:30:13 +0100
To: antoine@salland.com
Subject: PHP mail()
From: webmaster@dingetje.homeip.net
Message-Id: <E1Ab5tt-0006Au-00@dingetje.homeip.net>
Date: Mon, 29 Dec 2003 22:30:13 +0100
X-Text-Classification: dingetje
X-POPFile-Link: http://127.0.0.1:8080/jump_to_message?view...ile3897=496.msg

This is just a test...


And this is after the added route:

Code: Select all
Return-Path: <root@dingetje.homeip.net>
Received: from smtpq3.home.nl (smtpq3.home.nl [213.51.128.198])
   by ns1.sal-eng.nl (8.12.9/8.12.9) with ESMTP id hBTLbom0024359
   for <antoine@salland.com>; Mon, 29 Dec 2003 22:37:51 +0100
Received: from [213.51.128.136] (port=42962 helo=smtp5.home.nl)
   by smtpq3.home.nl with esmtp (Exim 4.20)
   id 1Ab53S-0003BG-PQ
   for antoine@salland.com; Mon, 29 Dec 2003 22:36:02 +0100
Received: from cc19963-a.zwoll1.ov.home.nl ([217.120.230.161]:6671 helo=dingetje.homeip.net)
   by smtp5.home.nl with esmtp (Exim 4.20)
   id 1Ab53P-0006ga-OZ
   for antoine@salland.com; Mon, 29 Dec 2003 22:36:01 +0100
Received: from root by dingetje.homeip.net with local (Exim 3.36 #1)
   id 1Ab5zO-0006NV-00
   for antoine@salland.com; Mon, 29 Dec 2003 22:35:54 +0100
To: antoine@salland.com
Subject: PHP mail()
From: webmaster@dingetje.homeip.net
Message-Id: <E1Ab5zO-0006NV-00@dingetje.homeip.net>
Date: Mon, 29 Dec 2003 22:35:54 +0100
X-AtHome-MailScanner-Information: Please contact support@home.nl for more information
X-AtHome-MailScanner: Found to be clean
X-Text-Classification: dingetje
X-POPFile-Link: http://127.0.0.1:8080/jump_to_message?view...ile3898=497.msg

This is just a test...


Notice the extra 'mail' hop via my ISP's SMTP server (they are using EXIM 4.20 ;)). As an extra bonus my outgoing mail messages are now scanned for virusses (an service provided by my ISP).

I hope this info is usefull for others that experience the same problem.
GreetZ
http://dingetje.hopto.org

"Software is like sex: it's better when it's free." - LINUS TORVALDS
User avatar
dingetje
FREESCO GURU !!
 
Posts: 1010
Joined: Wed Nov 14, 2001 12:13 pm
Location: The Netherlands

Return to FAQ - Frequently Asked Questions

Who is online

Users browsing this forum: No registered users and 1 guest

cron