• 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-queue-handlers problem SMTP is not working

ProWebS

Regular Pleskian
after an automatic plesk 10.4 update smpt stopped working,
the service is up but no email goes out.

the error in the error log is :

Apr 28 12:49:03 ns1 qmail-queue-handlers[11039]: Handlers Filter before-queue for qmail started ...
Apr 28 12:49:03 ns1 qmail-queue-handlers[11039]: cannot create temporary file - (13) Permission denied
Apr 28 12:49:03 ns1 qmail-queue-handlers[11039]: cannot read message from stdin

Any ideas?
 
I just did
root ~# rpm -Uvh --force plesk-mail-qc-driver-10.13.4-cos5.build1013120126.11.x86_64.rpm
Preparing... ########################################### [100%]
1:plesk-mail-qc-driver ########################################### [100%]

from the rpm here: http://64.131.90.31/PSA_10.4.4/dist-rpm-CentOS-5-x86_64/opt/maildrivers/


then restarted qmail.

the error remains:

Apr 28 13:16:06 ns1 qmail-queue-handlers[2860]: Handlers Filter before-queue for qmail started ...
Apr 28 13:16:06 ns1 qmail-queue-handlers[2860]: cannot create temporary file - (13) Permission denied
Apr 28 13:16:06 ns1 qmail-queue-handlers[2860]: cannot read message from stdin
 
I;ve changed to Postfix and when I do make a smtp connection I get the error (in the log file)
Apr 28 13:30:50 ns1 /usr/lib64/plesk-9.0/psa-pc-remote[17494]: mkstemp(/usr/local/psa/handlers/spool/mlfi.96VzII) failed: Permission denied
 
running root /# /usr/local/psa/admin/sbin/mchk --with-spam
after the installation of postfix did the trick.
now smpt outgoing emails are working again.
 
The fix did not work for me.

I ran that command and received:


# /usr/local/psa/admin/sbin/mchk --with-spam
==> Checking for: mailsrv_conf_init... ok
==> Checking for: mail_handlers_init... ok
==> Checking for: mailsrv_entities_dump... ok
==> Checking for: mail_admin_aliases... ok
==> Checking for: mail_auth_dump... ok
==> Checking for: mailman_lists_dump... ok
==> Checking for: mail_kav8_restore... ok
==> Checking for: mail_responder_restore... ok
==> Checking for: mail_spam_restore... ok
==> Checking for: mail_grey_restore... ok
==> Checking for: mail_mailbox_restore... ok
==> Checking for: mail_spf_restore... ok
==> Checking for: mail_dk_restore... ok
==> Checking for: mail_drweb_restore... not exists


Yet I am still receiving errors in my mail log when sending or receiving mail.



When sending to the account, I get:

Jun 1 15:17:06 mydomain /var/qmail/bin/relaylock[26054]: /var/qmail/bin/relaylock: mail from 2.3.4.5:65049 (someother.server.com)
Jun 1 15:17:06 mydomain qmail-queue-handlers[26056]: Handlers Filter before-queue for qmail started ...
Jun 1 15:17:06 mydomain qmail-queue-handlers[26056]: [email protected]
Jun 1 15:17:06 mydomain qmail-queue-handlers[26056]: [email protected]
Jun 1 15:17:06 mydomain qmail-queue-handlers[26056]: handlers_stderr: SKIP
Jun 1 15:17:06 mydomain qmail-queue-handlers[26056]: SKIP during call 'check-quota' handler
Jun 1 15:17:06 mydomain qmail: 1338589026.699782 new msg 112152727
Jun 1 15:17:06 mydomain qmail-queue-handlers[26056]: starter: submitter[26058] exited normally
Jun 1 15:17:06 mydomain qmail: 1338589026.699827 info msg 112152727: bytes 1269 from <[email protected]> qp 26058 uid 2020
Jun 1 15:17:06 mydomain qmail: 1338589026.702225 starting delivery 2: msg 112152727 to local [email protected]
Jun 1 15:17:06 mydomain qmail: 1338589026.702261 status: local 1/10 remote 0/20
Jun 1 15:17:06 mydomain qmail-local-handlers[26059]: Handlers Filter before-local for qmail started ...
Jun 1 15:17:06 mydomain qmail-local-handlers[26059]: cannot create temporary file - (13) Permission denied
Jun 1 15:17:06 mydomain qmail-local-handlers[26059]: cannot read message from stdin
Jun 1 15:17:06 mydomain qmail: 1338589026.705026 delivery 2: failure:
Jun 1 15:17:06 mydomain qmail: 1338589026.705078 status: local 0/10 remote 0/20
Jun 1 15:17:06 mydomain qmail-queue-handlers[26060]: Handlers Filter before-queue for qmail started ...
Jun 1 15:17:06 mydomain qmail-queue-handlers[26060]: cannot create temporary file - (13) Permission denied
Jun 1 15:17:06 mydomain qmail-queue-handlers[26060]: cannot read message from stdin
Jun 1 15:17:06 mydomain qmail: 1338589026.706767 warning: trouble injecting bounce message, will try later


When sending from the account, I get:

Jun 1 15:17:55 mydomain /var/qmail/bin/relaylock[26163]: /var/qmail/bin/relaylock: mail from 1.2.3.4:53533 (my.dsl.address.net)
Jun 1 15:17:56 mydomain cmd5checkpw: SMTP connect from my.dsl.address.net [1.2.3.4]
Jun 1 15:17:56 mydomain cmd5checkpw: SMTP user [email protected]: logged in from my.dsl.address.net [1.2.3.4]
Jun 1 15:17:56 mydomain qmail-queue-handlers[26166]: Handlers Filter before-queue for qmail started ...
Jun 1 15:17:56 mydomain qmail-queue-handlers[26166]: [email protected]
Jun 1 15:17:56 mydomain qmail-queue-handlers[26166]: [email protected]
Jun 1 15:17:56 mydomain qmail-queue-handlers[26166]: handlers_stderr: SKIP
Jun 1 15:17:56 mydomain qmail-queue-handlers[26166]: SKIP during call 'check-quota' handler
Jun 1 15:17:56 mydomain qmail-queue-handlers[26166]: starter: submitter[26168] exited normally
Jun 1 15:17:56 mydomain qmail: 1338589076.594074 new msg 112152730
Jun 1 15:17:56 mydomain qmail: 1338589076.594108 info msg 112152730: bytes 662 from <[email protected]> qp 26168 uid 2020
Jun 1 15:17:56 mydomain qmail: 1338589076.596951 starting delivery 3: msg 112152730 to remote [email protected]
Jun 1 15:17:56 mydomain qmail: 1338589076.596978 status: local 0/10 remote 1/20
Jun 1 15:17:56 mydomain qmail-remote-handlers[26169]: Handlers Filter before-remote for qmail started ...
Jun 1 15:17:56 mydomain qmail-remote-handlers[26169]: cannot create temporary file - (13) Permission denied
Jun 1 15:17:56 mydomain qmail-remote-handlers[26169]: cannot read message from stdin
Jun 1 15:17:56 mydomain qmail: 1338589076.599152 delivery 3: failure: handlers_permanentfail/
Jun 1 15:17:56 mydomain qmail: 1338589076.599378 status: local 0/10 remote 0/20
Jun 1 15:17:56 mydomain qmail-queue-handlers[26170]: Handlers Filter before-queue for qmail started ...
Jun 1 15:17:56 mydomain qmail-queue-handlers[26170]: cannot create temporary file - (13) Permission denied
Jun 1 15:17:56 mydomain qmail-queue-handlers[26170]: cannot read message from stdin
Jun 1 15:17:56 mydomain qmail: 1338589076.601871 warning: trouble injecting bounce message, will try later
 
qmail-queue-handlers cannot create temporary file - (13) Permission denied

I have not been able to resolve the Permission problems on a fresh CENTOS 5.7 x64 install updated to Plesk 10.4.4 MU #32 (latest for x64 CENTOS 5.7).

Maillog:


Jun 5 13:15:54 super qmail: 1338916554.142588 warning: trouble injecting bounce message, will try later
Jun 5 13:15:54 super qmail-queue-handlers[10293]: Handlers Filter before-queue for qmail started ...
Jun 5 13:15:54 super qmail-queue-handlers[10293]: cannot create temporary file - (13) Permission denied
Jun 5 13:15:54 super qmail-queue-handlers[10293]: cannot read message from stdin


I have tried all the solutions I have come across here and on the web:

1. Restarts
2. mchk --with-spam and w/o
3. persmissions double take on all the files
4. install Postfix - different problems
5. reinstalled Qmail afer Postfix install above
6. removed handlers and ran mchk to rebuild

The .../handlers/before-* and info directories are empty; only the hooks director contains the hooks; this even after reinstall after Postfix and mchk.

Any suggestions?
 
Finally, it is working

I had been performing the permissions fixes like many of the users in this forum topic have, and almost got it working, but emails sent to aliases still weren't working.

The cherry on top was more permissions...

The qmail-queue binary under the /var/qmail/bin had wrong permissions.

Changing it from '-r-x--s--x' to '-r-s--s--x', which allowed other users to execute the binary and the owner, fixed the problem.

here is a partial listing of my working qmail bin:


-r-sr-xr-x 1 root qmail 45512 Jan 25 20:34 qmail-local
-r-s--s--x 1 mhandlers-user popuser 45600 Jan 25 20:34 qmail-queue
-r-x--s--x 1 mhandlers-user popuser 45496 Jan 25 20:34 qmail-remote
 
I have the same permissions that you have but it is still not working.

I migrated from a very similar system except Centos 5.7 x64 and the other was Centos 5.6 x86 (32 bit) and microupdate 27 (28, or 29)

Same config worked on the 32bit Centos 5.6 but it does not work on the x64 with Centos 5.7. I cannot downgrade because of the hardware.
 
Back
Top