Ok, now i ran, as you adviced me: 2011/9/8 Gáspár Lajos <swifty@xxxxxxxxxxx>: > IPTABLES=/sbin/iptables > nic=eth0 > port=25 > upload=10kbit > bandwith=2Mbit > > $IPTABLES -t mangle -A OUTPUT -p tcp -o $nic --sport $port -j MARK --set-mark 1 > tc qdisc add dev $nic root handle 1:0 cbq bandwidth $bandwidth avpkt 1000 mpu 64 > tc class add dev $nic parent 1:0 classid 1:1 cbq rate $upload allot 1514 prio 1 avpkt 1000 bounded isolated >tc filter add dev $nic parent 1:0 protocol ip handle fw flowid 1:1 But with this script I obtain the same result: I tried to send a mail with an attachment of 3 MB. Between the "client connection" and the "removed from queue", passed 1'12'' With tail /var/log/maillog | grep "size=" I saw that the real mail size is 4317831B, so the real speed is (4317831*8)[bits] / 72[s] = 479759, 468 Kbps, not 10 Kbps as I set.. I cannot understand the reason of this differences... -- To unsubscribe from this list: send the line "unsubscribe netfilter" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html