Sending email from domain IPs

CiscoMike

Verified User
Joined
Dec 2, 2005
Messages
62
Location
Denver, CO
I searched through and found http://www.directadmin.com/forum/showthread.php?t=7284&highlight=IP+address from 2006. Wanted to see if there was anything more current.

The only error I'm suffering at dnsstuff.com is that for mail, my primary server IP is answering mail for all of my domains. So for example:

empire.morrato.com is my host name and what I use to manage DA. I've got 27 domains I host across different IPs that are not the same IP as empire (for example morrato.org/.net, worldofimmortalis.com, theantichurch.com, etc). I have DNS/RDNS setup for the IP addresses, I have SPF records inserted and all that jazz. But the email is all outgoing from the empire host name and IP address.

Is there a way to do this other than the thread above? I have the "interfaces" and "smtp_active_hostnames" files created in /etc/virtual and they are accurate but I haven't done the script changes for exim. I was hoping there was a change over the last year that made this a bit more straight forward.

Thanks


error from dnsstuff.com:
mail.theantichurch.com claims to be host empire.morrato.com [but that host is at 74.86.101.114 (may be cached), not 74.86.89.169].
 
No other way to make the change I'm aware of, and there won't be any changes written into SpamBlocker3.

There are two companies involved in writing plugins for SpamBlocker; perhaps when SpamBlocker3 is released one of them may want to add some code to help you do the maintenance.

Jeff
 
No other way to make the change I'm aware of, and there won't be any changes written into SpamBlocker3.

There are two companies involved in writing plugins for SpamBlocker; perhaps when SpamBlocker3 is released one of them may want to add some code to help you do the maintenance.

Jeff

sorry, been traveling for work. I'm not quite sure your message was meant for me. I was asking about making Exim use different IPs for sending email out (based on domains).
 
sorry, been traveling for work. I'm not quite sure your message was meant for me. I was asking about making Exim use different IPs for sending email out (based on domains).
It is possible. I tried the following with Exim v4.63, thus I am not sure if this will work on the latest release v4.67 / .68:

If you wish to bind listening interface to a certain IP addresses, add the following directive to /etc/exim.conf at the beginning of conf file:

local_interfaces = ONE_IP : ANOTHER_IP

delimit IPs with the character "colon" :

Now, if you wish like to limit Exim to a specific IP from which you are sending mail find:

Code:
# This transport is used for delivering messages over SMTP connections.
 
remote_smtp:
driver = smtp

and add the following directive underneath it:

interface = IP_ADDRESS

See if that works.
 
CiscoMike, yes I was responding to you. The method shown in the thread which you reference is the way you'd do it in Exim. I don't plan on writing anything more specific into SpamBlocker3, but either of the two companies writing the commercial plugins could write it.

The problem is that DirectAdmin has no single file (which I'm aware of) which has the entire list of domains/IP#s, and that's what you'd need to be able to just do it.

Jeff
 
Back
Top