1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

qmail says out of memory during smtp auth

Discussion in 'Plesk for Linux - 8.x and Older' started by hariskhan, Sep 27, 2007.

  1. hariskhan

    hariskhan Basic Pleskian

    24
    23%
    Joined:
    Nov 21, 2005
    Messages:
    59
    Likes Received:
    0
    Hello,

    qmail says;

    421 out of memory (#4.3.0)

    during smtp auth, when I give it the auth plain string.

    1) smtp auth is again not working
    2) how do I fix the out of memory issue? There is no softlimit binary on the server. There is qmail-smtpd/run to put the new memory limit in.

    here is my /etc/xinetd.d/smtp_psa;

    # cat /etc/xinetd.d/smtp_psa

    service smtp
    {
    socket_type = stream
    protocol = tcp
    wait = no
    disable = no
    user = root
    instances = UNLIMITED
    server = /var/qmail/bin/tcp-env
    server_args = -Rt 0 /usr/sbin/rblsmtpd -r zen.spamhaus.org /var/qmail/bin/relaylock /var/qmail/bin/qmail-smtpd /bin/checkpassword -x /etc/tcp.smtpd.cdb /var/qmail/bin/smtp_auth /var/qmail/bin/true /var/qmail/bin/cmd5checkpw /var/qmail/bin/true
    }


    How do I fix it?
     
  2. dynamicnet

    dynamicnet Basic Pleskian

    23
    90%
    Joined:
    Sep 19, 2007
    Messages:
    65
    Likes Received:
    0
    Greetings:

    Are you running Plesk / qmail in a VPS node? Or on a dedicated / co-located server?

    What does top show for total memory, free memory, total swap space, and free swap space?

    What's your average number of emails processed per day?

    Thank you.
     
  3. hariskhan

    hariskhan Basic Pleskian

    24
    23%
    Joined:
    Nov 21, 2005
    Messages:
    59
    Likes Received:
    0
    This is a dedicated server running plesk 8.1

    I just rebooted the box 2nd time in two days. Top still shows, 700 MB out of 1 GB RAM is free. 4GB swap is 0% used.

    Following is a df -ah output;

    # d
    Filesystem Size Used Avail Use% Mounted on
    /dev/md1 950M 313M 589M 35% /
    none 0 0 0 - /proc
    devpts 0 0 0 - /dev/pts
    /dev/md5 4.7G 1.5G 3.2G 32% /usr
    /dev/md7 137G 4.2G 133G 4% /var
    /dev/md6 4.7G 64M 4.6G 2% /home
    none 493M 0 493M 0% /tmp
    none 0 0 0 - /proc/sys/fs/binfmt_misc
    /proc 0 0 0 - /var/named/run-root/proc


    My average mails are like 1 mail per 5mins. or so. Most of them are spam. There's little load on the server.

    As I recall, this started happening after I manually restarted the xinetd daemon. Can't see the relevance though

    Does plesk provide anyway to tell qmail how much memory it can use? There's no softlimit binary or qmail-smtpd/run file to specify it in.

    If there's no way, I'll be forced to remove psa's installed qmail and re-build from scratch as the lwq manual says.
     
  4. hariskhan

    hariskhan Basic Pleskian

    24
    23%
    Joined:
    Nov 21, 2005
    Messages:
    59
    Likes Received:
    0
    After this last reboot the out of memory message is gone.

    But smtp auth fails no matter what. I'v checked it against several local accounts that already exist. I have also created new accounts on two different domains and still it says;

    220 host.domain.com ESMTP

    ehlo egghut.com
    250-host.domain.com
    250-AUTH=LOGIN CRAM-MD5 PLAIN
    250-AUTH LOGIN CRAM-MD5 PLAIN
    250-PIPELINING
    250 8BITMIME
    AUTH PLAIN auth-code-long-hash-value
    535 auth failure
    quit
    221 host.domain.com
    closed

    Why would auth fail?
     
  5. hariskhan

    hariskhan Basic Pleskian

    24
    23%
    Joined:
    Nov 21, 2005
    Messages:
    59
    Likes Received:
    0
    Re-installation of psa-qmail rpm fixed all. Its working normally now.

    M. Istehbab
     
Loading...