Updated needed on the help item "Force exim to send email from a particular IP"

Ghadamyari

Verified User
Joined
Aug 13, 2011
Messages
32
Updated needed on the help item "Force exim to send email from a particular IP"

The help item Force exim to send email from a particular IP needs to be updated as in the recent versions of exim and exim.conf installed by custombuild 2.x the proper way to change remote_smtp IP address is to edit the file /etc/virtual/domainips and add:
Code:
*: YOUR.NEW.IP.ADDRESS

This method works as the new exim.conf file includes the above file by default:

Code:
# cat /etc/exim.conf | grep -A5 -i remote_smtp:
remote_smtp:
  driver = smtp
  headers_add = "${if def:authenticated_id{X-Authenticated-Id: ${authenticated_id}}}"
  [B]interface = <; ${if exists{/etc/virtual/domainips}{${lookup{$sender_address_domain}lsearch*{/etc/virtual/domainips}}}}
[/B]  helo_data = ${if exists{/etc/virtual/helo_data}{${lookup{$sending_ip_address}iplsearch{/etc/virtual/helo_data}{$value}{$primary_hostname}}}{$primary_hostname}}
.include_if_exists /etc/exim.dkim.conf
 
Back
Top