• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • 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.

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