Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Qmail: users

outgoing IP

 

 

Qmail users RSS feed   Index | Next | Previous | View Threaded


MLedet at seisint

Dec 19, 2002, 9:16 AM

Post #1 of 5 (1187 views)
Permalink
outgoing IP

Possible newbie question here... but...

I've read through qmail.org and see the outgoingIP patch, but I'm curious,
without the patch does:

1) Qmail use a single IP address for sending or all of the available IPs?
2) Can you assign more than one IP to be outgoing (multiple NICs), for
example add 3 address to the outgoing IP file, or something similiar?

Thanks.

Mike


qmail at discworld

Dec 19, 2002, 9:48 AM

Post #2 of 5 (1145 views)
Permalink
Re: outgoing IP [In reply to]

Ledet, Mike <MLedet [at] seisint> wrote:
>
> I've read through qmail.org and see the outgoingIP patch, but I'm curious,
> without the patch does:
>
> 1) Qmail use a single IP address for sending or all of the available IPs?

Up to your OS. qmail just says "connect to 1.2.3.4" without specifying a
source address to use.

> 2) Can you assign more than one IP to be outgoing (multiple NICs), for
> example add 3 address to the outgoing IP file, or something similiar?

I don't use the patch you're referring to; it serves no purpose for most
people.

Charles
--
---------------------------------------------------------------------------
Charles Cazabon <qmail [at] discworld>
GPL'ed software available at: http://www.qcc.ca/~charlesc/software/
Read http://www.qcc.ca/~charlesc/writings/12-steps-to-qmail-list-bliss.html
---------------------------------------------------------------------------


jefft at wciatl

Dec 19, 2002, 10:14 PM

Post #3 of 5 (1136 views)
Permalink
Re: outgoing IP [In reply to]

--On Thursday, December 19, 2002 11:16 AM -0500 "Ledet, Mike"
<MLedet [at] seisint> wrote:

> Possible newbie question here... but...
>
> I've read through qmail.org and see the outgoingIP patch, but I'm curious,
> without the patch does:
>
> 1) Qmail use a single IP address for sending or all of the available IPs?

As Charles said, all qmail does is establish a TCP connection to the
destination IP. Your OS will determine how that happens and what IP address
of yours is used.

> 2) Can you assign more than one IP to be outgoing (multiple NICs), for
> example add 3 address to the outgoing IP file, or something similiar?
>

No, the patch simply tells qmail to bind to a particular address before
establishing the connection. There is no provision to round-robin through
several or fallback if a connection is down or something like that.

Jeff

--
Jeff Tucker
Williams Consulting, Inc.
jefft [at] wciatl


lists-qmail at maexotic

Jun 23, 2010, 8:10 AM

Post #4 of 5 (1133 views)
Permalink
Re: Outgoing IP [In reply to]

On Tue, Jun 22, 2010 at 02:42:01PM -0700, Pedram M wrote:
> Is there any other patches available that will allow this rotation in real
> time, and possibly load balancing between the multiple ip's.

Maybe it is a lack of coffee, but I totally don't understand what you are
talking about.

I am one of the authors of such a patch. All patches I know about make
use of a control file which contains the IP address qmail-remote shall
bind to. This file is read every time qmail-remote is run (aka for each
message and each new delivery cycle, if a message has been deferred).
Changing this file will change the outgoing IP address immediately
for all qmail-remote processes being started.
So what do you mean by "rotation in real time".

Load balancing works usually incoming. You have too much messages coming
in for a single server to handle, so you split the load over a few
servers. All these share one externally visible IP address.
Outgoing load balancing is used if a system generates too many messages
(large mailing lists) for one server to send out. The creator then
splits the message over a range of delivery systems that have queues
and do retries and such (qmail has qmqp for that kind of problems).

Why do you think you "balance load" if you only have one server anyway
but use different IP addresses for sending? (Which btw. is totally
breaking greylisting, which is still widely used).

So, probably there is no such patch as such a patch is IMHO pretty useless.

\Maex


josh at honorablemenschen

Jun 23, 2010, 9:01 AM

Post #5 of 5 (1132 views)
Permalink
Re: Outgoing IP [In reply to]

> On Tue, Jun 22, 2010 at 02:42:01PM -0700, Pedram M wrote:
>> Is there any other patches available that will allow this rotation in
>> real
>> time, and possibly load balancing between the multiple ip's.
>
> Maybe it is a lack of coffee, but I totally don't understand what you are
> talking about.
>
> I am one of the authors of such a patch. All patches I know about make
> use of a control file which contains the IP address qmail-remote shall
> bind to. This file is read every time qmail-remote is run (aka for each
> message and each new delivery cycle, if a message has been deferred).
> Changing this file will change the outgoing IP address immediately
> for all qmail-remote processes being started.
> So what do you mean by "rotation in real time".
>
> Load balancing works usually incoming. You have too much messages coming
> in for a single server to handle, so you split the load over a few
> servers. All these share one externally visible IP address.
> Outgoing load balancing is used if a system generates too many messages
> (large mailing lists) for one server to send out. The creator then
> splits the message over a range of delivery systems that have queues
> and do retries and such (qmail has qmqp for that kind of problems).
>
> Why do you think you "balance load" if you only have one server anyway
> but use different IP addresses for sending? (Which btw. is totally
> breaking greylisting, which is still widely used).
>
> So, probably there is no such patch as such a patch is IMHO pretty
> useless.
>
The only thing I can thing of is something I helped set up once for a
clustered qmail setup where multiple servers shared a single NFS-mounted
/var/qmail/control directory. Since multiple servers can't use the same
outgoing IP, each had to have its own control file.

The solution was to create /etc/qmail on each server, and symlink
/var/qmail/control/outgoingip to /etc/qmail/outgoingip. That way, each
server read the local file via the symlink, and thus each server could
have its own outgoing IP (as well they should have).

But to reiterate what Markus said, sending outgoing mail from multiple IPs
on ONE server is just dumb...

Josh

Joshua Megerman
SJGames MIB #5273 - OGRE AI Testing Division
You can't win; You can't break even; You can't even quit the game.
- Layman's translation of the Laws of Thermodynamics
josh [at] honorablemenschen

Qmail users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.