Re: Postfix - Limit Bandwidth

From: James Wilkinson (fedora_at_westexe.demon.co.uk)
Date: 11/11/05

  • Next message: CodeHeads: "Re: Fedora 4 Upgrade TTY"
    Date: Fri, 11 Nov 2005 13:15:23 +0000
    To: fedora-list@redhat.com
    
    

    Ki Song wrote:
    > Is there a way to limit the bandwidth used by postfix when sending/receiving
    > messages?
    >
    > The reason is that we sent out a newsletter, and the performance is
    > excellent, but it is using up all our bandwidth.

    I've not had to do this with Postfix, but I have with certain other
    MTAs.

    I assume your real problem is that it's slowing down other traffic,
    especially interactive traffic. In my experience, using all *available*
    bandwidth, in itself, is good. (You paid for that bandwidth: you might
    as well use it).

    And this is because most MTAs will open lots of outbound TCP/IP
    connections if they have lots of mail to deliver. These connections will
    swamp the other connections.

    The best solution is probably traffic shaping *on the router* that will
    prioritise other traffic over outbound SMTP. That isn't always
    available.

    As a "next best solution", I've found that limiting concurrent outbound
    connections [1] makes MTAs co-exist much better with other network
    services. I usually try three or four, and modify from there.

    As far as I can tell, you can do this in Postfix by editing
    /etc/postfix/master.cf, and changing
    smtp unix - - n - - smtp
    to something like
    smtp unix - - n 4 - smtp

    Note that with only one or two outbound connections, you can be slowed
    down by bottlenecks elsewhere on the Internet, or if you are unfortunate
    enough to connect to a misconfigured teergrube
    (http://catb.org/~esr/jargon/html/T/teergrube.html).

    Hope this helps,

    James.

    [1] i.e. limiting how many connections they have open at any one time

    -- 
    E-mail address: james | My friend, you would not tell with such high zest
    @westexe.demon.co.uk  | To children ardent for some desperate glory,
                          | The old Lie: Dulce et decorum est
                          | Pro patria mori.    -- Wilfred Owen
    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: CodeHeads: "Re: Fedora 4 Upgrade TTY"

    Relevant Pages

    • Re: Need help with bandwidth management . . .
      ... The bandwidth managements is much better in v24 than in v23: ... QoS lan port settings, and I cannot get anything consistent. ... it common practice on their home connections. ... first one in my opinion is bandwidth management. ...
      (alt.internet.wireless)
    • Re: Need help with bandwidth management . . .
      ... also be a good time to separate the wired from the wireless parts of ... wired connections. ... QoS lan port settings, and I cannot get anything consistent. ... switch ports and limit the bandwidth per port (the settings are ...
      (alt.internet.wireless)
    • Re: Multiple APs
      ... See above quotation from the data sheet. ... connections could be handled by various access points. ... With the proper application of bandwidth ... expect instant response time. ...
      (alt.internet.wireless)
    • Re: Calculating bandwidth Requirements
      ... know that for UDP packets it's generally around 48 bytes per packet. ... The best way to measure actual bandwidth is to sniff your network using tools ... Divide this by the bitrate of your ... > This would guarantee at least 256k (4 audio connections) for your audio ...
      (microsoft.public.windowsmedia.server)
    • [SLE] Slow Postfix
      ... Aprox: 150.000 virtual users. ... DNS, etc, but.. ... work just with postfix... ... and with 2 or 70 connections it is the same, ...
      (SuSE)

    Loading