This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Traffic Shaper on outgoing emails?

hi forum,

ASG220 with exchange 2003 behind. mail security activated - everything is fine, except when a newsletter is send out. the mails are in the SMTP spooler on the ASG and delivery is in process - this cuts down the complete internet traffic, meaning that even opening a website is not possible anymore. 
the uplink is on it's limit (512kbit/sec)

is there a possibility to shape down the traffic, e.g. that outgoing mails from the ASG must not take more than 256kbit/sec, so that surfing is still possible while mails are delivered?

if so (and i think there should be something like that) it would be great if someone gives my guidance.

thanks
GrEEtz


This thread was automatically locked due to age.
  • yes..in QOS first setup a traffic selector for smtp.  Then create a bandwidth pool bound to the external interface.  specify the minimum bandwidth you want smtp to have..then check the specify upper limit box and set that one to 256. save it..activate it..that should take care of the issue.

    Owner:  Emmanuel Technology Consulting

    http://etc-md.com

    Former Sophos SG(Astaro) advocate/researcher/Silver Partner

    PfSense w/Suricata, ntopng, 

    Other addons to follow

  • thanks, that worked perfectly for me - i thought about that, but wasn't sure.

    GrEEtz
  • I tried to do the same thing but my email traffic isn't limited.

    I set up a service group (email outgoing) with 6 services in it for IMAP, POP3 and SMTP (and again with SSL).
    For SMTP this would be:
    name: SMTP outgoing
    destination: 1:65535
    source: 25

    I then made a traffic selector:
    any -> email outgoing -> any (TOS/DSP off)

    And a bandwidth pool on my external nic (enabled):
    bandwidth: 32 kbps
    limit: 128 kbps
    traffic selector: email outgoing

    I enable QoS on my external nic and entered the available bandwidth:
    downlink: 67000 kbps
    uplink: 1900 kbps

    I used low traffic limits for testing purposes.  A 15MB mail should take at least 15*1024*8 kb / 128kbps = 16 minutes, but it arrives after only a couple of minutes (suggesting it takes up my entire outgoing bandwidth).

    What am I missing?
  • I tried to do the same thing but my email traffic isn't limited.

    I set up a service group with 6 services in it for IMAP, POP3 and SMTP (and again with SSL).
    For SMTP this would be:
    name: SMTP outgoing
    destination: 1:65535
    source: 25

    I then made a traffic selector:
    any -> email group outgoing -> any

    And a bandwidth pool on my external nic:
    bandwidth: 32 kbps
    limit: 128 kbps
    traffic selector: email group outgoing

    I enable QoS on my external nic and entered the available bandwidth:
    downlink: 67000 kbps
    uplink: 1900 kbps

    I used low traffic limits for testing purposes.  A 15MB mail should take at least 15*1024*8/128 = 16 minutes, but it arrives after only a couple of minutes (suggesting it takes up my entire outgoing bandwidth).

    What am I missing?


    what my setup does is if there is more bandwidth available that is not being used by a higher priority traffic then it can grab everything...if there is something else going on then the smtp traffic will be limited to it's floor amount or the amount of spare bandwidth...i did not see you check the specify upper limit box and fill that in with whatever you want.  You have to specify the upper limit if you want there to be one..but the upper limit has to be greater than the guaranteed minimum limit.

    Owner:  Emmanuel Technology Consulting

    http://etc-md.com

    Former Sophos SG(Astaro) advocate/researcher/Silver Partner

    PfSense w/Suricata, ntopng, 

    Other addons to follow

  • I set the upper limit to 128kbps (32 guaranteed)
  • did I configure my service correct?  IOW, I don't use the standard SMTP service, but created one in the opposite direction (outgoing).
  • A couple things here.  First, it's easy to set the Bandwidth Pool on the wrong interface, so check that.  Second, I'm not a big fan of limiting bandwidth, so I always make it a habit to look for the problem caused.  In this thread, it seems like the issue is outbound browsing and DNS requests, and that the inbound pipe is almost empty.

    So, I would kill the QoS rule that limits email traffic.  Next add a new services group "Browsing" that includes everything in "Web Surfing" plus DNS.  Finally, create a rule on the External interface guaranteeing 128k to 'Any -> Browsing -> Any'.

    Did that give you the results you were looking for?

    Cheers - Bob
     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
  • if he turns on the upload optimizer in auto qos atnot.it automatically takes care of acks and dns and whatnot.  My setup(with the max upstream checked an for the qos rule  specified) dooes exactly what he is after.  I'm not at a place to get to any of my astaros but your way let's smtp take everything which is not what he wants.  I have another one where I have minimums seto for multiple things with no maxes and that then allows full use of bandwidth without any one thing able to monopolize the connection.  in myh first case I don't want smtp tp ever take more than 256k....on my other one they all have guarenteed floors with a floating ceiling.  Both are valid and both work very well without creating contention problems...I will detail my smtp restricted settings after I get back to the offikce tonight

    Owner:  Emmanuel Technology Consulting

    http://etc-md.com

    Former Sophos SG(Astaro) advocate/researcher/Silver Partner

    PfSense w/Suricata, ntopng, 

    Other addons to follow

  • I didn't give enough information.  I indeed want a guaranteed bandwidth of 1500kbps on outbound traffic on port 211.

    The reason I'm testing with smtp is because it was easy to verify if it's working, just time the mails - it doesn't work
    So I can assume the other bandwidth pool isn't working either.

    What I'm really after is this:
    I have a public application server with traffic coming in on port 211.
    I assume traffic is going out on the same port 211, but I'm not sure how to check.

    name: application outgoing
    destination: 1:65535
    source: 211

    http://dl.dropbox.com/u/3961412/services.png

    I then made a traffic selector:
    any -> application outgoing -> any

    http://dl.dropbox.com/u/3961412/traffic_selector.png

    And a bandwidth pool on my external nic:
    bandwidth: 1500 kbps
    traffic selector: application outgoing

    http://dl.dropbox.com/u/3961412/bandwidth_pools.png

    I enable QoS on my external nic and entered the available bandwidth:
    downlink: 67000 kbps
    uplink: 1900 kbps

    http://dl.dropbox.com/u/3961412/status.png

    Do I need to add additional packet filters or anything?
  • I didn't give enough information.  What I really want to do is guarantee bandwidth to an other service (which is very difficult for me to verify), with no limit, only a guaranteed bandwidth of 1500kbps.

    The reason I'm limiting smtp was purely as a test, to see iif it works - it doesn't.
    So I can assume the other bandwidth pool isn't working either.

    What I'm really after is this:
    I have a public application server with traffic coming in on port 200

    name: application outgoing
    destination: 1:65535
    source: 200

    I then made a traffic selector:
    any -> application outgoing -> any

    And a bandwidth pool on my external nic:
    bandwidth: 1500 kbps
    traffic selector: application outgoing

    I enable QoS on my external nic and entered the available bandwidth:
    downlink: 67000 kbps
    uplink: 1900 kbps

    Since I don't know how to test if this works, I tried it with the smtp service and timed my mails [:)].


    Limiting a service or services or geoup does work I use it extensivly...something isn't configured right.  Incoming qos is problematic.....outgoing is the one you have very granular control over.  It is hard for me to read in detail on my phone will get back to you tonight once I'm at the office

    Owner:  Emmanuel Technology Consulting

    http://etc-md.com

    Former Sophos SG(Astaro) advocate/researcher/Silver Partner

    PfSense w/Suricata, ntopng, 

    Other addons to follow