• 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

Plesk 9.2.3 + Postfix error - no mail received!

P

PersianC

Guest
Hello,

I have a debian lenny, plesk + postfix VPS. I can send email but not email received to my mailboxes.

here is error I found in syslog:

Jan 16 14:48:05 mydomain postfix-local[28265]: hook_dir = '/opt/psa/handlers/before-local'
Jan 16 14:48:05 mydomain postfix-local[28265]: recipient[3] = '[email protected]'
Jan 16 14:48:05 mydomain postfix-local[28265]: handlers dir = '/opt/psa/handlers/before-local/recipient/[email protected]'
Jan 16 14:48:05 mydomain postfix-local[28268]: postfix-local: [email protected], [email protected], dirname=/var/qmail/mailnames
Jan 16 14:48:05 mydomain postfix-local[28268]: hook_dir = '/opt/psa/handlers/before-local'
Jan 16 14:48:05 mydomain postfix-local[28268]: recipient[3] = '[email protected]'
Jan 16 14:48:05 mydomain postfix-local[28268]: handlers dir = '/opt/psa/handlers/before-local/recipient/[email protected]'
Jan 16 14:48:05 mydomain postfix/pipe[28263]: B77392C539: to=<[email protected]>, relay=plesk_virtual, delay=1019, delays=1019/0.02/0/0.02, dsn=4.3.0, status=deferred (temporary failure. Command output: fork_execv: dup() failed: Permission denied 4.2.1 Message can not be delivered at this time )
Jan 16 14:48:05 mydomain postfix/pipe[28264]: A481A2C535: to=<[email protected]>, relay=plesk_virtual, delay=2457, delays=2457/0.02/0/0.02, dsn=4.3.0, status=deferred (temporary failure. Command output: fork_execv: dup() failed: Permission denied 4.2.1 Message can not be delivered at this time )
could you please help fix it? I am waiting for an important email.
 
Try to fix permissions if it is wrong with

Code:
# chown root:popuser /usr/local/psa/handlers/hooks/grey
# chmod 4550 /usr/local/psa/handlers/hooks/grey

and rebuild mailsettings with 'mchk --with-spam'
 
Hi IgorG,

premission is correct,
root@server1:~# ls -la /usr/local/psa/handlers/hooks/grey
-r-sr-x--- 1 root popuser 58368 Dec 30 04:30 /usr/local/psa/handlers/hooks/grey
mchk output:
root@server1:~# /usr/local/psa/admin/sbin/mchk --with-spam
==> Checking for: mail_spam_restore... not exsists
==> Checking for: mailsrv_conf_init... ok
==> Checking for: mail_mailbox_restore... 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_responder_restore... ok
==> Checking for: mail_drweb_restore... ok
==> Checking for: mail_kav_restore... not exsists
==> Checking for: mail_spf_restore... ok
==> Checking for: mail_dk_restore... ok
==> Checking for: mail_grey_restore... ok
syslog error:
Jan 18 09:36:40 mydomain postfix-local[20340]: postfix-local: [email protected], [email protected], dirname=/var/qmail/mailnames
Jan 18 09:36:40 mydomain postfix-local[20340]: hook_dir = '/opt/psa/handlers/before-local'
Jan 18 09:36:40 mydomain postfix-local[20340]: recipient[3] = '[email protected]'
Jan 18 09:36:40 mydomain postfix-local[20340]: handlers dir = '/opt/psa/handlers/before-local/recipient/[email protected]'
Jan 18 09:36:40 mydomain postfix/pipe[20339]: DAB882C3BD: to=<[email protected]>, relay=plesk_virtual, delay=0.27, delays=0.24/0.01/0/0.02, dsn=4.3.0, status=deferred (temporary failure. Command output: fork_execv: dup() failed: Permission denied 4.2.1 Message can not be delivered at this time )
 
Last edited by a moderator:
and also receives delivery fail for emails I sent two days ago (in my gmail that I sent test emails):

Undelivered Mail Returned to Sender
This is the mail system at host server1.mydomain2.com.
I'm sorry to have to inform you that your message could not be delivered to one or more recipients. It's attached below.
For further assistance, please send mail to postmaster.
If you do so, please include this problem report. You can delete your own text from the attached returned message.
The mail system
<[email protected]>: mail for mydomain.com loops back to myself

Reporting-MTA: dns; server1.mydomain2.com
X-Postfix-Queue-ID: DDCD82C534
X-Postfix-Sender: rfc822; [email protected]
Arrival-Date: Sat, 16 Jan 2010 12:58:14 +0000 (UTC)

Final-Recipient: rfc822; [email protected]
Original-Recipient: rfc822;[email protected]
Action: failed
Status: 5.4.6
Diagnostic-Code: X-Postfix; mail for mydomain.com loops back to myself
 
I have the same problem! Is there any solution for that problem? I can send emails but I can not recevies mail and I get this error:

temporary failure. Command output: fork_execv:dup() failed: Permission denied 4.2.1 Message can not be delivered at thistime

Thanks
 
Make sure that you have not enabled SELinux there with 'getenforce' command. Also check that permissions on /dev/null is correct:

# stat /dev/null
File: `/dev/null'
Size: 0 Blocks: 0 IO Block: 4096 character special file
Device: 68h/104d Inode: 75902255 Links: 1 Device type: 1,3
Access: (0666/crw-rw-rw-) Uid: ( 0/ root) Gid: ( 0/ root)
 
Try to fix permissions if it is wrong with

Code:
# chown root:popuser /usr/local/psa/handlers/hooks/grey
# chmod 4550 /usr/local/psa/handlers/hooks/grey

and rebuild mailsettings with 'mchk --with-spam'
interesting -- my hooks did not have the 'S' flag for grey -- I just added it using your chmod command.
is this correct?

-r-xr-x--- 1 root popuser 171K Nov 6 12:37 autoresponder
-rwsr-sr-x 1 popuser postfix 63K Nov 6 12:37 check-quota
-r-xr-x--- 1 root popuser 77K Nov 6 12:37 dk_check
-r-xr-x--- 1 root popuser 72K Nov 6 12:37 dk_sign
-r-xr-x--- 1 root popuser 113K Nov 6 12:37 dmarc
-r-sr-x--- 1 root popuser 82K Nov 6 12:37 grey
-r-xr-x--- 1 root popuser 445K Nov 6 12:37 py-limit-out
-r-xr-x--- 1 root popuser 62K Oct 22 12:05 spam
-r-xr-x--- 1 root popuser 157K Nov 6 12:37 spf
 
interesting -- my hooks did not have the 'S' flag for grey -- I just added it using your chmod command.
is this correct?
Have you decided to take advantage of the advice from ten years ago for the ancient Plesk version? At least in the modern version, there is no such flag:

# ll /usr/local/psa/handlers/hooks/grey
-r-xr-x---. 1 root popuser 83480 Nov 6 16:37 /usr/local/psa/handlers/hooks/grey

# plesk version
Product version: Plesk Obsidian 18.0.31.1
OS version: CentOS 7.9.2009 x86_64
 
Have you decided to take advantage of the advice from ten years ago for the ancient Plesk version? At least in the modern version, there is no such flag:

# ll /usr/local/psa/handlers/hooks/grey
-r-xr-x---. 1 root popuser 83480 Nov 6 16:37 /usr/local/psa/handlers/hooks/grey

# plesk version
Product version: Plesk Obsidian 18.0.31.1
OS version: CentOS 7.9.2009 x86_64
OMG - sorry I didn't realize the thread was so old :)
 
Back
Top