• We value your experience with Plesk during 2026
    Please help us understand which Plesk features made your work easier this year, what is still missing and how AI should help you in Plesk ?
    Take this short 5-minutes survey. Your answers go straight into the Plesk roadmap for 2027.

Forwarded to devs API: Setting Mail Service Prefs is not working properly

ChrisH

Basic Pleskian
TITLE:
API: Setting Mail Service Prefs is not working properly​
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE:
Plesk Onyx Linux 17.5.3 #21​
PROBLEM DESCRIPTION:
Trying to Change the mail service settings via API is not working. "Webmail" can only be changed it is used alone and changing "Greylisting" is not working at all.​
STEPS TO REPRODUCE:
<packet> <mail> <set_prefs> <filter> <site-id>1</site-id> </filter> <prefs> <greylisting>false</greylisting> <webmail>none</webmail> <mailservice>true</mailservice> </prefs> </set_prefs> </mail> </packet>​
ACTUAL RESULT:
Parser error: Request is invalid. Error in line 13: Element 'webmail': This element is not expected. Expected is one of ( mailservice, ip_address, mail-provider, webmail-certificate ).​
EXPECTED RESULT:
The answer should be "Status: OK"​
ANY ADDITIONAL INFORMATION:
​
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM:
Confirm bug​
 
BTW... Please check also the transmission of an forward e-mail address for non-existent users:
<packet> <mail> <set_prefs> <filter> <site-id>1</site-id> </filter> <prefs> <nonexistent-user> <forward>[email protected]</forward> </nonexistent-user> </prefs> </set_prefs> </mail> </packet>
Actual result is "The 'forward' parameter does not contain a valid e-mail address." Entering the address in the normal Panel is working.
 
You should put fields in following order:
  • nonexistent-user
  • webmail
  • spam-protect-sign
  • greylisting
  • mailservice
  • ip_address
  • mail-provider
  • webmail-certificate
E.g. this packet works fine:

Code:
<packet>
<mail>
<set_prefs>
<filter>
<site-id>1</site-id>
</filter>
<prefs>
<nonexistent-user>
<forward>[email protected]</forward>
</nonexistent-user>
<webmail>none</webmail>
<greylisting>false</greylisting>
<mailservice>true</mailservice>
</prefs>
</set_prefs>
</mail>
</packet>
 
Back
Top