Amavis stop working

Discussion in 'General' started by umano, Oct 1, 2013.

  1. umano

    umano New Member

    Hello, I'm a proud and satisfied ispconfig 3 user since lenny.

    I had set up a new vps with wheezy and ispconfig 3.0.5.2, everything is fine like always but sometimes amavis suddenly stop working, i restarted it changing spamassassin rule in ispconfig and after a week it stopped again.
    This means that I cannot reiceve nor send email

    Now I've updated to 3.0.5.3, what can be the cause?
    Thank you!
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    How much ram does your VPS has?
     
  3. umano

    umano New Member

    1 gb ram, I'm on linode from their control panel I checked the memory usage in the last month was not more then 600mb
     
  4. umano

    umano New Member

    It happened again, there is a way to automatically restart a service when it goes down? thank u
     
  5. pititis

    pititis Member

    You need to have control over the numbers of processes. Add this to the 50-user file (amavis)

    Code:
    $max_servers = 2;
    and

    Code:
    amavis     unix    -       -       -       -       2       smtp
    
    to the postfix's master.cf file.

    Change 2 for the number of processes you need.

    Cheers
     
  6. umano

    umano New Member

    I've added $max_servers = 2; to 50-user

    My master cf file was and still is

    amavis unix - - - - 2 smtp
    -o smtp_data_done_timeout=1200
    -o smtp_send_xforward_command=yes

    Thank you I hope it will work!

    ... after one day amavis crashed more often then before...


    Nov 19 10:58:20 ukserver amavis[7073]: (07073-02) (!)connect to /var/run/clamav/clamd.ctl failed, attempt #1: Can't connect to UNIX socket /var/run/clamav/clamd.ctl: Connection refused
    Nov 19 10:58:20 ukserver amavis[7073]: (07073-02) (!)ClamAV-clamd: All attempts (1) failed connecting to /var/run/clamav/clamd.ctl, retrying (2)
    Nov 19 10:58:24 ukserver amavis[7074]: (07074-02) (!)connect to /var/run/clamav/clamd.ctl failed, attempt #1: Can't connect to UNIX socket /var/run/clamav/clamd.ctl: Connection refused
    Nov 19 10:58:24 ukserver amavis[7074]: (07074-02) (!)ClamAV-clamd av-scanner FAILED: run_av error: Too many retries to talk to /var/run/clamav/clamd.ctl (All attempts (1) failed connecting to
     
    Last edited: Nov 19, 2013

Share This Page