amavis using ~100% CPU

Discussion in 'Server Operation' started by obgr_seneca, Feb 12, 2009.

  1. obgr_seneca

    obgr_seneca New Member

    I've installed and configured a postfix/dovecot mailserver system according to the "perfect mandriva server 2009.0" howto.
    Now I'm trying to configure amavisd-new as spam- and virus-protection to work with postfix.

    Now I'm facing the problem that amavis is using about 100% of one CPU (on a two-CPU system) and no mail is coming through.

    Here are the relevant parts of the configs. If you need anything else, please tell me.
    content_filter = lmtp-amavis:
    receive_override_options = no_address_mappings
    # Amavis
    # to:
    lmtp-amavis    unix    -       -       y       -       2       lmtp
           -o lmtp_data_done_timeout=1200
           -o lmtp_send_xforward_command=yes
           -o disable_dns_lookup=yes
           -o disable_dns_lookups=yes
           -o max_use=20
    # from:        inet    n       -       y       -       -       smtpd
           -o content_filter=
           -o local_recipient_maps=
           -o relay_recipient_maps=
           -o smtpd_restriction_classes=
           -o smtpd_delay_reject=no
           -o smtpd_client_restrictions=permit_mynetworks,reject
           -o smtpd_helo_restrictions=
           -o smtpd_sender_restrictions=
           -o smtpd_recipient_restrictions=permit_mynetworks,reject
           -o smtpd_data_restrictions=reject_unauth_pipelining
           -o smtpd_end_of_data_restrictions=
           -o mynetworks=
           -o smtpd_error_sleep_time=0
           -o smtpd_soft_error_limit=1001
           -o smtpd_hard_error_limit=1000
           -o smtpd_client_connection_count_limit=0
           -o smtpd_client_connection_rate_limit=0
           -o receive_override_options=no_header_body_checks,no_unknown_recipient_checks
    $inet_socket_port = 10024;   # listen on this local TCP port(s)
    $notify_method  = 'smtp:[]:10025';
    $forward_method = 'smtp:[]:10025';
    Furthermore I've commented out any virusscanner except clamav. The rest is the default config comming with the packages.

  2. falko

    falko Super Moderator ISPConfig Developer

    Any errors in your mail log?
  3. obgr_seneca

    obgr_seneca New Member

    We have several MB of Logs per day, most generated directly by postfix, when amavis was running and configured in postfix, we got a "lmtp-amavis file or directory not found".

    But (again) we were happily able to find the problem on our own. Last year we faced a massive DoS, which seems to have crippled our whole mail-architecture causing postfix to get the whole system freezed in irregular intervals but upto several times a day.

    Apparently this corrupted the amavis database. After rebuilding it, amavis is running again as it should.

    But thanks non the less for your answer.


Share This Page