Postfix, Procmail, ISPConfig...

Discussion in 'Server Operation' started by 3DPeruna, Sep 28, 2007.

  1. 3DPeruna

    3DPeruna New Member

    Running Edgy, latest ISPConfig, updated & upgraded recently.

    Everything was running just fine until yesterday afternoon when the server slowed to a crawl. Couldn't figure out what was going on. After killing most of the processes, then starting them one-by-one, I've narrowed the problem down to something with Postfix and Procmail. I've tried rebooting, but as soon as the system comes back up, it starts up again. Using htop, clamscan and spamassassin seem to be the culprits.

    When this happens, everything slows way down. In fact, it takes a long time to issue any commands at all. However, with top, the memory footprint and cpu time for each of the processes is very small (0.1, or 0.0). There are just a lot of clam and spamassassin processes tied to mail user accounts. Here's the output from htop:
    [​IMG]

    If I use killall for both clamscan and for spamassassin, they'll go away, but quickly all come back, slowing down the system again.

    I don't want to lose the email that's in the queue, but how do I get these to "work"?

    I've got 512M memory and 1024M swap file.

    TIA,
    Paul
     
    Last edited: Sep 28, 2007
  2. rachel

    rachel New Member

    I'd try switching to using spamassassin in daemon mode. Install spamassassin in your host distro, and start spamd, change ~root/ispconfig/isp/conf/spamassassin.rc.master and instead of the "spamassassin" line, sustitute "| /usr/bin/spamc". Make some mail config change that will cause that change to be propagated out to the user's directories. As long as you're using a recent ISPConfig, it should pick up the user prefs through symlinks (as they can't be given on the spamc line).

    That should reduce the process overhead of spamassassin at least. I don't know how well it will affect your entire problem. :)
     
  3. rachel

    rachel New Member

    Oh, and thanks for introducing htop to me. I'd never heard of it before. Funky. :)
     
  4. 3DPeruna

    3DPeruna New Member

    I'll give that a go, too. I think that clamav may be an issue, too, but it can't help with the spamassassin.
     
  5. 3DPeruna

    3DPeruna New Member

    OK... Now, I need to know how to copy the same file forward across multiple subdirectories. I can edit the .spamassasinrc file but I've got about 100 email accounts that need the same edit done to them (really, I think it would have been better to have a symbolic link to a master file rather than each file individually needing to be edited...and maybe that's what I've got).
     
  6. chuckl

    chuckl New Member

  7. 3DPeruna

    3DPeruna New Member

    chuckl,

    I went to the thread you pointed out, tried that, but am still having the same problem.
     

Share This Page