• 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.

Postfix / Sendmail The sender's domain is not registered in Panel

ERna_Jacobs

New Pleskian
Hi All

I have a Plesk installation with Commandline access.
Also on this server is a Request tracker installation. (The reason for the commandline access)
CentOs 6 Server.

All installations are up to date, but this actually broke my installation after the last Plesk Upgrade.

At the last Plesk upgrade, my Request Tracker installation can no longer use sendmail to send email directly from the server.

The errors I am getting are:
/var/log/maillog:
May 1 22:58:53 vs10-janey postfix/smtpd[5345]: connect from localhost[127.0.0.1]
May 1 22:58:53 vs10-janey postfix/smtpd[5345]: disconnect from localhost[127.0.0.1]
May 1 22:58:53 vs10-janey plesk sendmail[5348]: Unable to get sender domain by sender mailname
May 1 22:58:53 vs10-janey py_limit_out[5349]: ERROR Rejecting forged message: PPP_SENDER_VHOST_ID is present in environment, but its value is empty
May 1 22:58:53 vs10-janey plesk sendmail[5348]: 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 1 22:58:53 vs10-janey plesk sendmail[5348]: REJECT during call 'limit-out' handler

I am at my wits end with this. Does anyone have any suggestions?
 
Hi ERna_Jacobs,

Have you tried running mchk...

CentOS
Code:
/usr/local/psa/admin/sbin/mchk--with-spam


To rebuild the mail system?
I hope it helps
Kind regards

Lloyd
 
Hi Lloyd_mcse, Thank you for the hint.
I did that previously and it made absolutely no difference. Did that again with result:
==> 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_imap_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... ok
==> Checking for: mail_outgoing_restore... ok
==> Checking for: mail_transport_restore... ok

No difference.

log remains:

May 4 17:40:19 vs10-janey postfix/smtpd[5029]: connect from localhost[127.0.0.1]
May 4 17:40:19 vs10-janey postfix/smtpd[5029]: disconnect from localhost[127.0.0.1]
May 4 17:40:19 vs10-janey py_limit_out[5032]: ERROR Rejecting forged message: PPP_SENDER_VHOST_ID is present in environment, but its value is empty
May 4 17:40:19 vs10-janey plesk sendmail[5031]: 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.
May 4 17:40:19 vs10-janey plesk sendmail[5031]: handlers_stderr: REJECT
May 4 17:40:19 vs10-janey plesk sendmail[5031]: REJECT during call 'limit-out' handler
 
Did you try rebuilding the domain too...

Code:
/usr/local/psa/admin/bin/httpdmng --reconfigure-domain example.com

Do you have Outgoing Mail controls on? There's a setting there "Allow users and scripts to use Sendmail".

Hope it helps
Kind regards

Lloyd
 
Outgoing Mail Controls -> Allow Users and Scripts to use Sendmail is ticked.

What I dont understand is that /usr/sbin/sendmail points to /etc/alternatives/mta points to /usr/lib64/plesk9.0/postfix-sendmail-wrapper
but my /etc/mail/sendmail.cf is missing. (the sendmail.mc does exist) - Is this neccesary if the sendmail wrapper is used?

I am not experienced in configuring mail systems so please pardon me if I ask stupid questions.
 
/usr/local/psa/admin/bin/httpdmng --reconfigure-domain example.com - Done
/usr/local/psa/admin/sbin/mchk--with-spam - Done

no change.
 
May 9 21:19:29xxx py_limit_out[5065]: ERROR Rejecting forged message: PPP_SENDER_VHOST_ID is present in environment, but its value is empty
May 9 21:19:29 xxx plesk sendmail[5064]: 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.
May 9 21:19:29 xxx plesk sendmail[5064]: handlers_stderr: REJECT
May 9 21:19:29 xxx plesk sendmail[5064]: REJECT during call 'limit-out' handler

****Crying in my Boots *********
 
Show me output of following command:

# cat /var/www/vhosts/system/yourdomain.com/conf/httpd.conf | grep VHOST_ID
 
Make sure that you have correct record in database with appropriate dom_id in output of this sql query:

mysql> select * from dom_param where val="4fb1d8cc-5282-4746-b04c-aebd9e0862df";
 
Dear all. After much scratcing this seems to have been the problem :

You may however test the solution mentioned there
which is to comment out the "non_smtpd_milters" line in /etc/postfix/main.cf .

It works
<3
 
All records correct here, yet still:

Nov 12 16:29:31 rhein py_limit_out[31351]: ERROR Rejecting forged message: PPP_SENDER_VHOST_ID is present in environment, but its value is empty
Nov 12 16:29:31 rhein journal: plesk sendmail[31350]: 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.
REJECT
Nov 12 16:29:31 rhein journal: plesk sendmail[31350]: REJECT during call 'limit-out' handler
 
I can see that this only occurs when the script is called via PHP crontab job. The script can send e-mails trouble free when it is called via web interface from the domain. This issue seems to be caused by a wrong "user" ID when a mail command is executed via console script, because then sendmail is not called from the domain but from the console without any domain name. The error message is correct in this regard "the sender's domain is not registered in Panel", of course it is not, because there simply is no domain associated with the script when it is run from console.

We would like to know how a PHP script, that sends mails, can be started via crontab job from Plesk? Any way to circumvent this issue with the false user / missing domain name?

Filed it as a bug report today.
 
Last edited:
This has become a serious issue and bug. We have tried to circumvent it by setting the correct VHOST_ID from php.ini or the PHP script the uses mail() via Crontab. It does not work.

The only solution to run the job as root user and run it as a real executable job (not the "PHP" option). In that case, outgoing mail control lets the mail pass. In other cases it doesn't because it does not find an appropriate VHOST_ID.
 
Back
Top