OT: Multiple Outgoing IPs?
Aaron K. Moore
amoore at dekalbmemorial.com
Wed Apr 4 14:06:03 IST 2007
Jim Coates wrote:
>> -----Original Message-----
>> From: mailscanner-bounces at lists.mailscanner.info
>> [mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf Of
>> Alex Neuman van der Hans Sent: Tuesday, April 03, 2007 8:03 AM
>> To: MailScanner discussion
>> Subject: Re: OT: Multiple Outgoing IPs?
>>
>>
>> Res wrote:
>>> On Mon, 2 Apr 2007, Jim Coates wrote:
>>>
>>>> Because of how we track bonded sender info and such, I need to have
>>>> both domains (one for each company) sending outgoing mail on
>>>> different IPs.
>>>
>>> Look at Sendmail 8.14.x
>>>
>>> This will probably mean dumping whatever flavour distros ancient
>>> version you have installed and useing the tarball.
>>>
>>>
>> Unless you have a redhat-like distro; if you do, you can find the
>> rpms (with source rpms as well) at
>> http://www.city-fan.org/ftp/contrib/mail/
>>
>
> Well, I talked to my ISP about the "multiple instances of SendMail"
> and this was the response they gave me:
>
> Sendmail by default listens on all avialable ip addresses. Using the
> outline you've provided does the following:
>
> 2 seperate instances of sendmail, 1 listening on the base ip while
> the other listens on the second ip.
>
> One then can be configured to relay all mail received to a smart
> host, while the other doesn't. However, the doesn't prevent a user
> from using the first instance. (Nor am I actually sure how to split
> the configs amongst sendmail instlalations).
>
> Additionally, /usr/sbin/sendmail only points to the first queue.
> There isn't any way for this to selectively point to the second
> queue. The only way to get mail injected to the second queue is by
> talking to port 25 on the ip address of the second instance. Any
> mail generated from scripts will not work as expected.
>
> Sendmail will always use the base ip address when sending mail. If
> there is a way to change this, I haven't been able to find any
> information online regarding this.
>
> Does this sound right?
>
> Jim
You should have a complete config file for each instance of sendmail
that you are running. I highly recommend the O'Reilly sendmail books.
I've found them invaluable for dealing with sendmail. You might want to
take a look at the sections on routing mail in the sendmail Cookbook by
Craig Hunt.
You can pass a configuration file to sendmail using the -C command line
switch. From glancing at some documentation it looks like there can be
some limitations when passing it a configuration file. It's covered in
section 15.7.17 in the book sendmail by Bryan Costales, Third Edition.
Good Luck.
Aaron
--
Aaron Kent Moore
Information Technology Services
DeKalb Memorial Hospital, Inc.
Auburn, Indiana
Phone: 260.920.2808
E-Mail: amoore at dekalbmemorial.com
More information about the MailScanner
mailing list