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

POP3 Proxy with Spam protection = sloooow

Im running V5.1 on a P3 900 with 256Mb RAM just for home use.
If I turn on Spam protection on the POP3 proxy, mail delivery is comparatively slow. As a test, I sent myself 10 text only test messages of 300bytes (ie tiny - just a test subject but no text within the message body). With spam enabled it took 31 seconds to download them from my ISP, with the spam turned off, it took 2.5 seconds!
Is there anything I can do to speed this up, I cant see much that can be tweaked though so I guess it could just be more PC horsepower required?  [:(]

cheers

Chris


This thread was automatically locked due to age.
Parents
  • what else are you using besides just pop3?

    Owner:  Emmanuel Technology Consulting

    http://etc-md.com

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

    PfSense w/Suricata, ntopng, 

    Other addons to follow

  • IDS and HTTP / SMTP Proxies are the main ones. I do now have web / email AV but that wasnt enabled when I first posted this and it doesnt seem to have any adverse effects.
  • [ QUOTE ]
    IDS and HTTP / SMTP Proxies are the main ones. I do now have web / email AV but that wasnt enabled when I first posted this and it doesnt seem to have any adverse effects. 

    [/ QUOTE ]

    with 256 megs ram and what you are using i be your RAm usage is too high and the system is swapping.  Have you tried using the pop3 proxy with a/v on and spam protection off?

    Also you can reduce the RAM usage by the http proxy with a few mods(if you are confortable with making changes as root).  This will void your Astaro support in terms of technical support so if this is for a business i would reconsider doing this..[:)]

    to adjust max object size on disk and in mem:
    Login to your firewall using an ssh client (I use ZOC on windows but PuTTY I believe works just as well) using the "loginuser" ID.

    Once logged in "su" to root...
    ASL> su -
    Password: 

    Open the .conf file in "joe".
    ASL> joe /var/chroot-squid/etc/squid.conf-default

    As the above article suggests, look at the /var/chroot-squid/etc/reference-squid.conf file first since it has all the original annotations regarding the different options contained in the file.

    cache_mem
    Default cache_mem 8 MB
    (add this line without the word default and changethe 8 to zero)

    Default maximum_object_size 4096 KB
    Objects larger than this size will NOT be saved on disk. The value is specified in kilobytes, and the default is 4 MB
    (i jack this one way up..on my v5 setup i have this set to 200 megs on a 20 gig drive that uses a 6 gig storage partition)

    maximum_object_size_in_memory (bytes)
    Objects greater than this size will not be attempted to be kept in the memory cache. This should be set high enough to keep objects accessed frequently in memory to improve performance while, low enough to keep larger objects from hoarding cache_mem.
    Default maximum_object_size_in_memory 8 KB
    ( I make this one zero as well. Between this one at zero and the cache mem at zero it reduces by at least 50%(maybe more) the amount of ram squid chews up. I never noticed a huge performance hit from using the hdd as my primary cache even with a 3 meg connection to the internet.)

    These three changes alone will drastically reduce the amount of RAM squid takes up during caching. The hard disk will have the load shifted to it as a result(which for me is what i was looking to do). You can modify these values as you wish..but for 256 megs i would use the above values. Just my .02.
    -------------------------------------------------------------------
    If you really do not want to do all of this..i would upgrade to 512 megs or more of ram.




    Also

    Owner:  Emmanuel Technology Consulting

    http://etc-md.com

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

    PfSense w/Suricata, ntopng, 

    Other addons to follow

  • Hi William

    Thanks for your help, I assumed that because of my low useage (generally a single user) that 256 would be sufficent, but it appears not. POP3 proxy with AV on and Spam off is lighting quick, no noticable difference with AV on or off.

    I did throw in another 256Mb the other day which I had laying around in an old PC and it does seem to have improved things but its still a fair bit slower compared to when spam is turned off. Its liveable with now though so Im happy, I havent delved into the root much yet so I think I'll leave the tweaks for now but keep them filed for later  [:)]

    thanks

    Chris
  • the spam checking is going to be low due to the number of checks that need to be done.   I do not use the spam checking on ASL in the pop3 side...i let my mozilla client do it.

    Owner:  Emmanuel Technology Consulting

    http://etc-md.com

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

    PfSense w/Suricata, ntopng, 

    Other addons to follow

Reply
  • the spam checking is going to be low due to the number of checks that need to be done.   I do not use the spam checking on ASL in the pop3 side...i let my mozilla client do it.

    Owner:  Emmanuel Technology Consulting

    http://etc-md.com

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

    PfSense w/Suricata, ntopng, 

    Other addons to follow

Children
No Data