• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

qmail says out of memory during smtp auth

hariskhan

Basic Pleskian
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?
 
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.
 
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.
 
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?
 
Back
Top