Re: sendmail's outgoing IPs

2008-06-15 Thread perryh
 i have 3 different links to ISP all are ADSL's so outgoing
 bandwidth is low, i would like to spread the load generated
 by outgoing mails.

Pardon my lack of imagination, but how could anyone -- other
than a spammer -- be generating enough outbound email traffic
to *need* to load-balance it, and yet have little enough
total Internet traffic to be using DSL rather than something
oriented to commercial use (like a T1)?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: sendmail's outgoing IPs

2008-06-15 Thread Wojciech Puchar

by outgoing mails.


Pardon my lack of imagination, but how could anyone -- other
than a spammer -- be generating enough outbound email traffic
to *need* to load-balance it, and yet have little enough


please come to poland and use polish telecom's 4Mbit/s ADSL connections.
you won't ask why.

no i'm not a spammer, but my users often send mails like 20-40MB sized.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: sendmail's outgoing IPs

2008-06-15 Thread Wojciech Puchar


Pardon my lack of imagination, but how could anyone -- other
than a spammer -- be generating enough outbound email traffic
to *need* to load-balance it, and yet have little enough
total Internet traffic to be using DSL rather than something
oriented to commercial use (like a T1)?


the reason is simple

something like T1 here costs far too much to dedicate it just for mails.

for the same price i can get four 4Mbit/s ADSL's (which i have now), 
that actually gives 4Mbit/s download speed, but only 512kbps upload.

if you substract ACK's needed for 4Mbit/s download, little is left.
my ipfw rules manages all this so web browsing works fine, but mail output 
is a problem now.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: sendmail's outgoing IPs

2008-06-15 Thread Ian Smith
On Sun, 15 Jun 2008 Wojciech Puchar [EMAIL PROTECTED] wrote:

  no i'm not a spammer, but my users often send mails like 20-40MB sized.
[..]
  something like T1 here costs far too much to dedicate it just for mails.
  
  for the same price i can get four 4Mbit/s ADSL's (which i have now), 
  that actually gives 4Mbit/s download speed, but only 512kbps upload.

Lucky you.  We have a 1500/256kbps link for up to 20 boxes, though
there's talk of upgrading to (nominally) 8M/384kbps.

  if you substract ACK's needed for 4Mbit/s download, little is left.

Slight exaggeration, though TCP downloads do need say 5-10% of download
bandwidth upstream.  Sure, as soon as you use all upload bandwidth (your
mail example, torrents of course, youtube uploads etc) your download
bandwidth is shot.  Not to mention very soggy remote ssh access :) 

  my ipfw rules manages all this so web browsing works fine, but mail output 
  is a problem now.

Why not add dummynet pipes and suitable rules to limit the outbound
bandwidth for mail (or torrents, whatever's a problem) to a maximum of
say 80% of upload, so for 512k set upload limit to maybe 400k, leaving
plenty of room for TCP acks?  So mail takes a bit longer to send ..

You can get fancier with weighted queueing of course, I haven't tried. 

Works well here anyway, but we're not running a multilink connection. 

hth, Ian

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: sendmail's outgoing IPs

2008-06-15 Thread Wojciech Puchar

 something like T1 here costs far too much to dedicate it just for mails.

 for the same price i can get four 4Mbit/s ADSL's (which i have now),
 that actually gives 4Mbit/s download speed, but only 512kbps upload.

Lucky you.  We have a 1500/256kbps link for up to 20 boxes, though
there's talk of upgrading to (nominally) 8M/384kbps.


i have 300 users. and all works quite fast :)


 if you substract ACK's needed for 4Mbit/s download, little is left.

Slight exaggeration, though TCP downloads do need say 5-10% of download


count 10 as HTTP requests can be large. that's 400kbit/s from 512 
available!



bandwidth upstream.  Sure, as soon as you use all upload bandwidth (your
mail example, torrents of course, youtube uploads etc) your download


ipfw rules make sure upload bandwidth isn't saturated. it's just a problem 
that few is left for something else



 is a problem now.

Why not add dummynet pipes and suitable rules to limit the outbound
bandwidth for mail (or torrents, whatever's a problem) to a maximum of
say 80% of upload, so for 512k set upload limit to maybe 400k, leaving


i am already doing this.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: sendmail's outgoing IPs

2008-06-15 Thread Al Plant

Wojciech Puchar wrote:

by outgoing mails.


Pardon my lack of imagination, but how could anyone -- other
than a spammer -- be generating enough outbound email traffic
to *need* to load-balance it, and yet have little enough


please come to poland and use polish telecom's 4Mbit/s ADSL connections.
you won't ask why.

no i'm not a spammer, but my users often send mails like 20-40MB sized.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]



Aloha List,

In Hawaii we have 3 Mbit DSL that is used for email and web sites. Works 
just fine in and out.




~Al Plant - Honolulu, Hawaii -  Phone:  808-284-2740
  + http://hawaiidakine.com + http://freebsdinfo.org +
  + http://aloha50.net   - Supporting - FreeBSD 6.* - 7.* - 8.* +
   email: [EMAIL PROTECTED] 
All that's really worth doing is what we do for others.- Lewis Carrol

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


sendmail's outgoing IPs

2008-06-14 Thread Wojciech Puchar
is it possible to make sendmail choose it's outgoing IP when sending mail 
from list of four in random or round-robin way?


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: sendmail's outgoing IPs

2008-06-14 Thread Sahil Tandon
Wojciech Puchar [EMAIL PROTECTED] wrote:

 is it possible to make sendmail choose it's outgoing IP when sending mail 
 from list of four in random or round-robin way?

What problem are you trying to solve?  And this really is a question for the 
sendmail mailing list. :-)

-- 
Sahil Tandon [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: sendmail's outgoing IPs

2008-06-14 Thread Matthew Seaman

Wojciech Puchar wrote:
is it possible to make sendmail choose it's outgoing IP when sending 
mail from list of four in random or round-robin way?


Not easily.  sendmail(8) defaults to binding to all IPs on the machine
(INADDR_ANY) and the IP it will use to send with will just be whatever
would be the default from the routing table to reach the destination.

You can control what interfaces sendmail will listen on by using the
DAEMON_OPTIONS() macro in /etc/mail/$(hostname).mc and you can
set what IP number the machine will use as the origin address using
the CLIENT_OPTIONS() macro.  However, CLIENT_OPTIONS() doesn't give
you any method of cycling through multiple IP numbers.

What could you do? Run four instances of sendmail in different jails
as outgoing mail relays, each bound to a different IP.  Supposing your
server is called 'smtp.your.dom.ain' then you can make that an A record
which returns those 4 different IP numbers.  Clients looking the server
up in the DNS will get a randomised list of IPs (or round-robin,
depending on the configuration of the DNS servers you're using).

Alternatively you can use one instance of sendmail and do NAT tricks
to rewrite the packets on the way out of the firewall.  See 
http://www.openbsd.org/faq/pf/nat.html and the 'NAT LOAD BALANCE' example
in pf.conf(5).  Note however that you should take care to ensure that
the hostname your MTA helos as matches whatever IP or IPs are ultimately
used in the connection to the other MTA, or your message may well be
refused as likely to be spam.

There are also recipes I've seen on the comp.mail.sendmail newsgroup
for running sendmail with multiple virtual identities depending on the
sender address of the e-mail, which isn't exactly what you asked for
but might be good enough.

Cheers,

Matthew

--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: sendmail's outgoing IPs

2008-06-14 Thread Wojciech Puchar

from list of four in random or round-robin way?


What problem are you trying to solve?  And this really is a question for the


i have 3 different links to ISP all are ADSL's so outgoing bandwidth is 
low, i would like to spread the load generated by outgoing mails.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: sendmail's outgoing IPs

2008-06-14 Thread Wojciech Puchar

What could you do? Run four instances of sendmail in different jails
as outgoing mail relays, each bound to a different IP.  Supposing your


that's what i was thinking about, but believed there is smarted method.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]