• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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