Add Comment

You are not currently logged in. If you do not have a user account then please consider creating one and logging in before you post your comment. This will allow you to track replies to your comment, and take part in the site much more freely.

To add your comment, fill in all the boxes below and then preview it to make sure you're happy with the way that it looks.

This is the comment you were replying to, attached to the article Sending mail with Exim from 'dialup' IP:


Re: Sending mail with Exim from 'dialup' IP
Posted by lee (193.82.xx.xx) on Wed 4 Jan 2006 at 16:58

I don't think it's possible with the stock Exim (athough patches may exist).

What you would normally do in this situation is either maintain a list of recipient domains that you wish to send through the smarthost (or alternatively send everything through a smarthost and manually maintain a list of domains you want to send directly).

Search for "exim smarthost route_list" and you should turn up some examples.

Untested, and off the top of my head:
Create /etc/exim4/conf.d/router/180_local_rbl_smarthost (assuming an exim4 split config)

domainlist rbl_blockers = example.com:example.org

rbl_blockers_via_smarthost:
  debug_print = "R: rbl_blockers_via_smarthost for $local_part@$domain"
  driver = manualroute
  domains = rbl_blockers
  transport = remote_smtp
  route_list = rbl_blockers your.smarthost.com

Obviously you can use a lookup (file, dbm, mysql, etc) for the domainlist data.


Username:Anonymous
Title:
Your Comment:

Posting Format:

 

Inappropriate comments will be removed.

Some help on entry formatting is available

User Login

Username:

Password:

[ Advanced Login ]

Register Account

Quick Site Search