• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Plesk12 / PHP mail() not working

Evilmachine

Basic Pleskian
Hi there,

since my upgrade to Plesk 12 the php mail function ist not working.
In detail the functions works but postfix is rejecting the mails.

In the logs i see

May 30 19:57:50 bazingo py_limit_out[19005]: ERROR Rejecting forged message: PPP_SENDER_VHOST_ID is present in environment, but its value is empty
May 30 19:57:50 bazingo plesk sendmail[19004]: handlers_stderr: DATA REPLY:554:5.7.0 Your message could not be sent. The sender's domain is not registered in Panel, or is misconfigured.#012REJECT
May 30 19:57:50 bazingo plesk sendmail[19004]: REJECT during call 'limit-out' handler

The Domain is properly configured and present in panel.
I did run mchk but the problem still exists.

Any ideas??
 
Do you have outgoing mail control turned on? Do you run PHP as Apache module?

Try running mail_restore / mchk and then httpdmng --reconfigure-all (or only the domain you're interested in).
 
Please check that you have sysenv Apache module enabled. If you do, grep your domain Apache configuration for PP_VHOST_ID and paste output here (you may want to obfuscate any GUIDs and other potentially sensitive information in the output).

Please also verify that you don't have any Panel updates via Parallels Installer.
 
No updates via installer.
Sysenv is activated.

Conf output

root@bazingo:~# cat /var/www/vhosts/system/hotel-garni-springe.de/conf/httpd.conf | grep VHOST_ID
SetSysEnv PP_VHOST_ID "a4988280-6b83-4bc0-bb88-29db385e2442"
SetSysEnv PP_VHOST_ID "a4988280-6b83-4bc0-bb88-29db385e2442"
 
OK, put the following PHP script somewhere inside webroot of your domain and then fetch it via browser:

<?php
$val = getenv('PP_VHOST_ID');
echo "PP_VHOST_ID = $val;\n";


Does the output match the GUID you've found previously?

Are you able to send mail via sendmail from shell as the subscription's system user?
 
Back
Top